danger-pmd 1.0.3 → 1.0.4

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: a536da3a3b5d479ac3f2ecc733a3751a58a09c15c06716f1c6d712c1d22f53c9
4
- data.tar.gz: fed8e05378b9e6cc981055fbe63d7806452ed53d64d7b85dbade5dfd6b99d129
3
+ metadata.gz: ab6081f3613d0e47e1f7a18c674487a13ddc5354589efab6ccc77f65a13e1262
4
+ data.tar.gz: 82903a51f4b457c39a5253326aa7b16164a65b610091636e8a2d7435bee08fa9
5
5
  SHA512:
6
- metadata.gz: 12b0b73c71cad94acdd1d75e49addb227067ae1fe92950c54670bd49915717ddb16e53a218cca352f6a0cb690e777c9f7d112e06a59cd1ef48c1e066243f7b47
7
- data.tar.gz: '068f0e26176ef43f1a3d07f6fccccc1b5d5eefec9b3d6a3d82726988920132e3e0661da4be7e236a365ceeb7d821a3b00d724b1fc0c5c0f293503973f9717f28'
6
+ metadata.gz: 45dc1a85121cfa808d4053563a2133ea330451e20a3448f739cdea0a93a7db98d39da792b49e4b5cffcb41e32bf4884d4c56049fe26cf16c35516cc36a9d6104
7
+ data.tar.gz: 57241ad67f38e6337eead1f84b152baaccff956b057b634c2b13445ad573f67c66fe13bcbaccd6b498970c85bd4724eed02741a7b69b88880e1a68994f3aba89
@@ -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-pmd (1.0.3)
4
+ danger-pmd (1.0.4)
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.0)
161
+ codecov (~> 0.5.1)
152
162
  danger-pmd!
153
163
  guard (~> 2.16.2)
154
164
  guard-rspec (~> 4.7.3)
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Danger PMD
2
+ [![Latest release](https://img.shields.io/github/v/release/mathroule/danger-pmd.svg)](https://github.com/mathroule/danger-pmd/releases/latest) [![Deploy](https://github.com/mathroule/danger-pmd/workflows/Deploy/badge.svg)](https://github.com/mathroule/danger-pmd/actions) [![codecov](https://codecov.io/gh/mathroule/danger-pmd/branch/main/graph/badge.svg?token=HYA9XW0GL5)](https://codecov.io/gh/mathroule/danger-pmd)
2
3
 
3
4
  Checks on your Gradle project's Java source files.
4
5
  This is done using [PMD](https://pmd.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
data/danger-pmd.gemspec CHANGED
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'rake', '~> 13.0'
27
27
 
28
28
  # Testing support
29
+ spec.add_development_dependency 'codecov', '~> 0.5.1'
29
30
  spec.add_development_dependency 'rspec', '~> 3.10.0'
30
31
 
31
32
  # Linting code and docs
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pmd
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
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-pmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
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: '13.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-pmd.gemspec
213
228
  - lib/danger_plugin.rb
214
229
  - lib/danger_pmd.rb