rspec-sonarqube-formatter 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +4 -0
- data/.editorconfig +1 -1
- data/.github/workflows/ci.yml +18 -7
- data/.gitignore +1 -1
- data/.rubocop.yml +1 -1
- data/Gemfile.lock +1 -1
- data/rspec-sonarqube-formatter.gemspec +1 -1
- data/rubocop-result.json +1 -0
- data/sonar-project.properties +16 -17
- data/tasks/version.rake +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e7305da0d3c84d2f94f5bfb1502dd7bee4d6e5f59402de6692c84b85ce95f29
|
4
|
+
data.tar.gz: 49f3df1139f7e8f2c7fa4b441ad5b880bf5cb1cb5b877df67a5cf2a29708236d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f337b5e8f9f23795b1fedaea76e9362614f2ee521db69a1d4bb47570950982b6707df96942f44b818399549a811b9bdd24dff467f1c83a2fd8b2d005506eddc0
|
7
|
+
data.tar.gz: b99bc924abf6fe0cf3c8f0c4854599e26600ec7b170da1e5f3183b78df82ecdb8baa0f4548377bef1157fbc8b56138e9afb56e3c71581f36c4b491d110df1671
|
data/.codeclimate.yml
CHANGED
data/.editorconfig
CHANGED
data/.github/workflows/ci.yml
CHANGED
@@ -60,15 +60,9 @@ 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:
|
@@ -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
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -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.1'
|
10
10
|
spec.platform = Gem::Platform::RUBY
|
11
11
|
spec.authors = ['Alexander Graf']
|
12
12
|
spec.email = ['alex@otherguy.uo']
|
data/rubocop-result.json
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"metadata":{"rubocop_version":"1.66.1","ruby_engine":"ruby","ruby_version":"3.3.5","ruby_patchlevel":"100","ruby_platform":"arm64-darwin23"},"files":[{"path":"Gemfile","offenses":[]},{"path":"Rakefile","offenses":[]},{"path":"lib/rspec_sonarqube_formatter.rb","offenses":[]},{"path":"rspec-sonarqube-formatter.gemspec","offenses":[]},{"path":"spec/rspec_sonarqube_formatter_spec.rb","offenses":[]},{"path":"spec/spec_helper.rb","offenses":[]},{"path":"tasks/version.rake","offenses":[]}],"summary":{"offense_count":0,"target_file_count":7,"inspected_file_count":7}}
|
data/sonar-project.properties
CHANGED
@@ -1,29 +1,28 @@
|
|
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.
|
17
|
+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
18
|
+
sonar.sources=.
|
19
|
+
sonar.tests=spec
|
20
|
+
sonar.test.inclusions=**/*_spec.rb
|
21
|
+
sonar.coverage.exclusions=spec/**/*_spec.rb,spec/spec_helper.rb
|
24
22
|
|
25
|
-
sonar.
|
26
|
-
sonar.ruby.coverage.reportPaths=coverage
|
23
|
+
sonar.testExecutionReportPaths=test-report.xml
|
24
|
+
sonar.ruby.coverage.reportPaths=coverage/coverage.json
|
25
|
+
sonar.ruby.rubocop.reportPaths=rubocop-result.json
|
27
26
|
|
28
27
|
# External links
|
29
28
|
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.1
|
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-09-
|
11
|
+
date: 2024-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- lib/rspec_sonarqube_formatter.rb
|
68
68
|
- renovate.json
|
69
69
|
- rspec-sonarqube-formatter.gemspec
|
70
|
+
- rubocop-result.json
|
70
71
|
- sonar-project.properties
|
71
72
|
- tasks/version.rake
|
72
73
|
homepage: https://github.com/otherguy/rspec-sonarqube-formatter
|