danger-sonar 1.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52aa585a26b951c8eb74168f47cd18ac5a8b76da
4
- data.tar.gz: 36332b9a3bd110b7feaca6cae97670b7d8d48a90
3
+ metadata.gz: c4930adb0fbbc44f963df606a5bad134607303e5
4
+ data.tar.gz: b05651e85660f98120daee64a6efead0b2417739
5
5
  SHA512:
6
- metadata.gz: 34f0cb7f72134c6d2b77c94bb1f1f3c021201eaf98d20e37ef65b5f2e9e32a259719e2a26010471edc96590c302e0cbac86b7e8020d31f0b0b4fca87ef329006
7
- data.tar.gz: 2e407d24ce928eaeadeb4193ee4d87dfe8b08c706ad29d824bef00265b3f290e1e88a343d96592152b97bb55e2112affe955da7a569039c54c9f855f936f9afd
6
+ metadata.gz: 45088bc415b4d18596916580f94f6b3e9e0215d91dbf39739c5c498d3f11b99d396df0d04330470cd16359a9606d33ba589425646132c517520d74836c721e1a
7
+ data.tar.gz: a889faeed1649770b127c3e89a10f579ec448a482d70fdd8083caf7bfbe9ee602356173533deb950df4c5627bb8eba6b05663933f838605656fbaf41a9b20eee
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # danger-sonar
2
2
 
3
- A danger plugin to check for Sonar Qube violation.
3
+ A danger plugin to check for Sonar violation.
4
4
 
5
5
  ## Installation
6
6
 
Binary file
@@ -1,3 +1,3 @@
1
1
  module Sonar
2
- VERSION = "1.0".freeze
2
+ VERSION = "1.0.1".freeze
3
3
  end
@@ -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: '1.0'
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-06-28 00:00:00.000000000 Z
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