codeclimate 0.53.0 → 0.54.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/cli/config_generator.rb +4 -1
- data/lib/cc/cli/help.rb +8 -5
- data/lib/cc/cli/runner.rb +1 -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: b941108c138ec172cf1ebacb9c35f06c8dad5f81
|
4
|
+
data.tar.gz: '09e2c7927b8ecbeca97e3faa1f03485fcc032339'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5aa58b0f34582c5cf768ef12a4335cf3e9503df5c7da129d0f50a8c680970a5c7828d58936c78018744739e04456ee09672463d927b3854cbb23545d5ee71c5
|
7
|
+
data.tar.gz: 0b288ccebef70dcb5ca1246affcdbdf4a2a2467b84e2c53053cab3701d378e623ffc876f51adef73e8e7e4a2b565a35fe39ba093dca2dc9853b8630e06065d2d
|
@@ -68,7 +68,10 @@ module CC
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def engine_eligible?(engine)
|
71
|
-
|
71
|
+
engine["channels"].keys.any? { |channel| channel == "stable" } &&
|
72
|
+
!engine["community"] &&
|
73
|
+
engine["enable_regexps"].present? &&
|
74
|
+
files_exist?(engine)
|
72
75
|
end
|
73
76
|
|
74
77
|
def code_climate_check?(engine)
|
data/lib/cc/cli/help.rb
CHANGED
@@ -23,11 +23,14 @@ module CC
|
|
23
23
|
private
|
24
24
|
|
25
25
|
def show_help(command_name)
|
26
|
-
command = Command[command_name]
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
if (command = Command[command_name])
|
27
|
+
say "Usage: codeclimate #{command.synopsis}\n"
|
28
|
+
say "\n"
|
29
|
+
say "#{command.help}\n"
|
30
|
+
say "\n\n"
|
31
|
+
else
|
32
|
+
say "Unknown command: #{command_name}"
|
33
|
+
end
|
31
34
|
end
|
32
35
|
|
33
36
|
def show_help_summary
|
data/lib/cc/cli/runner.rb
CHANGED