xcpretty-pmd-formatter 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pmd_formatter.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec36e1232cb11b638da63719a419979865997236
4
- data.tar.gz: 614b6dcf2a8816aa61d121e515c80d630e206c8a
3
+ metadata.gz: 14ebd47b17bf430c5edde7efbdbfc19defb4a819
4
+ data.tar.gz: 2a9595318640acf730d09bc3b2513349e9aa4768
5
5
  SHA512:
6
- metadata.gz: d14771ae44d95a8363e0ec980d1ab95b661d1790fdb35c2f343f339581a4332ac1a62f668a8b8b1dcf582530164e1df5b262b1bbbdcc06e68824b2109f664bfc
7
- data.tar.gz: 4c6939f002cf9f386c08a5fad9ce695020307053dc45ca2a1a45cf0936e50927e172d47f6f0d9557147418bce02acd355b5ca052df9acd98cebef2fe7439f94a
6
+ metadata.gz: d5b1cb57bed1d89653a06715a451991d6c9e09af0ad8d0a9e23b682c79b06c85047a3de0cb950464493bd9b14b1762478186081dba1faf57e03349013b89d7d5
7
+ data.tar.gz: bbfddfd967744d65745a0d602af9ee05bfb7ab4836eaaa8cb1efaab529b0bcb10e595466c15b55086da4daf0990e4ba5f10740146c49269d6634c10cbd34f610
data/lib/pmd_formatter.rb CHANGED
@@ -140,7 +140,11 @@ class PMDFormatter < XCPretty::Simple
140
140
  violation['beginline'] = value.split(':')[1]
141
141
  violation['endline'] = '0'
142
142
  end
143
- violation['priority'] = '1'
143
+ if key1.to_s == "compile_errors"
144
+ violation['priority'] = '1'
145
+ else
146
+ violation['priority'] = '2'
147
+ end
144
148
  violation['rule'] = 'clang static analyzer'
145
149
  violation['ruleset'] = 'clang static analyzer'
146
150
  if key.to_s == 'reason'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcpretty-pmd-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Csaba Szigeti