codeclimate 0.24.0 → 0.24.1
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 +8 -0
- data/lib/cc/workspace/path_tree/dir_node.rb +6 -4
- 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: 4dd9b749a17cadd5f158371ee941df9700a370db
|
4
|
+
data.tar.gz: 81e0fb553f138e47cd745d7a53a133bd99c88774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc45bc66d3ea3a361566abbd93c6761f229dad4eef8f0be50a651ee0f214386c2a380abdd2812821c97285e9787d7ea3766acce6828911c38f1b929c1f940378
|
7
|
+
data.tar.gz: e1953de4315f77d1f697ac82d2b4afbb66ee2fcfc0bda7a783c0e94774d9fbc11cacce6a595fb2913bf77bc93e0bc67a55c7ecbe29ae062a90470d4465c82485
|
data/config/engines.yml
CHANGED
@@ -133,6 +133,14 @@ gnu-complexity:
|
|
133
133
|
- \.c$
|
134
134
|
default_ratings_paths:
|
135
135
|
- "**.c"
|
136
|
+
haxe-checkstyle:
|
137
|
+
image: codeclimate/codeclimate-haxe-checkstyle
|
138
|
+
description: Checkstyle is a development library to help developers write Haxe code that adheres to a coding standard.
|
139
|
+
community: true
|
140
|
+
enable_regexps:
|
141
|
+
- \.hx$
|
142
|
+
default_ratings_paths:
|
143
|
+
- "**.hx"
|
136
144
|
hlint:
|
137
145
|
image: codeclimate/codeclimate-hlint
|
138
146
|
description: Linter for Haskell programs.
|
@@ -4,11 +4,13 @@ module CC
|
|
4
4
|
class DirNode
|
5
5
|
def initialize(root_path, children = {})
|
6
6
|
@root_path = root_path.dup.freeze
|
7
|
-
@children = children
|
7
|
+
@children = children.each_with_object({}) do |(k, v), memo|
|
8
|
+
memo[k.clone] = v.clone
|
9
|
+
end
|
8
10
|
end
|
9
11
|
|
10
12
|
def clone
|
11
|
-
self.class.new(root_path, children
|
13
|
+
self.class.new(root_path, children)
|
12
14
|
end
|
13
15
|
|
14
16
|
def all_paths
|
@@ -37,8 +39,8 @@ module CC
|
|
37
39
|
return if head.nil? && tail.empty?
|
38
40
|
|
39
41
|
if (entry = find_direct_child(head))
|
40
|
-
children[entry.basename.to_s] = PathTree.node_for_pathname(entry)
|
41
|
-
children[entry.basename.to_s].add(*tail)
|
42
|
+
children[entry.basename.to_s.dup.freeze] = PathTree.node_for_pathname(entry)
|
43
|
+
children[entry.basename.to_s.dup.freeze].add(*tail)
|
42
44
|
else
|
43
45
|
CLI.debug("Couldn't include because part of path doesn't exist.", path: File.join(root_path, head))
|
44
46
|
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.24.
|
4
|
+
version: 0.24.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code Climate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|