codeclimate 0.55.0 → 0.56.0
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/config/engines.yml +1 -0
- data/lib/cc/analyzer/issue.rb +6 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29f49abb3ceb6ead6623487656eade314ec7c450
|
|
4
|
+
data.tar.gz: c9332561844d8f46b076d27fa9d5e87074ef47aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98ea1e072b1cb5d381328199aca85a4f26f6cee84e169667eb231504aebbd7ede02d6c47ddb53e667e06f96443e41349ffb93d9daf1f27253846341b73e0c769
|
|
7
|
+
data.tar.gz: 90358a3258c614b1f2489efa682e5d23f87155b2d0f3db75ca0beccb9c64ad4857dd78ef51abc959c32cce00d7497bfdc79949b1cdf17b5e3524aaddaa105de9
|
data/config/engines.yml
CHANGED
|
@@ -120,6 +120,7 @@ credo:
|
|
|
120
120
|
duplication:
|
|
121
121
|
channels:
|
|
122
122
|
beta: codeclimate/codeclimate-duplication:beta
|
|
123
|
+
cronopio: codeclimate/codeclimate-duplication:cronopio
|
|
123
124
|
stable: codeclimate/codeclimate-duplication
|
|
124
125
|
description: Structural duplication detection for Ruby, Python, JavaScript, and PHP.
|
|
125
126
|
community: false
|
data/lib/cc/analyzer/issue.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module CC
|
|
2
2
|
module Analyzer
|
|
3
3
|
class Issue
|
|
4
|
+
DEFAULT_SEVERITY = "minor".freeze
|
|
4
5
|
SPEC_ISSUE_ATTRIBUTES = %w[
|
|
5
6
|
categories
|
|
6
7
|
check_name
|
|
@@ -20,6 +21,7 @@ module CC
|
|
|
20
21
|
def as_json(*)
|
|
21
22
|
parsed_output.reverse_merge!(
|
|
22
23
|
"fingerprint" => fingerprint,
|
|
24
|
+
"severity" => severity,
|
|
23
25
|
)
|
|
24
26
|
end
|
|
25
27
|
|
|
@@ -46,6 +48,10 @@ module CC
|
|
|
46
48
|
SourceFingerprint.new(self).compute
|
|
47
49
|
end
|
|
48
50
|
|
|
51
|
+
def severity
|
|
52
|
+
parsed_output.fetch("severity", DEFAULT_SEVERITY)
|
|
53
|
+
end
|
|
54
|
+
|
|
49
55
|
def parsed_output
|
|
50
56
|
@parsed_output ||= JSON.parse(output)
|
|
51
57
|
end
|
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.56.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-03-
|
|
11
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -272,8 +272,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
272
272
|
version: '0'
|
|
273
273
|
requirements: []
|
|
274
274
|
rubyforge_project:
|
|
275
|
-
rubygems_version: 2.4.5
|
|
275
|
+
rubygems_version: 2.4.5
|
|
276
276
|
signing_key:
|
|
277
277
|
specification_version: 4
|
|
278
278
|
summary: Code Climate CLI
|
|
279
279
|
test_files: []
|
|
280
|
+
has_rdoc:
|