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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c27de0831fa129000098f12d91528b6d7a61f5e
4
- data.tar.gz: 14e1310aeb2dd8cc50dad5016e02cde02f0dcae9
3
+ metadata.gz: ee34e494be9bbd0ee8f45ae9c623267a78fc0f34
4
+ data.tar.gz: 9b069191ffef6aaa928e554ceb3115d9f03551f7
5
5
  SHA512:
6
- metadata.gz: 3f56f4e6b86b97679bda4548368c0cdab0fc50a64ef4ec3f6d4aced78d50c904d42a5b06afd77427bc741742e7c178da90b629be4630ae1f84dbaeaab5f8dc67
7
- data.tar.gz: 5853393a51ff7096529f683224df9788a81d110aaa27019fbb7e2917eca620f2e9c53af99f38fbd2114fd8ad9c7878c81ad84bff0e6687071e7ee945f7b90449
6
+ metadata.gz: eaddd6cfc3cf5c332a5c51d10d0ed329b9b26888d939751ebee8093752b73e98e44aaed246174b143f1f2b5682d967fa90d1ff70be2ca7f1cf40283df51e319a
7
+ data.tar.gz: 622813d777e80533b2a3ab5731753a53e882559b28171362b820a43feb9380f201466cf72ca7f315090af82e56b77dc5126d3e25a52a749dd48519676a5e1355
@@ -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 `image_name` and `description`.
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
- image_name: codeclimate/codeclimate-rubocop
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
- image_name: codeclimate/codeclimate-gofmt
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
- image_name: codeclimate/codeclimate-golint
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
- image_name: codeclimate/codeclimate-govet
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
- image_name: codeclimate/codeclimate-coffeelint
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
- image_name: codeclimate/codeclimate-eslint
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
- image_name: codeclimate/codeclimate-csslint
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
- image_name: codeclimate/codeclimate-watson
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
- image_name: codeclimate/codeclimate-rubymotion
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
- image_name: codeclimate/codeclimate-bundler-audit
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
- image_name: codeclimate/codeclimate-phpcodesniffer
93
+ image: codeclimate/codeclimate-phpcodesniffer
98
94
  description: PHP Linting
99
95
  community: false
100
96
  enable_regexps:
@@ -86,7 +86,7 @@ module CC
86
86
  "--volume", "#{@code_path}:/code:ro",
87
87
  "--env-file", env_file,
88
88
  "--user", "9000:9000",
89
- @metadata["image_name"],
89
+ @metadata["image"],
90
90
  @metadata["command"], # String or Array
91
91
  ].flatten.compact
92
92
  end
@@ -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
- engine_registry[engine_name],
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
@@ -35,7 +35,7 @@ module CC
35
35
  end
36
36
 
37
37
  def engine_image(engine_name)
38
- engines_registry_list[engine_name]["image_name"]
38
+ engines_registry_list[engine_name]["image"]
39
39
  end
40
40
 
41
41
  def pull_engine_image(engine_image)
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.11
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-26 00:00:00.000000000 Z
11
+ date: 2015-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport