codeclimate 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cc/analyzer/engine.rb +7 -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: 64d4ba8e8ea50087f7d408066d950a0db774658e
|
4
|
+
data.tar.gz: 99c2c57b45fc033373f2210ab062de6d69e02c9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6827e42fd894fc03bd52895d3147bbbca37d208618df6bc3558d6aa850c6a2a4472d2ebd47566a98904ebe42b75ab6ca105ab26b471c73496b75f3340890bd1b
|
7
|
+
data.tar.gz: 58d92881faa13965cccf014506cbc06465f1c2105534d9489931b91478f8cf251ac7cd0e9e747a2f2af4fceb7e097069feba95490bdbe2a38cc56cd77b3ded55
|
data/lib/cc/analyzer/engine.rb
CHANGED
@@ -92,8 +92,14 @@ module CC
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def env_file
|
95
|
+
contents = "ENGINE_CONFIG=#{@config_json}"
|
96
|
+
|
97
|
+
if contents.size > 64 * 1024
|
98
|
+
raise EngineFailure, "Config for engine #{name} exceeds 64k character limit"
|
99
|
+
end
|
100
|
+
|
95
101
|
path = File.join("/tmp/cc", SecureRandom.uuid)
|
96
|
-
File.write(path,
|
102
|
+
File.write(path, contents)
|
97
103
|
path
|
98
104
|
end
|
99
105
|
|