codeclimate 0.14.3 → 0.14.4
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/lib/cc/analyzer/config.rb +6 -4
- data/lib/cc/analyzer/include_paths_builder.rb +0 -1
- data/lib/cc/analyzer/path_filter.rb +1 -11
- 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: bea54a5cb0fd28dff4dace4113e3daa47202f430
|
4
|
+
data.tar.gz: b79903b3a89cda679a49fff516ddab90885e4cae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f75e1d353a5476ab13e52e7114879527e5777b7dd484c5d86a9902329a1f76a92ce789f06a34ad92dddaeed25e89f9d1bf0bc867aa34494325e258a8f6820f8b
|
7
|
+
data.tar.gz: 2c428e8609deeeae40ef26d775249b5552d8be4fba4539cc35e48a6cc9cfdf51bc80c7eaa2d41db52565588784b870c34c891351d00723539d213ddb90cfb466
|
data/lib/cc/analyzer/config.rb
CHANGED
@@ -35,13 +35,15 @@ module CC
|
|
35
35
|
if engine_present?(engine_name)
|
36
36
|
@config["engines"][engine_name]["enabled"] = true
|
37
37
|
else
|
38
|
-
@config["engines"][engine_name] = {
|
39
|
-
|
40
|
-
"config" => default_config(engine_name),
|
41
|
-
}
|
38
|
+
@config["engines"][engine_name] = { "enabled" => true }
|
39
|
+
enable_default_config(engine_name) if default_config(engine_name)
|
42
40
|
end
|
43
41
|
end
|
44
42
|
|
43
|
+
def enable_default_config(engine_name)
|
44
|
+
@config["engines"][engine_name]["config"] = default_config(engine_name)
|
45
|
+
end
|
46
|
+
|
45
47
|
def exclude_paths
|
46
48
|
@config["exclude_paths"]
|
47
49
|
end
|
@@ -7,16 +7,6 @@ module CC
|
|
7
7
|
@paths = paths
|
8
8
|
end
|
9
9
|
|
10
|
-
def raise_if_any_unreadable_files
|
11
|
-
paths.each do |path|
|
12
|
-
if !File.directory?(path) && !FileUtils.readable_by_all?(path)
|
13
|
-
raise CC::Analyzer::UnreadableFileError, "Can't read #{path}"
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
self
|
18
|
-
end
|
19
|
-
|
20
10
|
def reject_unreadable_paths
|
21
11
|
@paths = paths - unreadable_path_entries
|
22
12
|
self
|
@@ -28,7 +18,7 @@ module CC
|
|
28
18
|
end
|
29
19
|
|
30
20
|
def select_readable_files
|
31
|
-
@paths = paths.select { |path| FileUtils.readable_by_all?(path) }
|
21
|
+
@paths = paths.select { |path| File.exist?(path) && FileUtils.readable_by_all?(path) }
|
32
22
|
self
|
33
23
|
end
|
34
24
|
|
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.14.
|
4
|
+
version: 0.14.4
|
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-11-
|
11
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|