onceover-codequality 1.0.0 → 1.2.0
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/.github/workflows/ci.yaml +33 -22
- data/.github/workflows/labeler.yaml +1 -1
- data/.github/workflows/release.yaml +6 -6
- data/CHANGELOG.md +23 -0
- data/Rakefile +0 -1
- data/lib/onceover/codequality/formatter.rb +5 -1
- data/lib/onceover/codequality/version.rb +1 -1
- data/onceover-codequality.gemspec +3 -4
- metadata +18 -26
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7dc11d2c0fc8a7079f3a080969594b0b7747f3e9591a8a255b541e8f272e79e8
|
|
4
|
+
data.tar.gz: 056edd5622a6a60f3d25f4f9d74643ab6baaf9f9921804d677c996b913983cf4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5faa1ca56a0a691d2684af24d7ff93c58f42df5de0f132864d4ef39055dbfade2ed018aab38c9cf565e25967711e6c9d7a9d3d2d600075f9a7e9d90dd4975eb7
|
|
7
|
+
data.tar.gz: 187caa3be00e9ddbe3dad4b5096ba64fce3645d5d9b9723bf4b266ea431903921b27f4e4bf00c93b95c2bf52ef686915da29d56a653790a1420269e5dfa316e6
|
data/.github/workflows/ci.yaml
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
---
|
|
1
2
|
name: 🚦 CI
|
|
2
3
|
|
|
3
4
|
on:
|
|
@@ -6,47 +7,57 @@ on:
|
|
|
6
7
|
branches:
|
|
7
8
|
- master
|
|
8
9
|
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
9
13
|
jobs:
|
|
10
|
-
|
|
14
|
+
rubocop_and_matrix:
|
|
11
15
|
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
matrix:
|
|
15
|
-
ruby:
|
|
16
|
-
- 3.2
|
|
16
|
+
outputs:
|
|
17
|
+
ruby: ${{ steps.ruby.outputs.versions }}
|
|
17
18
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
19
|
-
- name: Install Ruby
|
|
19
|
+
- uses: actions/checkout@v6
|
|
20
|
+
- name: Install Ruby 3.4
|
|
20
21
|
uses: ruby/setup-ruby@v1
|
|
21
22
|
with:
|
|
22
|
-
ruby-version:
|
|
23
|
+
ruby-version: '3.4'
|
|
23
24
|
bundler-cache: true
|
|
24
|
-
- name: Run
|
|
25
|
+
- name: Run RuboCop
|
|
25
26
|
run: bundle exec rake rubocop
|
|
26
|
-
|
|
27
|
+
- id: ruby
|
|
28
|
+
uses: voxpupuli/ruby-version@v2
|
|
29
|
+
|
|
30
|
+
test:
|
|
31
|
+
name: "Ruby ${{ matrix.ruby }} - ${{ matrix.os }}"
|
|
32
|
+
runs-on: ${{ matrix.os }}
|
|
33
|
+
needs: rubocop_and_matrix
|
|
27
34
|
strategy:
|
|
28
35
|
fail-fast: false
|
|
29
36
|
matrix:
|
|
37
|
+
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
|
|
30
38
|
os:
|
|
31
39
|
- ubuntu-24.04
|
|
32
40
|
- ubuntu-24.04-arm
|
|
33
|
-
include:
|
|
34
|
-
- ruby: 3.2
|
|
35
|
-
runs-on: ${{ matrix.os }}
|
|
36
41
|
steps:
|
|
37
|
-
- uses: actions/checkout@
|
|
38
|
-
-
|
|
42
|
+
- uses: actions/checkout@v6
|
|
43
|
+
- name: Setup ruby
|
|
44
|
+
uses: ruby/setup-ruby@v1
|
|
39
45
|
with:
|
|
40
46
|
ruby-version: ${{ matrix.ruby }}
|
|
41
|
-
bundler-cache: true
|
|
42
|
-
- name: Run
|
|
47
|
+
bundler-cache: true
|
|
48
|
+
- name: Run tests
|
|
43
49
|
run: bundle exec rake spec
|
|
50
|
+
- name: Build the gem
|
|
51
|
+
run: gem build --strict --verbose *.gemspec
|
|
44
52
|
|
|
45
53
|
tests:
|
|
54
|
+
if: always()
|
|
46
55
|
needs:
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
runs-on: ubuntu-latest
|
|
56
|
+
- test
|
|
57
|
+
runs-on: ubuntu-24.04
|
|
50
58
|
name: Test suite
|
|
51
59
|
steps:
|
|
52
|
-
-
|
|
60
|
+
- name: Decide whether the needed jobs succeeded or failed
|
|
61
|
+
uses: re-actors/alls-green@release/v1
|
|
62
|
+
with:
|
|
63
|
+
jobs: ${{ toJSON(needs) }}
|
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
name: Build the gem
|
|
16
16
|
runs-on: ubuntu-24.04
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v6
|
|
19
19
|
- name: Install Ruby
|
|
20
20
|
uses: ruby/setup-ruby@v1
|
|
21
21
|
with:
|
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
shell: bash
|
|
25
25
|
run: gem build --verbose *.gemspec
|
|
26
26
|
- name: Upload gem to GitHub cache
|
|
27
|
-
uses: actions/upload-artifact@
|
|
27
|
+
uses: actions/upload-artifact@v7
|
|
28
28
|
with:
|
|
29
29
|
name: gem-artifact
|
|
30
30
|
path: '*.gem'
|
|
@@ -39,7 +39,7 @@ jobs:
|
|
|
39
39
|
contents: write # clone repo and create release
|
|
40
40
|
steps:
|
|
41
41
|
- name: Download gem from GitHub cache
|
|
42
|
-
uses: actions/download-artifact@
|
|
42
|
+
uses: actions/download-artifact@v8
|
|
43
43
|
with:
|
|
44
44
|
name: gem-artifact
|
|
45
45
|
- name: Create Release
|
|
@@ -56,7 +56,7 @@ jobs:
|
|
|
56
56
|
packages: write # publish to rubygems.pkg.github.com
|
|
57
57
|
steps:
|
|
58
58
|
- name: Download gem from GitHub cache
|
|
59
|
-
uses: actions/download-artifact@
|
|
59
|
+
uses: actions/download-artifact@v8
|
|
60
60
|
with:
|
|
61
61
|
name: gem-artifact
|
|
62
62
|
- name: Publish gem to GitHub packages
|
|
@@ -73,7 +73,7 @@ jobs:
|
|
|
73
73
|
id-token: write # rubygems.org authentication
|
|
74
74
|
steps:
|
|
75
75
|
- name: Download gem from GitHub cache
|
|
76
|
-
uses: actions/download-artifact@
|
|
76
|
+
uses: actions/download-artifact@v8
|
|
77
77
|
with:
|
|
78
78
|
name: gem-artifact
|
|
79
79
|
- uses: rubygems/configure-rubygems-credentials@v1.0.0
|
|
@@ -92,7 +92,7 @@ jobs:
|
|
|
92
92
|
- release-to-rubygems
|
|
93
93
|
steps:
|
|
94
94
|
- name: Download gem from GitHub cache
|
|
95
|
-
uses: actions/download-artifact@
|
|
95
|
+
uses: actions/download-artifact@v8
|
|
96
96
|
with:
|
|
97
97
|
name: gem-artifact
|
|
98
98
|
- name: Install Ruby
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v1.2.0](https://github.com/voxpupuli/onceover-codequality/tree/v1.2.0) (2026-03-18)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/onceover-codequality/compare/v1.1.0...v1.2.0)
|
|
6
|
+
|
|
7
|
+
**Implemented enhancements:**
|
|
8
|
+
|
|
9
|
+
- add: special handling for GitHub Actions annotations from `puppet-lint` [\#59](https://github.com/voxpupuli/onceover-codequality/pull/59) ([griggi-ws](https://github.com/griggi-ws))
|
|
10
|
+
- openvox-strings: allow 7.x [\#56](https://github.com/voxpupuli/onceover-codequality/pull/56) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
11
|
+
|
|
12
|
+
## [v1.1.0](https://github.com/voxpupuli/onceover-codequality/tree/v1.1.0) (2025-10-29)
|
|
13
|
+
|
|
14
|
+
[Full Changelog](https://github.com/voxpupuli/onceover-codequality/compare/v1.0.0...v1.1.0)
|
|
15
|
+
|
|
16
|
+
**Implemented enhancements:**
|
|
17
|
+
|
|
18
|
+
- puppet-syntax: Require 7.x [\#49](https://github.com/voxpupuli/onceover-codequality/pull/49) ([bastelfreak](https://github.com/bastelfreak))
|
|
19
|
+
- puppet-lint: Require 5.1 [\#48](https://github.com/voxpupuli/onceover-codequality/pull/48) ([bastelfreak](https://github.com/bastelfreak))
|
|
20
|
+
- Switch to openvox-strings [\#43](https://github.com/voxpupuli/onceover-codequality/pull/43) ([smortex](https://github.com/smortex))
|
|
21
|
+
|
|
22
|
+
**Merged pull requests:**
|
|
23
|
+
|
|
24
|
+
- Generate CI matrix dynamically [\#50](https://github.com/voxpupuli/onceover-codequality/pull/50) ([bastelfreak](https://github.com/bastelfreak))
|
|
25
|
+
|
|
3
26
|
## [v1.0.0](https://github.com/voxpupuli/onceover-codequality/tree/v1.0.0) (2025-07-11)
|
|
4
27
|
|
|
5
28
|
[Full Changelog](https://github.com/voxpupuli/onceover-codequality/compare/v0.12.0...v1.0.0)
|
data/Rakefile
CHANGED
|
@@ -11,7 +11,11 @@ class Onceover
|
|
|
11
11
|
def self.end_test(output, ok, show_output = false)
|
|
12
12
|
if !ok || show_output
|
|
13
13
|
output.each_line do |line|
|
|
14
|
-
|
|
14
|
+
if line.start_with?('::') # This is special syntax for GitHub annotations
|
|
15
|
+
puts(line)
|
|
16
|
+
else
|
|
17
|
+
logger.info("\t#{line.chomp}")
|
|
18
|
+
end
|
|
15
19
|
end
|
|
16
20
|
end
|
|
17
21
|
|
|
@@ -21,12 +21,11 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
|
|
22
22
|
spec.required_ruby_version = Gem::Requirement.new('>= 3.2')
|
|
23
23
|
|
|
24
|
-
spec.add_development_dependency "bundler", "~> 2.4"
|
|
25
24
|
spec.add_development_dependency "rake", "~> 13.3"
|
|
26
25
|
spec.add_development_dependency "rspec", "~> 3.13"
|
|
27
26
|
|
|
28
27
|
spec.add_runtime_dependency 'onceover', '~> 5.0'
|
|
29
|
-
spec.add_runtime_dependency '
|
|
30
|
-
spec.add_runtime_dependency 'puppet-
|
|
31
|
-
spec.add_runtime_dependency 'puppet-syntax', '~>
|
|
28
|
+
spec.add_runtime_dependency 'openvox-strings', '>= 5.0', '< 8.0'
|
|
29
|
+
spec.add_runtime_dependency 'puppet-lint', '~> 5.1'
|
|
30
|
+
spec.add_runtime_dependency 'puppet-syntax', '~> 7.0'
|
|
32
31
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onceover-codequality
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dylan Ratcliffe
|
|
@@ -10,20 +10,6 @@ bindir: exe
|
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: bundler
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '2.4'
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '2.4'
|
|
27
13
|
- !ruby/object:Gem::Dependency
|
|
28
14
|
name: rake
|
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -67,47 +53,53 @@ dependencies:
|
|
|
67
53
|
- !ruby/object:Gem::Version
|
|
68
54
|
version: '5.0'
|
|
69
55
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
56
|
+
name: openvox-strings
|
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
|
72
58
|
requirements:
|
|
73
|
-
- - "
|
|
59
|
+
- - ">="
|
|
74
60
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
61
|
+
version: '5.0'
|
|
62
|
+
- - "<"
|
|
63
|
+
- !ruby/object:Gem::Version
|
|
64
|
+
version: '8.0'
|
|
76
65
|
type: :runtime
|
|
77
66
|
prerelease: false
|
|
78
67
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
68
|
requirements:
|
|
80
|
-
- - "
|
|
69
|
+
- - ">="
|
|
81
70
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
71
|
+
version: '5.0'
|
|
72
|
+
- - "<"
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '8.0'
|
|
83
75
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: puppet-
|
|
76
|
+
name: puppet-lint
|
|
85
77
|
requirement: !ruby/object:Gem::Requirement
|
|
86
78
|
requirements:
|
|
87
79
|
- - "~>"
|
|
88
80
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '5.
|
|
81
|
+
version: '5.1'
|
|
90
82
|
type: :runtime
|
|
91
83
|
prerelease: false
|
|
92
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
85
|
requirements:
|
|
94
86
|
- - "~>"
|
|
95
87
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '5.
|
|
88
|
+
version: '5.1'
|
|
97
89
|
- !ruby/object:Gem::Dependency
|
|
98
90
|
name: puppet-syntax
|
|
99
91
|
requirement: !ruby/object:Gem::Requirement
|
|
100
92
|
requirements:
|
|
101
93
|
- - "~>"
|
|
102
94
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '
|
|
95
|
+
version: '7.0'
|
|
104
96
|
type: :runtime
|
|
105
97
|
prerelease: false
|
|
106
98
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
99
|
requirements:
|
|
108
100
|
- - "~>"
|
|
109
101
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '
|
|
102
|
+
version: '7.0'
|
|
111
103
|
email:
|
|
112
104
|
- voxpupuli@groups.io
|
|
113
105
|
executables: []
|
|
@@ -161,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
153
|
- !ruby/object:Gem::Version
|
|
162
154
|
version: '0'
|
|
163
155
|
requirements: []
|
|
164
|
-
rubygems_version:
|
|
156
|
+
rubygems_version: 4.0.6
|
|
165
157
|
specification_version: 4
|
|
166
158
|
summary: Lint and syntax validation for onceover
|
|
167
159
|
test_files: []
|