codeclimate_circle_ci_coverage 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjJhM2VjY2MzNWNjMGZiZTA1OGUxMWJkMGVjZGFmOGY4MTY5N2I3Mg==
4
+ NGJmMzM3ZWQxMjIzZTQ3NDQ5ZDEwMGRmMGI1ZjAzYjlmZDY4YTlhZQ==
5
5
  data.tar.gz: !binary |-
6
- ZWVlZjNhY2MzNTI2Y2RlN2RhMzhkMjE3MDBjZmYxNDFkZjYwNTJkYg==
6
+ MjA5NmMyNjA4ZjVhMTVjZGNjZmZkMzQ3OGI0NTg0ZjNmNDFhZmUyMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2JhMzFiNjNjMmZiNDIzYmJlNjY2ZTE3MGI2NWUyOTlhODg0MmZmNjU4MzE1
10
- MmM3NDEzYjk3NTdhZWJjNmE5NDU1ZGMxMjkyZTE5NDk5MzEwMWM0YWRkNGRl
11
- MjNkMzdjYmVjYjlkNzkyYTI0NGVhZDdlNDI2YjliNzFjMTIzN2M=
9
+ MTAwNzJiYTQxYWVmMzAxYjcxMTU1ODc0Y2RlYWY5NzUxYjM0YjAxNTU0OTU0
10
+ YmFmYjRkNDg1OTExOTdlNDkxMGY4MGZkZGFhNDRiYTgyNjA4M2U0NzYzZTc1
11
+ YWFmMDI2NTJkOWZhYzE3NWNlNGZjOThjZWZhNGJjNTMwM2JiMjM=
12
12
  data.tar.gz: !binary |-
13
- NDM0ZGJiYTk1ZTU4OTg3MWUxNGM0ZjBhYTQ0NzJmYWJmOGNmNjE3MzRlZDQz
14
- ZWU4Mzg3YzZiYTRlNzI1NGQyY2MzM2YxZTJjOTUxZjI1YTFmZGM1OTFjOGJj
15
- ZDk1OGE5MzYzYzk1NTg4MzliZDFlN2UyM2ViODRmNGZmZGE5YTU=
13
+ NGJhMTlhMWUxNDgyMzYwMDU4MDJmNDJmZWRjMzkyNTJjYzBkZWE1ZDE4NjI4
14
+ YWU2YzUyMTFmYjRmMDM2N2NkN2I0NGQzYjRkNTFiM2QwYWVkMGQxYmU0YzE1
15
+ Y2M1YWIzMDc1YWE2MDhhMTUxNmIyMmY5ODc5OTQyMDNmYjZkOTU=
@@ -40,6 +40,7 @@ class CoverageReporter
40
40
  merged_result = load_and_merge_files(all_coverage_dir, final_coverage_dir)
41
41
  output_result_html(merged_result)
42
42
  upload_result_file(merged_result)
43
+ store_code_climate_payload(merged_result)
43
44
  end
44
45
 
45
46
  # Public: Download the .resultset.json files from each of the nodes
@@ -106,4 +107,14 @@ class CoverageReporter
106
107
  codeclimate_formatter = CodeClimate::TestReporter::Formatter.new
107
108
  codeclimate_formatter.format(merged_result)
108
109
  end
110
+
111
+ # Internal: Debug function, in use to try to determine why codeclimate
112
+ # is marking some lines of comments as "relevant" lines.
113
+ def store_code_climate_payload(merged_result)
114
+ ENV["CODECLIMATE_TO_FILE"] = "true"
115
+ codeclimate_formatter = CodeClimate::TestReporter::Formatter.new
116
+ codeclimate_formatter.format(merged_result)
117
+ ensure
118
+ ENV["CODECLIMATE_TO_FILE"] = nil
119
+ end
109
120
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate_circle_ci_coverage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin Dunlop