codeclimate 0.0.11 → 0.0.13
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 +14 -18
- data/lib/cc/analyzer/engine.rb +1 -1
- data/lib/cc/cli/analyze.rb +17 -1
- data/lib/cc/cli/engines/install.rb +1 -1
- 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: ee34e494be9bbd0ee8f45ae9c623267a78fc0f34
|
|
4
|
+
data.tar.gz: 9b069191ffef6aaa928e554ceb3115d9f03551f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eaddd6cfc3cf5c332a5c51d10d0ed329b9b26888d939751ebee8093752b73e98e44aaed246174b143f1f2b5682d967fa90d1ff70be2ca7f1cf40283df51e319a
|
|
7
|
+
data.tar.gz: 622813d777e80533b2a3ab5731753a53e882559b28171362b820a43feb9380f201466cf72ca7f315090af82e56b77dc5126d3e25a52a749dd48519676a5e1355
|
data/config/engines.yml
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# This file lists all the engines available to be run for analysis.
|
|
2
2
|
#
|
|
3
|
-
# Each engine must have an `
|
|
3
|
+
# Each engine must have an `image` and `description`. The value in `image` will
|
|
4
|
+
# be passed to `docker run` and so may be any value appropriate for that
|
|
5
|
+
# (repo/name:tag, image id, etc).
|
|
4
6
|
#
|
|
5
7
|
# When a repo has files that match the `enable_regexps`, that engine will be
|
|
6
8
|
# enabled by default in the codeclimate.yml file. That file will also have in it
|
|
@@ -8,8 +10,7 @@
|
|
|
8
10
|
# which files should be rated.
|
|
9
11
|
#
|
|
10
12
|
rubocop:
|
|
11
|
-
|
|
12
|
-
image_id: 41273519bce24e59685106ff3f4519abc20233fdaf46093576cefecc093b795f
|
|
13
|
+
image: codeclimate/codeclimate-rubocop
|
|
13
14
|
description: A Ruby static code analyzer, based on the community Ruby style guide.
|
|
14
15
|
community: false
|
|
15
16
|
enable_regexps:
|
|
@@ -17,8 +18,7 @@ rubocop:
|
|
|
17
18
|
default_ratings_paths:
|
|
18
19
|
- "**.rb"
|
|
19
20
|
gofmt:
|
|
20
|
-
|
|
21
|
-
image_id: fe7b20a9eda6e0bd154fbbb289f0d18ff3ffc41d891cd3b2e5dbe7e015180396
|
|
21
|
+
image: codeclimate/codeclimate-gofmt
|
|
22
22
|
description: gofmt
|
|
23
23
|
community: true
|
|
24
24
|
enable_regexps:
|
|
@@ -26,8 +26,7 @@ gofmt:
|
|
|
26
26
|
default_ratings_paths:
|
|
27
27
|
- "**.go"
|
|
28
28
|
golint:
|
|
29
|
-
|
|
30
|
-
image_id: cfde0099114d8b18bec8419d9ed359efac03069821cb967144b807d02ada1412
|
|
29
|
+
image: codeclimate/codeclimate-golint
|
|
31
30
|
description: golint
|
|
32
31
|
community: true
|
|
33
32
|
enable_regexps:
|
|
@@ -35,8 +34,7 @@ golint:
|
|
|
35
34
|
default_ratings_paths:
|
|
36
35
|
- "**.go"
|
|
37
36
|
govet:
|
|
38
|
-
|
|
39
|
-
image_id: fe7690da7198c569a28b69189909eb4c1199d2987bf50ab5d3bbd20d83139489
|
|
37
|
+
image: codeclimate/codeclimate-govet
|
|
40
38
|
description: govet
|
|
41
39
|
community: true
|
|
42
40
|
enable_regexps:
|
|
@@ -44,7 +42,7 @@ govet:
|
|
|
44
42
|
default_ratings_paths:
|
|
45
43
|
- "**.go"
|
|
46
44
|
coffeelint:
|
|
47
|
-
|
|
45
|
+
image: codeclimate/codeclimate-coffeelint
|
|
48
46
|
description: A style checker for CoffeeScript
|
|
49
47
|
community: false
|
|
50
48
|
enable_regexps:
|
|
@@ -52,8 +50,7 @@ coffeelint:
|
|
|
52
50
|
default_ratings_paths:
|
|
53
51
|
- "**.coffee"
|
|
54
52
|
eslint:
|
|
55
|
-
|
|
56
|
-
image_id: 28a9ec7c5fc88a67317b6193c3ddc72f1402ba2500e8ed3c6feab6d06ca91f65
|
|
53
|
+
image: codeclimate/codeclimate-eslint
|
|
57
54
|
description: A JavaScript/JSX linting utility
|
|
58
55
|
community: false
|
|
59
56
|
enable_regexps:
|
|
@@ -63,8 +60,7 @@ eslint:
|
|
|
63
60
|
- "**.js"
|
|
64
61
|
- "**.jsx"
|
|
65
62
|
csslint:
|
|
66
|
-
|
|
67
|
-
image_id: 3d5aea2e5f241ff1daff33bd86cc5a819a34c81471e31ca70992f6de5e8edf43
|
|
63
|
+
image: codeclimate/codeclimate-csslint
|
|
68
64
|
description: Automated linting of Cascading Stylesheets
|
|
69
65
|
community: false
|
|
70
66
|
enable_regexps:
|
|
@@ -72,21 +68,21 @@ csslint:
|
|
|
72
68
|
default_ratings_paths:
|
|
73
69
|
- "**.css"
|
|
74
70
|
watson:
|
|
75
|
-
|
|
71
|
+
image: codeclimate/codeclimate-watson
|
|
76
72
|
description: A young Ember Doctor to help you fix your code.
|
|
77
73
|
community: true
|
|
78
74
|
enable_regexps:
|
|
79
75
|
default_ratings_paths:
|
|
80
76
|
- "app/**"
|
|
81
77
|
rubymotion:
|
|
82
|
-
|
|
78
|
+
image: codeclimate/codeclimate-rubymotion
|
|
83
79
|
description: Rubymotion-specific rubocop checks
|
|
84
80
|
community: true
|
|
85
81
|
enable_regexps:
|
|
86
82
|
default_ratings_paths:
|
|
87
83
|
- "**.rb"
|
|
88
84
|
bundler-audit:
|
|
89
|
-
|
|
85
|
+
image: codeclimate/codeclimate-bundler-audit
|
|
90
86
|
description: Patch-level verification for Bundler
|
|
91
87
|
community: false
|
|
92
88
|
enable_patterns:
|
|
@@ -94,7 +90,7 @@ bundler-audit:
|
|
|
94
90
|
default_ratings_paths:
|
|
95
91
|
- Gemfile.lock
|
|
96
92
|
phpcodesniffer:
|
|
97
|
-
|
|
93
|
+
image: codeclimate/codeclimate-phpcodesniffer
|
|
98
94
|
description: PHP Linting
|
|
99
95
|
community: false
|
|
100
96
|
enable_regexps:
|
data/lib/cc/analyzer/engine.rb
CHANGED
data/lib/cc/cli/analyze.rb
CHANGED
|
@@ -35,6 +35,8 @@ module CC
|
|
|
35
35
|
when '-f'
|
|
36
36
|
@args.shift # throw out the -f
|
|
37
37
|
@formatter = Formatters.resolve(@args.shift)
|
|
38
|
+
when '--dev'
|
|
39
|
+
@dev_mode = true
|
|
38
40
|
end
|
|
39
41
|
rescue Formatters::Formatter::InvalidFormatterError => e
|
|
40
42
|
fatal(e.message)
|
|
@@ -70,7 +72,7 @@ module CC
|
|
|
70
72
|
@engines ||= config.engine_names.map do |engine_name|
|
|
71
73
|
Engine.new(
|
|
72
74
|
engine_name,
|
|
73
|
-
|
|
75
|
+
registry_entry(engine_name),
|
|
74
76
|
path,
|
|
75
77
|
engine_config(engine_name),
|
|
76
78
|
SecureRandom.uuid
|
|
@@ -86,6 +88,20 @@ module CC
|
|
|
86
88
|
ENV['CODE_PATH']
|
|
87
89
|
end
|
|
88
90
|
|
|
91
|
+
def registry_entry(engine_name)
|
|
92
|
+
if @dev_mode
|
|
93
|
+
dev_registry_entry(engine_name)
|
|
94
|
+
else
|
|
95
|
+
engine_registry[engine_name]
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
def dev_registry_entry(engine_name)
|
|
100
|
+
{
|
|
101
|
+
"image"=>"codeclimate/codeclimate-#{engine_name}:latest"
|
|
102
|
+
}
|
|
103
|
+
end
|
|
104
|
+
|
|
89
105
|
end
|
|
90
106
|
end
|
|
91
107
|
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.0.
|
|
4
|
+
version: 0.0.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code Climate
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-06-
|
|
11
|
+
date: 2015-06-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|