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.
- checksums.yaml +4 -4
- data/lib/pmd_formatter.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14ebd47b17bf430c5edde7efbdbfc19defb4a819
|
|
4
|
+
data.tar.gz: 2a9595318640acf730d09bc3b2513349e9aa4768
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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'
|