codeclimate 0.63.7 → 0.64.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cc/analyzer/issue.rb +11 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ee40902085c53ff3be8c9c6dba5dac688704039
|
4
|
+
data.tar.gz: ca401b80cb5650750d266c1d768d6511250b3015
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edcab9dd647664d6bf161bde34f53e8e343c894971561d3b1ed09f4dd0a0d81b0fe92ffb626ecb023ec0c4d2ca7fe9e7235404a5748526ca50b15ed0c4e472ae
|
7
|
+
data.tar.gz: 8ce93a41f8c3939a7dd254c31fdc7affb8bc033079469279972732a7b015ca842d3746cd8c1ef5b669eb66df7c084df58797d06ed7251266b9c91f9738833bc8
|
data/lib/cc/analyzer/issue.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
module CC
|
2
2
|
module Analyzer
|
3
3
|
class Issue
|
4
|
-
DEFAULT_SEVERITY =
|
4
|
+
DEFAULT_SEVERITY = IssueValidations::SeverityValidation::MINOR
|
5
|
+
DEPRECATED_SEVERITY = IssueValidations::SeverityValidation::NORMAL
|
6
|
+
|
5
7
|
SPEC_ISSUE_ATTRIBUTES = %w[
|
6
8
|
categories
|
7
9
|
check_name
|
@@ -21,8 +23,7 @@ module CC
|
|
21
23
|
def as_json(*)
|
22
24
|
parsed_output.reverse_merge!(
|
23
25
|
"fingerprint" => fingerprint,
|
24
|
-
|
25
|
-
)
|
26
|
+
).merge!("severity" => severity)
|
26
27
|
end
|
27
28
|
|
28
29
|
def fingerprint
|
@@ -49,7 +50,13 @@ module CC
|
|
49
50
|
end
|
50
51
|
|
51
52
|
def severity
|
52
|
-
parsed_output.fetch("severity", DEFAULT_SEVERITY)
|
53
|
+
severity = parsed_output.fetch("severity", DEFAULT_SEVERITY)
|
54
|
+
|
55
|
+
if severity == DEPRECATED_SEVERITY
|
56
|
+
DEFAULT_SEVERITY
|
57
|
+
else
|
58
|
+
severity
|
59
|
+
end
|
53
60
|
end
|
54
61
|
|
55
62
|
def parsed_output
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeclimate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.64.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code Climate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|