danger-sonar 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/danger-sonar-1.0.gem +0 -0
- data/lib/sonar/gem_version.rb +1 -1
- data/lib/sonar/plugin.rb +11 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4930adb0fbbc44f963df606a5bad134607303e5
|
4
|
+
data.tar.gz: b05651e85660f98120daee64a6efead0b2417739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45088bc415b4d18596916580f94f6b3e9e0215d91dbf39739c5c498d3f11b99d396df0d04330470cd16359a9606d33ba589425646132c517520d74836c721e1a
|
7
|
+
data.tar.gz: a889faeed1649770b127c3e89a10f579ec448a482d70fdd8083caf7bfbe9ee602356173533deb950df4c5627bb8eba6b05663933f838605656fbaf41a9b20eee
|
data/README.md
CHANGED
Binary file
|
data/lib/sonar/gem_version.rb
CHANGED
data/lib/sonar/plugin.rb
CHANGED
@@ -48,6 +48,9 @@ module Danger
|
|
48
48
|
# Total Sonar info issues found in PR changes
|
49
49
|
attr_accessor :info_count
|
50
50
|
|
51
|
+
# To log additional information for debuging.
|
52
|
+
attr_accessor :verbose
|
53
|
+
|
51
54
|
# Lints Swift files.
|
52
55
|
# Generates a `markdown` list of issues(Blocker, Major, Minor, Info) for the prose in a corpus of .markdown and .md files.
|
53
56
|
#
|
@@ -62,9 +65,11 @@ module Danger
|
|
62
65
|
|
63
66
|
# Extract excluded paths
|
64
67
|
excluded_paths = excluded_files_from_config(config_file)
|
68
|
+
log "Sonar - Excluded paths #{excluded_paths}"
|
65
69
|
|
66
70
|
# Extract swift files (ignoring excluded ones)
|
67
71
|
files = find_files(files, excluded_paths)
|
72
|
+
log "Sonar - Included files #{files}"
|
68
73
|
|
69
74
|
|
70
75
|
#file = File.read(json_report_file)
|
@@ -76,6 +81,8 @@ module Danger
|
|
76
81
|
config: config_file
|
77
82
|
}
|
78
83
|
|
84
|
+
log "Sonar - options #{options}"
|
85
|
+
|
79
86
|
# Lint each file and collect the results
|
80
87
|
issues = analyse_sonar_report(files, options)
|
81
88
|
puts "Issues: #{issues}"
|
@@ -257,5 +264,9 @@ module Danger
|
|
257
264
|
send(method, r['reason'], file: filename, line: r['line'])
|
258
265
|
end
|
259
266
|
end
|
267
|
+
|
268
|
+
def log(text)
|
269
|
+
puts(text) if @verbose
|
270
|
+
end
|
260
271
|
end
|
261
272
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-sonar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manoj Babu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|
@@ -178,6 +178,7 @@ files:
|
|
178
178
|
- LICENSE.txt
|
179
179
|
- README.md
|
180
180
|
- Rakefile
|
181
|
+
- danger-sonar-1.0.gem
|
181
182
|
- danger-sonar.gemspec
|
182
183
|
- lib/danger_plugin.rb
|
183
184
|
- lib/danger_sonar.rb
|