danger-spotbugs 0.0.1 → 0.0.2

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
  SHA256:
3
- metadata.gz: a55fc47e057a553864510afcb8b6f3e2e9cd3e2269aa88cc916603aaf98e11ff
4
- data.tar.gz: 6436eb0d42ded59b8cac452a607af40ffffa090ff635c1fa6a0f61a4a2089475
3
+ metadata.gz: 9961e4cd791f6d0ccdc80ecdad48aede2197f160c98e57627bcfd0808b44c5e0
4
+ data.tar.gz: 62bc0d1208a0fadc6458d84a75bfa3d4cee8ee72c1090d2c9e90d9bc63e2769c
5
5
  SHA512:
6
- metadata.gz: '094c261a825b803f0b494bb6776eb422c36ea7657b40a9e9bbacad37b27d41362f570ca775a72e86eb50298140fca259651263cae392bc00d7368e02825c03b1'
7
- data.tar.gz: b213ee2852c6502fe6561f3e74a061dd4ceadb9739aa8b57ddcd05cc90b488098780b75969d03ea80e2dbd47c1116b762e784b61b752924b0ad6bcdd71efef9f
6
+ metadata.gz: 8e4fae36b5a28e4a3564d8ff353c18e05f7d875784143760341d8bf188158cc962939d2d8600e28137d21cdedee259c0714bde8905775a505667d8364951a188
7
+ data.tar.gz: f77ee2d02b2fb6dda7a3fd4af76cddb69d4dfb370a2edb0793586e65b4459d604c0acc4d4a74efc8cee290243542ae2967ce0d6fbd53df3a7d2ebc55b6aca55f
@@ -1,4 +1,4 @@
1
- name: Publish
1
+ name: Deploy
2
2
 
3
3
  on:
4
4
  workflow_dispatch:
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
14
  matrix:
15
- ruby: [ '2.4', '2.7', '3.0' ]
15
+ ruby: [ '2.5', '2.7', '3.0' ]
16
16
  steps:
17
17
  - uses: actions/checkout@v2
18
18
  - name: Set up Ruby
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-spotbugs (0.0.1)
4
+ danger-spotbugs (0.0.2)
5
5
  danger-plugin-api (~> 1.0)
6
6
  oga (~> 2.15)
7
7
 
@@ -17,6 +17,8 @@ GEM
17
17
  cork
18
18
  nap
19
19
  open4 (~> 1.3)
20
+ codecov (0.5.1)
21
+ simplecov (>= 0.15, < 0.22)
20
22
  coderay (1.1.3)
21
23
  colored2 (3.1.2)
22
24
  cork (0.3.0)
@@ -37,6 +39,7 @@ GEM
37
39
  danger-plugin-api (1.0.0)
38
40
  danger (> 2.0)
39
41
  diff-lcs (1.4.4)
42
+ docile (1.3.5)
40
43
  faraday (1.3.0)
41
44
  faraday-net_http (~> 1.0)
42
45
  multipart-post (>= 1.2, < 3)
@@ -138,6 +141,12 @@ GEM
138
141
  addressable (>= 2.3.5)
139
142
  faraday (> 0.8, < 2.0)
140
143
  shellany (0.0.1)
144
+ simplecov (0.21.2)
145
+ docile (~> 1.1)
146
+ simplecov-html (~> 0.11)
147
+ simplecov_json_formatter (~> 0.1)
148
+ simplecov-html (0.12.3)
149
+ simplecov_json_formatter (0.1.2)
141
150
  terminal-table (3.0.0)
142
151
  unicode-display_width (~> 1.1, >= 1.1.1)
143
152
  thor (1.1.0)
@@ -149,6 +158,7 @@ PLATFORMS
149
158
 
150
159
  DEPENDENCIES
151
160
  bundler (~> 2.2.14)
161
+ codecov (~> 0.5.1)
152
162
  danger-spotbugs!
153
163
  guard (~> 2.16.2)
154
164
  guard-rspec (~> 4.7.3)
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Danger SpotBugs
2
+ [![Latest release](https://img.shields.io/github/v/release/mathroule/danger-spotbugs.svg)](https://github.com/mathroule/danger-spotbugs/releases/latest) [![Deploy](https://github.com/mathroule/danger-spotbugs/workflows/Deploy/badge.svg)](https://github.com/mathroule/danger-spotbugs/actions) [![codecov](https://codecov.io/gh/mathroule/danger-spotbugs/branch/main/graph/badge.svg?token=KW312ANXPN)](https://codecov.io/gh/mathroule/danger-spotbugs)
2
3
 
3
4
  Checks on your Gradle project's Java source files.
4
5
  This is done using [SpotBugs](https://spotbugs.github.io)
data/codecov.yml ADDED
@@ -0,0 +1,20 @@
1
+ codecov:
2
+ require_ci_to_pass: yes
3
+
4
+ coverage:
5
+ precision: 2
6
+ round: down
7
+ range: '70...100'
8
+
9
+ parsers:
10
+ gcov:
11
+ branch_detection:
12
+ conditional: yes
13
+ loop: yes
14
+ method: no
15
+ macro: no
16
+
17
+ comment:
18
+ layout: 'reach,diff,flags,files,footer'
19
+ behavior: default
20
+ require_changes: no
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'rake', '~> 10.5.0'
28
28
 
29
29
  # Testing support
30
+ spec.add_development_dependency 'codecov', '~> 0.5.1'
30
31
  spec.add_development_dependency 'rspec', '~> 3.10.0'
31
32
 
32
33
  # Linting code and docs
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spotbugs
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'simplecov'
4
+ SimpleCov.start
5
+
6
+ require 'codecov'
7
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov
8
+
3
9
  require 'pathname'
4
10
  ROOT = Pathname.new(File.expand_path('..', __dir__))
5
11
  $LOAD_PATH.unshift("#{ROOT}lib".to_s)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-spotbugs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathieu Rul
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 10.5.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: codecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.5.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.5.1
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rspec
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -199,7 +213,7 @@ executables: []
199
213
  extensions: []
200
214
  extra_rdoc_files: []
201
215
  files:
202
- - ".github/workflows/publish.yml"
216
+ - ".github/workflows/deploy.yml"
203
217
  - ".github/workflows/test.yml"
204
218
  - ".gitignore"
205
219
  - ".rubocop.yml"
@@ -209,6 +223,7 @@ files:
209
223
  - LICENSE
210
224
  - README.md
211
225
  - Rakefile
226
+ - codecov.yml
212
227
  - danger-spotbugs.gemspec
213
228
  - lib/danger_plugin.rb
214
229
  - lib/danger_spotbugs.rb