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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e666d71282240830c03b462d328316141e3624a36cff76935ee3bcf09a5adc6
4
- data.tar.gz: cb319179ff685fc7b2fe140764aeb973a5b4a550ca9b8f96ac8c862a9178189f
3
+ metadata.gz: 4e7305da0d3c84d2f94f5bfb1502dd7bee4d6e5f59402de6692c84b85ce95f29
4
+ data.tar.gz: 49f3df1139f7e8f2c7fa4b441ad5b880bf5cb1cb5b877df67a5cf2a29708236d
5
5
  SHA512:
6
- metadata.gz: 4668349cbc3527460579a4d62b8fbfd5af960a5c7a0c7a40141cca3d6960a659a9a18064150e0375d1b001b2b7b1cf801870c35e9e7602827ef4c1970254d7b1
7
- data.tar.gz: cfe7186bb9f43e233967a3538353c2f3c358839113ad3e728a55dba662f991f57c7ac06b13e92df0030a8407afbfa5e2110194268e21081ce1b29c7404d8810b
6
+ metadata.gz: f337b5e8f9f23795b1fedaea76e9362614f2ee521db69a1d4bb47570950982b6707df96942f44b818399549a811b9bdd24dff467f1c83a2fd8b2d005506eddc0
7
+ data.tar.gz: b99bc924abf6fe0cf3c8f0c4854599e26600ec7b170da1e5f3183b78df82ecdb8baa0f4548377bef1157fbc8b56138e9afb56e3c71581f36c4b491d110df1671
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,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
@@ -30,7 +30,7 @@
30
30
  coverage
31
31
  test-report.xml
32
32
  .scannerwork
33
- rubocop.json
33
+ rubocop-result.json
34
34
  .idea
35
35
  *.gem
36
36
  .bundle/
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.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.1)
5
5
  htmlentities (~> 4.3)
6
6
  rspec (~> 3.0)
7
7
 
@@ -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.1'
10
10
  spec.platform = Gem::Platform::RUBY
11
11
  spec.authors = ['Alexander Graf']
12
12
  spec.email = ['alex@otherguy.uo']
@@ -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}}
@@ -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.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
+ # 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.ruby.rubocop.reportPaths=rubocop.json
26
- sonar.ruby.coverage.reportPaths=coverage/.resultset.json
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
@@ -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.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-05 00:00:00.000000000 Z
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