rspec-sonarqube-formatter 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.codeclimate.yml +4 -0
- data/.editorconfig +1 -1
- data/.github/workflows/ci.yml +19 -8
- data/.gitignore +1 -4
- data/.rubocop.yml +1 -1
- data/Gemfile +2 -2
- data/Gemfile.lock +9 -9
- data/README.md +2 -0
- data/rspec-sonarqube-formatter.gemspec +1 -1
- data/sonar-project.properties +18 -17
- data/tasks/version.rake +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9f38e17d78de4d060c9d568c0c599c6f3a4b29b13cbb9543fefb6aa105b186b
|
4
|
+
data.tar.gz: cb01f45813dae902b60a3127ab179cc49d042b8f947747dbf3cc3f8d248b48b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7669d6d7d3828238f110698d4bdbb14463bc5f79655a2dfd0e82817b42fe742649822a8354f9cf2946cd337ed5f158a03586818c0d3795b97ca695a4a1b5050
|
7
|
+
data.tar.gz: '0937cc33f04cd5a7e0d2000f9ab2047cb52a8dcbbb4ae6aa2810906d8eeebe6a5675ff0aea7185b3f8749ea98c35a102146a4d983c81672656256c557d20eb7a'
|
data/.codeclimate.yml
CHANGED
data/.editorconfig
CHANGED
data/.github/workflows/ci.yml
CHANGED
@@ -60,19 +60,13 @@ jobs:
|
|
60
60
|
- name: Install dependencies
|
61
61
|
run: bundle install
|
62
62
|
- name: Run linting
|
63
|
-
run: bundle exec rubocop --format progress --format json --out rubocop.json
|
63
|
+
run: bundle exec rubocop --format progress --format json --out rubocop-result.json
|
64
64
|
- name: Run tests
|
65
65
|
run: bundle exec rspec spec
|
66
|
-
# SonarCloud
|
67
|
-
- name: SonarCloud Scan
|
68
|
-
uses: SonarSource/sonarcloud-github-action@master
|
69
|
-
env:
|
70
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
71
|
-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
72
66
|
# Codecov
|
73
67
|
- uses: codecov/codecov-action@v4
|
74
68
|
with:
|
75
|
-
fail_ci_if_error:
|
69
|
+
fail_ci_if_error: false
|
76
70
|
verbose: true
|
77
71
|
env:
|
78
72
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
@@ -84,3 +78,20 @@ jobs:
|
|
84
78
|
debug: true
|
85
79
|
coverageLocations: |
|
86
80
|
coverage/lcov.info:lcov
|
81
|
+
# Update version for SonarCloud
|
82
|
+
- name: Set version in sonar-project.properties
|
83
|
+
run: sed -i -e "s/sonar.projectVersion=.*$/sonar.projectVersion=$(bundle exec rake version)/g" sonar-project.properties
|
84
|
+
# Fix paths for SonarCloud, because it uses a different container
|
85
|
+
- name: Fix paths for SonarCloud
|
86
|
+
run: |
|
87
|
+
sed -i -e "s#$(pwd)/#/github/workspace/#g" coverage/coverage.json
|
88
|
+
# SonarCloud
|
89
|
+
- name: SonarCloud Scan
|
90
|
+
uses: SonarSource/sonarcloud-github-action@v3.0.0
|
91
|
+
env:
|
92
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
93
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
94
|
+
SONAR_SCANNER_JAVA_OPTS: '--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED'
|
95
|
+
with:
|
96
|
+
args: >
|
97
|
+
-Dsonar.verbose=false
|
data/.gitignore
CHANGED
@@ -15,7 +15,6 @@
|
|
15
15
|
.VolumeIcon.icns
|
16
16
|
.com.apple.timemachine.donotpresent
|
17
17
|
|
18
|
-
|
19
18
|
### VisualStudioCode ###
|
20
19
|
.vscode/*
|
21
20
|
!.vscode/settings.json
|
@@ -24,15 +23,13 @@
|
|
24
23
|
!.vscode/extensions.json
|
25
24
|
.history
|
26
25
|
|
27
|
-
|
28
26
|
### Application ###
|
29
27
|
.rspec_status
|
30
28
|
coverage
|
31
29
|
test-report.xml
|
32
30
|
.scannerwork
|
33
|
-
rubocop.json
|
31
|
+
rubocop-result.json
|
34
32
|
.idea
|
35
33
|
*.gem
|
36
34
|
.bundle/
|
37
|
-
cc-test-reporter
|
38
35
|
pkg/*
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
@@ -10,9 +10,9 @@ gemspec
|
|
10
10
|
group :development, :test do
|
11
11
|
gem 'bundler', '~> 2.5'
|
12
12
|
gem 'rake', '~> 13.2'
|
13
|
-
gem 'rubocop', '~> 1.
|
13
|
+
gem 'rubocop', '~> 1.68'
|
14
14
|
gem 'simplecov', '~> 0.22'
|
15
|
-
gem 'simplecov-html', '~> 0.
|
15
|
+
gem 'simplecov-html', '~> 0.13'
|
16
16
|
gem 'simplecov-json', '~> 0.2'
|
17
17
|
gem 'simplecov-lcov', '~> 0.8'
|
18
18
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rspec-sonarqube-formatter (1.6.
|
4
|
+
rspec-sonarqube-formatter (1.6.2)
|
5
5
|
htmlentities (~> 4.3)
|
6
6
|
rspec (~> 3.0)
|
7
7
|
|
@@ -12,10 +12,10 @@ GEM
|
|
12
12
|
diff-lcs (1.5.1)
|
13
13
|
docile (1.4.1)
|
14
14
|
htmlentities (4.3.4)
|
15
|
-
json (2.7.
|
15
|
+
json (2.7.5)
|
16
16
|
language_server-protocol (3.17.0.3)
|
17
17
|
parallel (1.26.3)
|
18
|
-
parser (3.3.5.
|
18
|
+
parser (3.3.5.1)
|
19
19
|
ast (~> 2.4.1)
|
20
20
|
racc
|
21
21
|
racc (1.8.1)
|
@@ -35,7 +35,7 @@ GEM
|
|
35
35
|
diff-lcs (>= 1.2.0, < 2.0)
|
36
36
|
rspec-support (~> 3.13.0)
|
37
37
|
rspec-support (3.13.1)
|
38
|
-
rubocop (1.
|
38
|
+
rubocop (1.68.0)
|
39
39
|
json (~> 2.3)
|
40
40
|
language_server-protocol (>= 3.17.0)
|
41
41
|
parallel (~> 1.10)
|
@@ -45,20 +45,20 @@ GEM
|
|
45
45
|
rubocop-ast (>= 1.32.2, < 2.0)
|
46
46
|
ruby-progressbar (~> 1.7)
|
47
47
|
unicode-display_width (>= 2.4.0, < 3.0)
|
48
|
-
rubocop-ast (1.
|
48
|
+
rubocop-ast (1.33.0)
|
49
49
|
parser (>= 3.3.1.0)
|
50
50
|
ruby-progressbar (1.13.0)
|
51
51
|
simplecov (0.22.0)
|
52
52
|
docile (~> 1.1)
|
53
53
|
simplecov-html (~> 0.11)
|
54
54
|
simplecov_json_formatter (~> 0.1)
|
55
|
-
simplecov-html (0.
|
55
|
+
simplecov-html (0.13.1)
|
56
56
|
simplecov-json (0.2.3)
|
57
57
|
json
|
58
58
|
simplecov
|
59
59
|
simplecov-lcov (0.8.0)
|
60
60
|
simplecov_json_formatter (0.1.4)
|
61
|
-
unicode-display_width (2.
|
61
|
+
unicode-display_width (2.6.0)
|
62
62
|
|
63
63
|
PLATFORMS
|
64
64
|
arm64-darwin-23
|
@@ -69,9 +69,9 @@ DEPENDENCIES
|
|
69
69
|
bundler (~> 2.5)
|
70
70
|
rake (~> 13.2)
|
71
71
|
rspec-sonarqube-formatter!
|
72
|
-
rubocop (~> 1.
|
72
|
+
rubocop (~> 1.68)
|
73
73
|
simplecov (~> 0.22)
|
74
|
-
simplecov-html (~> 0.
|
74
|
+
simplecov-html (~> 0.13)
|
75
75
|
simplecov-json (~> 0.2)
|
76
76
|
simplecov-lcov (~> 0.8)
|
77
77
|
|
data/README.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
[][issues]
|
9
9
|
[][license]
|
10
10
|
[][codecov]
|
11
|
+
[][sonar-tests]
|
11
12
|
[][sonarcloud]
|
12
13
|
[][sonarcloud]
|
13
14
|
[][codeclimate]
|
@@ -106,4 +107,5 @@ Releases are built from tags automatically and pushed to [RubyGems.org][rubygems
|
|
106
107
|
[codecov]: https://app.codecov.io/gh/otherguy/rspec-sonarqube-formatter
|
107
108
|
[codeclimate]: https://codeclimate.com/github/otherguy/rspec-sonarqube-formatter
|
108
109
|
[sonarcloud]: https://sonarcloud.io/dashboard?id=otherguy_rspec-sonarqube-formatter
|
110
|
+
[sonar-tests]: https://sonarcloud.io/component_measures?metric=tests&view=list&id=otherguy_rspec-sonarqube-formatter
|
109
111
|
[license]: https://github.com/otherguy/rspec-sonarqube-formatter/blob/main/LICENSE.md
|
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'rspec-sonarqube-formatter'
|
8
8
|
|
9
|
-
spec.version = '1.6.
|
9
|
+
spec.version = '1.6.2'
|
10
10
|
spec.platform = Gem::Platform::RUBY
|
11
11
|
spec.authors = ['Alexander Graf']
|
12
12
|
spec.email = ['alex@otherguy.uo']
|
data/sonar-project.properties
CHANGED
@@ -1,29 +1,30 @@
|
|
1
|
-
sonar.projectKey=otherguy_rspec-sonarqube-formatter
|
2
|
-
sonar.organization=otherguy
|
3
|
-
|
4
1
|
sonar.host.url=https://sonarcloud.io
|
5
2
|
|
6
|
-
sonar.
|
7
|
-
|
8
|
-
# This is the name and version displayed in the SonarCloud UI.
|
3
|
+
sonar.organization=otherguy
|
4
|
+
sonar.projectKey=otherguy_rspec-sonarqube-formatter
|
9
5
|
sonar.projectName=rspec-sonarqube-formatter
|
6
|
+
sonar.projectVersion=
|
10
7
|
|
11
|
-
|
12
|
-
sonar.projectBaseDir=.
|
13
|
-
sonar.sources=lib
|
14
|
-
sonar.tests=spec
|
8
|
+
sonar.language=ruby
|
15
9
|
|
16
|
-
|
17
|
-
|
10
|
+
sonar.text.inclusions.activate=true
|
11
|
+
|
12
|
+
sonar.pullrequest.provider=GitHub
|
13
|
+
sonar.pullrequest.github.repository=otherguy/rspec-sonarqube-formatter
|
18
14
|
|
19
|
-
# Encoding of the source code. Default is default system encoding
|
20
15
|
sonar.sourceEncoding=UTF-8
|
21
16
|
|
22
|
-
|
23
|
-
sonar.testExecutionReportPaths=test-report.xml
|
17
|
+
sonar.exclusions=*.json
|
24
18
|
|
25
|
-
sonar.
|
26
|
-
sonar.
|
19
|
+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
20
|
+
sonar.sources=.
|
21
|
+
sonar.tests=spec
|
22
|
+
sonar.test.inclusions=**/*_spec.rb
|
23
|
+
sonar.coverage.exclusions=spec/**/*_spec.rb,spec/spec_helper.rb
|
24
|
+
|
25
|
+
sonar.testExecutionReportPaths=test-report.xml
|
26
|
+
sonar.ruby.coverage.reportPaths=coverage/coverage.json
|
27
|
+
sonar.ruby.rubocop.reportPaths=rubocop-result.json
|
27
28
|
|
28
29
|
# External links
|
29
30
|
sonar.links.issue=https://github.com/otherguy/rspec-sonarqube-formatter/issues
|
data/tasks/version.rake
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-sonarqube-formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Graf
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|