codeclimate 0.24.0 → 0.24.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd0b2f64059436d193bb0b83f30a32d39ee75d02
4
- data.tar.gz: c35356b49793aea56bb67e8a91d7716f2503a6ba
3
+ metadata.gz: 4dd9b749a17cadd5f158371ee941df9700a370db
4
+ data.tar.gz: 81e0fb553f138e47cd745d7a53a133bd99c88774
5
5
  SHA512:
6
- metadata.gz: e8da495c42f0292284a9ef17f3e3a26228351bbb29195d71398aa9293c72b1def48b5815735278b983a4b40ffe2e38f965030666d38eeb9d086eef5afaa0b706
7
- data.tar.gz: fceaa1daf827c645cc00725d52f440485739172c98e7b899d6ece83482935a1e184ec35daee77906e9663d8f97112c1dadfc9fd5a02641dbf78bceba010f2e51
6
+ metadata.gz: bc45bc66d3ea3a361566abbd93c6761f229dad4eef8f0be50a651ee0f214386c2a380abdd2812821c97285e9787d7ea3766acce6828911c38f1b929c1f940378
7
+ data.tar.gz: e1953de4315f77d1f697ac82d2b4afbb66ee2fcfc0bda7a783c0e94774d9fbc11cacce6a595fb2913bf77bc93e0bc67a55c7ecbe29ae062a90470d4465c82485
@@ -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.dup)
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.0
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-03-24 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport