danger-android_lint 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.circleci/config.yml +13 -0
- data/.github/CODEOWNERS +1 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +69 -52
- data/Rakefile +1 -1
- data/atlantis.yaml +5 -0
- data/danger-android_lint.gemspec +2 -2
- data/lib/android_lint/gem_version.rb +1 -1
- data/lib/android_lint/plugin.rb +35 -3
- data/spec/android_lint_spec.rb +43 -1
- data/spec/fixtures/lint-result-for-pr.xml +62 -0
- data/spec/fixtures/pr-diff.diff +14 -0
- metadata +15 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 9ada934a0418e182a4f33db8040b2ac2686b51062d9298bcafeec2641333c794
|
|
4
|
+
data.tar.gz: f083ac782badad37b3013f29326723662c6e30fa87d1f553e9049edb0d4308b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ad11c214c69b8705766e879b6bd37c436b9ab5f5c812a5f0defedcbdd14c8d1cc012f16b16461a1426eedbd5659bd6c89aa85c4b3dcb2162984831e369ddaaa
|
|
7
|
+
data.tar.gz: cca847253edd672cd61da0142cabdb6fb768315cf5fa44a824b0471f9f335df47700452f0b8deabe5a4fee80cec109bbfe4f8d193b695f56f8e30bedcd259460
|
data/.github/CODEOWNERS
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
* @
|
|
1
|
+
* @barbosa
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
# 0.0.9
|
|
2
|
+
- Add `filtering_lines` parameter, to show lint issues only on modified lines ([@ShivamPokhriyal](https://github.com/ShivamPokhriyal))
|
|
3
|
+
|
|
1
4
|
# 0.0.8
|
|
2
5
|
- Fix security issues ([@barbosa](https://github.com/barbosa))
|
|
3
6
|
- Expose report message ([@adamstrange])(https://github.com/adamstrange))
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
danger-android_lint (0.0.
|
|
4
|
+
danger-android_lint (0.0.9)
|
|
5
5
|
danger-plugin-api (~> 1.0)
|
|
6
6
|
oga
|
|
7
7
|
|
|
@@ -11,40 +11,52 @@ GEM
|
|
|
11
11
|
addressable (2.7.0)
|
|
12
12
|
public_suffix (>= 2.0.2, < 5.0)
|
|
13
13
|
ansi (1.5.0)
|
|
14
|
-
ast (2.4.
|
|
14
|
+
ast (2.4.2)
|
|
15
15
|
claide (1.0.3)
|
|
16
16
|
claide-plugins (0.9.2)
|
|
17
17
|
cork
|
|
18
18
|
nap
|
|
19
19
|
open4 (~> 1.3)
|
|
20
|
-
coderay (1.1.
|
|
20
|
+
coderay (1.1.3)
|
|
21
21
|
colored2 (3.1.2)
|
|
22
22
|
cork (0.3.0)
|
|
23
23
|
colored2 (~> 3.1)
|
|
24
|
-
danger (
|
|
24
|
+
danger (8.2.3)
|
|
25
25
|
claide (~> 1.0)
|
|
26
26
|
claide-plugins (>= 0.9.2)
|
|
27
27
|
colored2 (~> 3.1)
|
|
28
28
|
cork (~> 0.1)
|
|
29
|
-
faraday (
|
|
29
|
+
faraday (>= 0.9.0, < 2.0)
|
|
30
30
|
faraday-http-cache (~> 2.0)
|
|
31
|
-
git (~> 1.
|
|
32
|
-
kramdown (~> 2.
|
|
31
|
+
git (~> 1.7)
|
|
32
|
+
kramdown (~> 2.3)
|
|
33
33
|
kramdown-parser-gfm (~> 1.0)
|
|
34
34
|
no_proxy_fix
|
|
35
35
|
octokit (~> 4.7)
|
|
36
|
-
terminal-table (
|
|
36
|
+
terminal-table (>= 1, < 4)
|
|
37
37
|
danger-plugin-api (1.0.0)
|
|
38
38
|
danger (> 2.0)
|
|
39
|
-
diff-lcs (1.
|
|
40
|
-
faraday (
|
|
39
|
+
diff-lcs (1.4.4)
|
|
40
|
+
faraday (1.4.2)
|
|
41
|
+
faraday-em_http (~> 1.0)
|
|
42
|
+
faraday-em_synchrony (~> 1.0)
|
|
43
|
+
faraday-excon (~> 1.1)
|
|
44
|
+
faraday-net_http (~> 1.0)
|
|
45
|
+
faraday-net_http_persistent (~> 1.1)
|
|
41
46
|
multipart-post (>= 1.2, < 3)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
ruby2_keywords (>= 0.0.4)
|
|
48
|
+
faraday-em_http (1.0.0)
|
|
49
|
+
faraday-em_synchrony (1.0.0)
|
|
50
|
+
faraday-excon (1.1.0)
|
|
51
|
+
faraday-http-cache (2.2.0)
|
|
52
|
+
faraday (>= 0.8)
|
|
53
|
+
faraday-net_http (1.0.1)
|
|
54
|
+
faraday-net_http_persistent (1.1.0)
|
|
55
|
+
ffi (1.15.3)
|
|
56
|
+
formatador (0.3.0)
|
|
57
|
+
git (1.8.1)
|
|
58
|
+
rchardet (~> 1.8)
|
|
59
|
+
guard (2.17.0)
|
|
48
60
|
formatador (>= 0.2.4)
|
|
49
61
|
listen (>= 2.7, < 4.0)
|
|
50
62
|
lumberjack (>= 1.0.12, < 2.0)
|
|
@@ -58,14 +70,15 @@ GEM
|
|
|
58
70
|
guard (~> 2.1)
|
|
59
71
|
guard-compat (~> 1.1)
|
|
60
72
|
rspec (>= 2.99.0, < 4.0)
|
|
61
|
-
kramdown (2.1
|
|
73
|
+
kramdown (2.3.1)
|
|
74
|
+
rexml
|
|
62
75
|
kramdown-parser-gfm (1.1.0)
|
|
63
76
|
kramdown (~> 2.0)
|
|
64
77
|
listen (3.0.7)
|
|
65
78
|
rb-fsevent (>= 0.9.3)
|
|
66
79
|
rb-inotify (>= 0.9.7)
|
|
67
|
-
lumberjack (1.
|
|
68
|
-
method_source (0.
|
|
80
|
+
lumberjack (1.2.8)
|
|
81
|
+
method_source (1.0.0)
|
|
69
82
|
multipart-post (2.1.1)
|
|
70
83
|
nap (1.1.0)
|
|
71
84
|
nenv (0.3.0)
|
|
@@ -73,39 +86,42 @@ GEM
|
|
|
73
86
|
notiffany (0.1.3)
|
|
74
87
|
nenv (~> 0.1)
|
|
75
88
|
shellany (~> 0.0)
|
|
76
|
-
octokit (4.
|
|
89
|
+
octokit (4.21.0)
|
|
90
|
+
faraday (>= 0.9)
|
|
77
91
|
sawyer (~> 0.8.0, >= 0.5.3)
|
|
78
|
-
oga (3.
|
|
92
|
+
oga (3.3)
|
|
79
93
|
ast
|
|
80
94
|
ruby-ll (~> 2.1)
|
|
81
95
|
open4 (1.3.4)
|
|
82
|
-
parallel (1.
|
|
83
|
-
parser (2.
|
|
84
|
-
ast (~> 2.4.
|
|
85
|
-
powerpack (0.1.
|
|
86
|
-
pry (0.
|
|
87
|
-
coderay (~> 1.1
|
|
88
|
-
method_source (~>
|
|
89
|
-
public_suffix (4.0.
|
|
96
|
+
parallel (1.20.1)
|
|
97
|
+
parser (2.7.2.0)
|
|
98
|
+
ast (~> 2.4.1)
|
|
99
|
+
powerpack (0.1.3)
|
|
100
|
+
pry (0.14.1)
|
|
101
|
+
coderay (~> 1.1)
|
|
102
|
+
method_source (~> 1.0)
|
|
103
|
+
public_suffix (4.0.6)
|
|
90
104
|
rainbow (2.2.2)
|
|
91
105
|
rake
|
|
92
|
-
rake (
|
|
93
|
-
rb-fsevent (0.
|
|
106
|
+
rake (13.0.3)
|
|
107
|
+
rb-fsevent (0.11.0)
|
|
94
108
|
rb-inotify (0.10.1)
|
|
95
109
|
ffi (~> 1.0)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
rspec-
|
|
100
|
-
|
|
101
|
-
rspec-
|
|
102
|
-
rspec-
|
|
110
|
+
rchardet (1.8.0)
|
|
111
|
+
rexml (3.2.5)
|
|
112
|
+
rspec (3.10.0)
|
|
113
|
+
rspec-core (~> 3.10.0)
|
|
114
|
+
rspec-expectations (~> 3.10.0)
|
|
115
|
+
rspec-mocks (~> 3.10.0)
|
|
116
|
+
rspec-core (3.10.1)
|
|
117
|
+
rspec-support (~> 3.10.0)
|
|
118
|
+
rspec-expectations (3.10.1)
|
|
103
119
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
104
|
-
rspec-support (~> 3.
|
|
105
|
-
rspec-mocks (3.
|
|
120
|
+
rspec-support (~> 3.10.0)
|
|
121
|
+
rspec-mocks (3.10.2)
|
|
106
122
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
107
|
-
rspec-support (~> 3.
|
|
108
|
-
rspec-support (3.
|
|
123
|
+
rspec-support (~> 3.10.0)
|
|
124
|
+
rspec-support (3.10.2)
|
|
109
125
|
rubocop (0.49.1)
|
|
110
126
|
parallel (~> 1.10)
|
|
111
127
|
parser (>= 2.3.3.1, < 3.0)
|
|
@@ -116,31 +132,32 @@ GEM
|
|
|
116
132
|
ruby-ll (2.1.2)
|
|
117
133
|
ansi
|
|
118
134
|
ast
|
|
119
|
-
ruby-progressbar (1.
|
|
135
|
+
ruby-progressbar (1.11.0)
|
|
136
|
+
ruby2_keywords (0.0.4)
|
|
120
137
|
sawyer (0.8.2)
|
|
121
138
|
addressable (>= 2.3.5)
|
|
122
139
|
faraday (> 0.8, < 2.0)
|
|
123
140
|
shellany (0.0.1)
|
|
124
|
-
terminal-table (
|
|
125
|
-
unicode-display_width (
|
|
126
|
-
thor (1.0
|
|
127
|
-
unicode-display_width (1.
|
|
128
|
-
yard (0.9.
|
|
141
|
+
terminal-table (3.0.1)
|
|
142
|
+
unicode-display_width (>= 1.1.1, < 3)
|
|
143
|
+
thor (1.1.0)
|
|
144
|
+
unicode-display_width (1.7.0)
|
|
145
|
+
yard (0.9.26)
|
|
129
146
|
|
|
130
147
|
PLATFORMS
|
|
131
|
-
|
|
148
|
+
universal-darwin-20
|
|
132
149
|
|
|
133
150
|
DEPENDENCIES
|
|
134
|
-
bundler (
|
|
151
|
+
bundler (>= 2.2.10)
|
|
135
152
|
danger-android_lint!
|
|
136
153
|
guard (~> 2.14)
|
|
137
154
|
guard-rspec (~> 4.7)
|
|
138
155
|
listen (= 3.0.7)
|
|
139
156
|
pry
|
|
140
|
-
rake (~>
|
|
157
|
+
rake (~> 13.0)
|
|
141
158
|
rspec (~> 3.4)
|
|
142
159
|
rubocop (~> 0.49.0)
|
|
143
160
|
yard (~> 0.9.11)
|
|
144
161
|
|
|
145
162
|
BUNDLED WITH
|
|
146
|
-
|
|
163
|
+
2.2.10
|
data/Rakefile
CHANGED
data/atlantis.yaml
ADDED
data/danger-android_lint.gemspec
CHANGED
|
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.add_runtime_dependency 'danger-plugin-api', '~> 1.0'
|
|
24
24
|
|
|
25
25
|
# General ruby development
|
|
26
|
-
spec.add_development_dependency 'bundler', '
|
|
27
|
-
spec.add_development_dependency 'rake', '~>
|
|
26
|
+
spec.add_development_dependency 'bundler', '>= 2.2.10'
|
|
27
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
|
28
28
|
|
|
29
29
|
# Testing support
|
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3.4'
|
data/lib/android_lint/plugin.rb
CHANGED
|
@@ -84,6 +84,9 @@ module Danger
|
|
|
84
84
|
# Only show messages within changed files.
|
|
85
85
|
attr_accessor :filtering
|
|
86
86
|
|
|
87
|
+
# Only shows messages for the modified lines.
|
|
88
|
+
attr_accessor :filtering_lines
|
|
89
|
+
|
|
87
90
|
# Calls lint task of your gradle project.
|
|
88
91
|
# It fails if `gradlew` cannot be found inside current directory.
|
|
89
92
|
# It fails if `severity` level is not a valid option.
|
|
@@ -113,7 +116,7 @@ module Danger
|
|
|
113
116
|
filtered_issues = filter_issues_by_severity(issues)
|
|
114
117
|
|
|
115
118
|
message = ""
|
|
116
|
-
|
|
119
|
+
|
|
117
120
|
if inline_mode
|
|
118
121
|
# Report with inline comment
|
|
119
122
|
send_inline_comment(filtered_issues)
|
|
@@ -121,7 +124,7 @@ module Danger
|
|
|
121
124
|
message = message_for_issues(filtered_issues)
|
|
122
125
|
markdown("### AndroidLint found issues\n\n" + message) unless message.to_s.empty?
|
|
123
126
|
end
|
|
124
|
-
|
|
127
|
+
|
|
125
128
|
message
|
|
126
129
|
end
|
|
127
130
|
|
|
@@ -195,13 +198,42 @@ module Danger
|
|
|
195
198
|
filtered.each do |r|
|
|
196
199
|
location = r.xpath('location').first
|
|
197
200
|
filename = location.get('file').gsub(dir, "")
|
|
198
|
-
next unless !filtering || (target_files.include? filename)
|
|
201
|
+
next unless (!filtering && !filtering_lines) || (target_files.include? filename)
|
|
199
202
|
line = (location.get('line') || "0").to_i
|
|
203
|
+
if filtering_lines
|
|
204
|
+
added_lines = parseDiff(git.diff[filename].patch)
|
|
205
|
+
next unless added_lines.include? line
|
|
206
|
+
end
|
|
200
207
|
send(level === "Warning" ? "warn" : "fail", r.get('message'), file: filename, line: line)
|
|
201
208
|
end
|
|
202
209
|
end
|
|
203
210
|
end
|
|
204
211
|
|
|
212
|
+
# parses git diff of a file and retuns an array of added line numbers.
|
|
213
|
+
def parseDiff(diff)
|
|
214
|
+
current_line_number = nil
|
|
215
|
+
added_lines = []
|
|
216
|
+
diff_lines = diff.strip.split("\n")
|
|
217
|
+
diff_lines.each_with_index do |line, index|
|
|
218
|
+
if m = /\+(\d+)(?:,\d+)? @@/.match(line)
|
|
219
|
+
# (e.g. @@ -32,10 +32,7 @@)
|
|
220
|
+
current_line_number = Integer(m[1])
|
|
221
|
+
else
|
|
222
|
+
if !current_line_number.nil?
|
|
223
|
+
if line.start_with?('+')
|
|
224
|
+
# added line
|
|
225
|
+
added_lines.push current_line_number
|
|
226
|
+
current_line_number += 1
|
|
227
|
+
elsif !line.start_with?('-')
|
|
228
|
+
# unmodified line
|
|
229
|
+
current_line_number += 1
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
added_lines
|
|
235
|
+
end
|
|
236
|
+
|
|
205
237
|
def gradlew_exists?
|
|
206
238
|
`ls gradlew`.strip.empty? == false
|
|
207
239
|
end
|
data/spec/android_lint_spec.rb
CHANGED
|
@@ -188,8 +188,50 @@ module Danger
|
|
|
188
188
|
expect(warn).not_to include("Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead")
|
|
189
189
|
end
|
|
190
190
|
|
|
191
|
+
describe "for a modified file" do
|
|
192
|
+
before do
|
|
193
|
+
allow(Dir).to receive(:pwd).and_return("/Users/shivampokhriyal/Documents/projects/Commcare/commcare-android")
|
|
194
|
+
|
|
195
|
+
allow(@android_lint.git).to receive(:modified_files).and_return([
|
|
196
|
+
"app/build.gradle",
|
|
197
|
+
])
|
|
198
|
+
|
|
199
|
+
fake_patch = File.read("spec/fixtures/pr-diff.diff")
|
|
200
|
+
diff = [OpenStruct.new(type: "modified", path: "app/build.gradle")]
|
|
201
|
+
allow(@android_lint.git).to receive(:diff).and_return(diff)
|
|
202
|
+
diff_for_file = OpenStruct.new(insertions: 3)
|
|
203
|
+
allow(diff).to receive(:[]).with("app/build.gradle").and_return(diff_for_file)
|
|
204
|
+
allow(diff_for_file).to receive(:patch).and_return(fake_patch)
|
|
205
|
+
|
|
206
|
+
fake_result = File.open("spec/fixtures/lint-result-for-pr.xml")
|
|
207
|
+
allow(File).to receive(:open).with(@android_lint.report_file).and_return(fake_result)
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
it 'with filtering_lines, only show issues in modified lines' do
|
|
211
|
+
@android_lint.filtering_lines = true
|
|
212
|
+
@android_lint.lint inline_mode: true
|
|
213
|
+
|
|
214
|
+
error = @android_lint.status_report[:errors]
|
|
215
|
+
expect(error).to include("fake message three")
|
|
216
|
+
|
|
217
|
+
expect(error).not_to include("fake message one")
|
|
218
|
+
expect(error).not_to include("fake message two")
|
|
219
|
+
expect(error).not_to include("fake message in unmodified file")
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
it 'with filtering, show all issues in modified files' do
|
|
223
|
+
@android_lint.filtering = true
|
|
224
|
+
@android_lint.lint inline_mode: true
|
|
225
|
+
|
|
226
|
+
error = @android_lint.status_report[:errors]
|
|
227
|
+
expect(error).to include("fake message one")
|
|
228
|
+
expect(error).to include("fake message two")
|
|
229
|
+
expect(error).to include("fake message three")
|
|
230
|
+
|
|
231
|
+
expect(error).not_to include("fake message in unmodified file")
|
|
232
|
+
end
|
|
233
|
+
end
|
|
191
234
|
end
|
|
192
|
-
|
|
193
235
|
end
|
|
194
236
|
end
|
|
195
237
|
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<issues format="5" by="lint 4.0.0">
|
|
3
|
+
<issue
|
|
4
|
+
id="DuplicatePlatformClasses"
|
|
5
|
+
severity="Error"
|
|
6
|
+
message="fake message one"
|
|
7
|
+
category="Correctness"
|
|
8
|
+
priority="8"
|
|
9
|
+
summary="Duplicate Platform Classes"
|
|
10
|
+
explanation="There are a number of libraries that duplicate not just functionality of the Android platform but using the exact same class names as the ones provided in Android -- for example the apache http classes. This can lead to unexpected crashes.

To solve this, you need to either find a newer version of the library which no longer has this problem, or to repackage the library (and all of its dependencies) using something like the `jarjar` tool, or finally, rewriting the code to use different APIs (for example, for http code, consider using `HttpUrlConnection` or a library like `okhttp`).">
|
|
11
|
+
<location
|
|
12
|
+
file="/Users/shivampokhriyal/Documents/projects/Commcare/commcare-android/app/build.gradle"/>
|
|
13
|
+
</issue>
|
|
14
|
+
|
|
15
|
+
<issue
|
|
16
|
+
id="DuplicatePlatformClasses"
|
|
17
|
+
severity="Error"
|
|
18
|
+
message="fake message two"
|
|
19
|
+
category="Correctness"
|
|
20
|
+
priority="8"
|
|
21
|
+
summary="Duplicate Platform Classes"
|
|
22
|
+
explanation="There are a number of libraries that duplicate not just functionality of the Android platform but using the exact same class names as the ones provided in Android -- for example the apache http classes. This can lead to unexpected crashes.

To solve this, you need to either find a newer version of the library which no longer has this problem, or to repackage the library (and all of its dependencies) using something like the `jarjar` tool, or finally, rewriting the code to use different APIs (for example, for http code, consider using `HttpUrlConnection` or a library like `okhttp`)."
|
|
23
|
+
errorLine1=" testImplementation 'org.json:json:20140107'"
|
|
24
|
+
errorLine2=" ~~~~~~~~~~~~~">
|
|
25
|
+
<location
|
|
26
|
+
file="/Users/shivampokhriyal/Documents/projects/Commcare/commcare-android/app/build.gradle"
|
|
27
|
+
line="52"
|
|
28
|
+
column="25"/>
|
|
29
|
+
</issue>
|
|
30
|
+
|
|
31
|
+
<issue
|
|
32
|
+
id="FakeId"
|
|
33
|
+
severity="Error"
|
|
34
|
+
message="fake message three"
|
|
35
|
+
category="Correctness"
|
|
36
|
+
priority="8"
|
|
37
|
+
summary="Fake summary"
|
|
38
|
+
explanation="Fake explanation."
|
|
39
|
+
errorLine1="// debugImplementation because LeakCanary should only run in debug builds."
|
|
40
|
+
errorLine2=" ~~~~~~~~~~~~~">
|
|
41
|
+
<location
|
|
42
|
+
file="/Users/shivampokhriyal/Documents/projects/Commcare/commcare-android/app/build.gradle"
|
|
43
|
+
line="36"
|
|
44
|
+
column="10"/>
|
|
45
|
+
</issue>
|
|
46
|
+
|
|
47
|
+
<issue
|
|
48
|
+
id="2"
|
|
49
|
+
severity="Error"
|
|
50
|
+
message="fake message in unmodified file"
|
|
51
|
+
category="Correctness"
|
|
52
|
+
priority="8"
|
|
53
|
+
summary="Fake summary"
|
|
54
|
+
explanation="Fake explanation."
|
|
55
|
+
errorLine1="// debugImplementation because LeakCanary should only run in debug builds."
|
|
56
|
+
errorLine2=" ~~~~~~~~~~~~~">
|
|
57
|
+
<location
|
|
58
|
+
file="/Users/shivampokhriyal/Documents/projects/Commcare/commcare-android/app/AndroidManifest.xml"
|
|
59
|
+
line="36"
|
|
60
|
+
column="10"/>
|
|
61
|
+
</issue>
|
|
62
|
+
</issues>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
diff --git a/app/build.gradle b/app/build.gradle
|
|
2
|
+
index 6dcc647b8..a1365bd75 100644
|
|
3
|
+
--- a/app/build.gradle
|
|
4
|
+
+++ b/app/build.gradle
|
|
5
|
+
@@ -33,6 +33,9 @@ configurations {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
dependencies {
|
|
9
|
+
+ // debugImplementation because LeakCanary should only run in debug builds.
|
|
10
|
+
+ debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
|
|
11
|
+
+
|
|
12
|
+
testImplementation 'junit:junit:4.12'
|
|
13
|
+
testImplementation('org.robolectric:robolectric:4.3.1') {
|
|
14
|
+
exclude(group: 'org.bouncycastle', module: 'bcprov-jdk15on')
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: danger-android_lint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gustavo Barbosa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-06-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oga
|
|
@@ -42,30 +42,30 @@ dependencies:
|
|
|
42
42
|
name: bundler
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - "
|
|
45
|
+
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
47
|
+
version: 2.2.10
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - "
|
|
52
|
+
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
54
|
+
version: 2.2.10
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: rake
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
61
|
+
version: '13.0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
68
|
+
version: '13.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: rspec
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -171,6 +171,7 @@ executables: []
|
|
|
171
171
|
extensions: []
|
|
172
172
|
extra_rdoc_files: []
|
|
173
173
|
files:
|
|
174
|
+
- ".circleci/config.yml"
|
|
174
175
|
- ".github/CODEOWNERS"
|
|
175
176
|
- ".gitignore"
|
|
176
177
|
- ".ruby-version"
|
|
@@ -181,6 +182,7 @@ files:
|
|
|
181
182
|
- LICENSE.txt
|
|
182
183
|
- README.md
|
|
183
184
|
- Rakefile
|
|
185
|
+
- atlantis.yaml
|
|
184
186
|
- danger-android_lint.gemspec
|
|
185
187
|
- lib/android_lint/gem_version.rb
|
|
186
188
|
- lib/android_lint/plugin.rb
|
|
@@ -188,9 +190,11 @@ files:
|
|
|
188
190
|
- lib/danger_plugin.rb
|
|
189
191
|
- spec/android_lint_spec.rb
|
|
190
192
|
- spec/fixtures/lint-result-empty.xml
|
|
193
|
+
- spec/fixtures/lint-result-for-pr.xml
|
|
191
194
|
- spec/fixtures/lint-result-with-everything.xml
|
|
192
195
|
- spec/fixtures/lint-result-with-special-chars.xml
|
|
193
196
|
- spec/fixtures/lint-result-without-fatal.xml
|
|
197
|
+
- spec/fixtures/pr-diff.diff
|
|
194
198
|
- spec/spec_helper.rb
|
|
195
199
|
homepage: https://github.com/loadsmart/danger-android_lint
|
|
196
200
|
licenses:
|
|
@@ -211,8 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
211
215
|
- !ruby/object:Gem::Version
|
|
212
216
|
version: '0'
|
|
213
217
|
requirements: []
|
|
214
|
-
|
|
215
|
-
rubygems_version: 2.5.2.1
|
|
218
|
+
rubygems_version: 3.0.3
|
|
216
219
|
signing_key:
|
|
217
220
|
specification_version: 4
|
|
218
221
|
summary: Lint files of a gradle based Android project. This is done using the Android's
|
|
@@ -220,7 +223,9 @@ summary: Lint files of a gradle based Android project. This is done using the An
|
|
|
220
223
|
test_files:
|
|
221
224
|
- spec/android_lint_spec.rb
|
|
222
225
|
- spec/fixtures/lint-result-empty.xml
|
|
226
|
+
- spec/fixtures/lint-result-for-pr.xml
|
|
223
227
|
- spec/fixtures/lint-result-with-everything.xml
|
|
224
228
|
- spec/fixtures/lint-result-with-special-chars.xml
|
|
225
229
|
- spec/fixtures/lint-result-without-fatal.xml
|
|
230
|
+
- spec/fixtures/pr-diff.diff
|
|
226
231
|
- spec/spec_helper.rb
|