rspec-sonarqube-formatter 1.6.0 → 1.6.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: 8e666d71282240830c03b462d328316141e3624a36cff76935ee3bcf09a5adc6
4
- data.tar.gz: cb319179ff685fc7b2fe140764aeb973a5b4a550ca9b8f96ac8c862a9178189f
3
+ metadata.gz: f9f38e17d78de4d060c9d568c0c599c6f3a4b29b13cbb9543fefb6aa105b186b
4
+ data.tar.gz: cb01f45813dae902b60a3127ab179cc49d042b8f947747dbf3cc3f8d248b48b5
5
5
  SHA512:
6
- metadata.gz: 4668349cbc3527460579a4d62b8fbfd5af960a5c7a0c7a40141cca3d6960a659a9a18064150e0375d1b001b2b7b1cf801870c35e9e7602827ef4c1970254d7b1
7
- data.tar.gz: cfe7186bb9f43e233967a3538353c2f3c358839113ad3e728a55dba662f991f57c7ac06b13e92df0030a8407afbfa5e2110194268e21081ce1b29c7404d8810b
6
+ metadata.gz: f7669d6d7d3828238f110698d4bdbb14463bc5f79655a2dfd0e82817b42fe742649822a8354f9cf2946cd337ed5f158a03586818c0d3795b97ca695a4a1b5050
7
+ data.tar.gz: '0937cc33f04cd5a7e0d2000f9ab2047cb52a8dcbbb4ae6aa2810906d8eeebe6a5675ff0aea7185b3f8749ea98c35a102146a4d983c81672656256c557d20eb7a'
data/.codeclimate.yml CHANGED
@@ -11,6 +11,10 @@ plugins:
11
11
  channel: stable
12
12
  config:
13
13
  editorconfig: .editorconfig
14
+ exclude_patterns:
15
+ - "documentation/"
16
+ - "**/*.png"
17
+ - "Gemfile.lock"
14
18
  rubocop:
15
19
  enabled: true
16
20
  channel: beta
data/.editorconfig CHANGED
@@ -13,4 +13,4 @@ charset = utf-8
13
13
  indent_size = 2
14
14
 
15
15
  [*.md]
16
- indent_size = 4
16
+ indent_size = 2
@@ -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: true
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
@@ -19,7 +19,7 @@ Style/AndOr:
19
19
  EnforcedStyle: conditionals
20
20
 
21
21
  # Modern screens can easily display more than 80 characters.
22
- Metrics/LineLength:
22
+ Layout/LineLength:
23
23
  Max: 250
24
24
 
25
25
  Metrics/BlockLength:
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.66'
13
+ gem 'rubocop', '~> 1.68'
14
14
  gem 'simplecov', '~> 0.22'
15
- gem 'simplecov-html', '~> 0.12'
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.0)
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.2)
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.0)
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.66.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.32.3)
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.12.3)
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.5.0)
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.66)
72
+ rubocop (~> 1.68)
73
73
  simplecov (~> 0.22)
74
- simplecov-html (~> 0.12)
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
  [![GitHub issues](https://img.shields.io/github/issues/otherguy/rspec-sonarqube-formatter?style=for-the-badge&logo=github)][issues]
9
9
  [![License](https://img.shields.io/github/license/otherguy/rspec-sonarqube-formatter?style=for-the-badge&logo=readthedocs&logoColor=aaa)][license]
10
10
  [![Codecov](https://img.shields.io/codecov/c/github/otherguy/rspec-sonarqube-formatter?style=for-the-badge&logo=codecov&logoColor=aaa)][codecov]
11
+ [![Sonar Tests](https://img.shields.io/sonar/tests/otherguy_rspec-sonarqube-formatter?server=https%3A%2F%2Fsonarcloud.io&style=for-the-badge&logo=sonarcloud&logoColor=aaa)][sonar-tests]
11
12
  [![Sonar Quality Gate](https://img.shields.io/sonar/quality_gate/otherguy_rspec-sonarqube-formatter?server=https%3A%2F%2Fsonarcloud.io&style=for-the-badge&logo=sonarcloud&logoColor=aaa)][sonarcloud]
12
13
  [![Violations](https://img.shields.io/sonar/violations/otherguy_rspec-sonarqube-formatter?server=https%3A%2F%2Fsonarcloud.io&format=short&style=for-the-badge&logo=sonarcloud&logoColor=aaa)][sonarcloud]
13
14
  [![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/otherguy/rspec-sonarqube-formatter?style=for-the-badge&logo=codeclimate)][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.0'
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']
@@ -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.language=ruby
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
- # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
12
- sonar.projectBaseDir=.
13
- sonar.sources=lib
14
- sonar.tests=spec
8
+ sonar.language=ruby
15
9
 
16
- # Exclude coverage
17
- sonar.exclusions=coverage/**/*,**/*.css,**/*.js
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
- # Test report XML
23
- sonar.testExecutionReportPaths=test-report.xml
17
+ sonar.exclusions=*.json
24
18
 
25
- sonar.ruby.rubocop.reportPaths=rubocop.json
26
- sonar.ruby.coverage.reportPaths=coverage/.resultset.json
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
@@ -12,7 +12,7 @@ task :version, [:version] do |_task, args|
12
12
  current_version = spec.version.to_s
13
13
 
14
14
  if args[:version].nil?
15
- puts "Version: #{current_version}"
15
+ puts current_version
16
16
  exit 0
17
17
  end
18
18
 
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.0
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-09-05 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities