codacy-coverage 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -0
- data/lib/codacy/client.rb +0 -2
- 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: a53a06f8f48ba817d1989ac0065f1539d06437d4
|
4
|
+
data.tar.gz: 1dcc6cdb3b892ad9387fc9befe449aa404286e9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbca3afed244425534e53478118fbb2f918b713e81bdb43c3928b2be48a801570189d9101b99aa9cd90b01443cb22bb109f8f65be3b5fb3838d5d726b56d584c
|
7
|
+
data.tar.gz: 7a0e8caaa66f5f10d97f3e67530dc656f6b49eb6154026474e2337cf8c4cd8dff4f90a5f54b0388dfbcb41596f2f47811fbf088920194b62a01d2f6443284762
|
data/README.md
CHANGED
@@ -89,6 +89,28 @@ VCR.configure do |config|
|
|
89
89
|
end
|
90
90
|
```
|
91
91
|
|
92
|
+
**Cannot generate local simplecov report**
|
93
|
+
|
94
|
+
Override `SimpleCov.formatter` by adding both your prefered simplecov formatter and Codacy's formatter.
|
95
|
+
You can also add more options to `SimpleCov.start`.
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
require 'simplecov'
|
99
|
+
require 'codacy-coverage'
|
100
|
+
|
101
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
102
|
+
SimpleCov::Formatter::HTMLFormatter,
|
103
|
+
Codacy::Formatter
|
104
|
+
])
|
105
|
+
|
106
|
+
SimpleCov.start do
|
107
|
+
add_filter '.gems'
|
108
|
+
add_filter 'pkg'
|
109
|
+
add_filter 'spec'
|
110
|
+
add_filter 'vendor'
|
111
|
+
end
|
112
|
+
```
|
113
|
+
|
92
114
|
## What is Codacy?
|
93
115
|
|
94
116
|
[Codacy](https://www.codacy.com/) is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.
|
data/lib/codacy/client.rb
CHANGED
@@ -23,9 +23,7 @@ module Codacy
|
|
23
23
|
false
|
24
24
|
else
|
25
25
|
logger.info('Posting ' + result.to_s.length.to_s + ' bytes to ' + url)
|
26
|
-
VCR.turn_off! if Object.const_defined?('VCR') && VCR.respond_to?(:turn_off!)
|
27
26
|
response = send_request(url, result, project_token)
|
28
|
-
VCR.turn_on! if Object.const_defined?('VCR') && VCR.respond_to?(:turn_on!)
|
29
27
|
|
30
28
|
logger.info(response)
|
31
29
|
response.to_s.include? 'success'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codacy-coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nuno Teixeira
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-12-
|
12
|
+
date: 2016-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: simplecov
|