scelint 0.3.0 → 0.4.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/pr_tests.yml +2 -2
- data/.github/workflows/tag_deploy_rubygem.yml +2 -2
- data/.rubocop.yml +47 -3
- data/CHANGELOG.md +4 -0
- data/Gemfile +9 -9
- data/lib/scelint/cli.rb +3 -3
- data/lib/scelint/version.rb +1 -1
- data/lib/scelint.rb +1 -1
- data/renovate.json +6 -0
- data/scelint.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a3144b8bd1796b88e9e950dbdf68ddefc0fccaca2ba823190bcc6fc22ccac34
|
4
|
+
data.tar.gz: 04f59fe1645302f3af681d9f16bffb25fa70bd39430bf1e672790c22c2293ea1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c4bb2b4821805154d73776022f245ea1daf5dfbdb12ab0bdd73c88f82f70236da690c5bce75e9e31208f9b7f5315f1f2f6c6a44daba90f6320de04154e5d0f6
|
7
|
+
data.tar.gz: b7eeb5bb9e7258641be0a5a14f0c45c1b287e8c95255425b11306ff94b4ec6a7582ba5a6da83867ff75cd627780280a39959e022621d33c16428915fefcd3878
|
@@ -92,7 +92,7 @@ jobs:
|
|
92
92
|
echo "release_command=$GEM_RELEASE_COMMAND" | tee -a "$GITHUB_OUTPUT"
|
93
93
|
- uses: ruby/setup-ruby@v1
|
94
94
|
with:
|
95
|
-
ruby-version: 2
|
95
|
+
ruby-version: 3.2
|
96
96
|
bundler-cache: true
|
97
97
|
- name: Test build the package
|
98
98
|
run: "${{ steps.commands.outputs.build_command }}"
|
@@ -187,7 +187,7 @@ jobs:
|
|
187
187
|
clean: true
|
188
188
|
- uses: ruby/setup-ruby@v1
|
189
189
|
with:
|
190
|
-
ruby-version: 2
|
190
|
+
ruby-version: 3.2
|
191
191
|
bundler-cache: true
|
192
192
|
- name: Build RubyGem
|
193
193
|
run: |
|
data/.rubocop.yml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
---
|
2
|
-
|
2
|
+
plugins:
|
3
3
|
- rubocop-performance
|
4
4
|
- rubocop-rspec
|
5
5
|
- rubocop-rake
|
6
6
|
AllCops:
|
7
7
|
DisplayCopNames: true
|
8
|
-
TargetRubyVersion:
|
8
|
+
TargetRubyVersion: 3.2
|
9
9
|
Include:
|
10
10
|
- "**/*.rb"
|
11
11
|
- Gemfile
|
@@ -744,5 +744,49 @@ Performance/MapMethodChain:
|
|
744
744
|
Enabled: true
|
745
745
|
Performance/StringBytesize:
|
746
746
|
Enabled: true
|
747
|
-
|
747
|
+
Gemspec/AttributeAssignment:
|
748
|
+
Enabled: true
|
749
|
+
Layout/EmptyLinesAfterModuleInclusion:
|
750
|
+
Enabled: true
|
751
|
+
Lint/ArrayLiteralInRegexp:
|
752
|
+
Enabled: true
|
753
|
+
Lint/ConstantReassignment:
|
754
|
+
Enabled: true
|
755
|
+
Lint/CopDirectiveSyntax:
|
756
|
+
Enabled: true
|
757
|
+
Lint/RedundantTypeConversion:
|
758
|
+
Enabled: true
|
759
|
+
Lint/SharedMutableDefault:
|
760
|
+
Enabled: true
|
761
|
+
Lint/SuppressedExceptionInNumberConversion:
|
762
|
+
Enabled: true
|
763
|
+
Lint/UselessConstantScoping:
|
764
|
+
Enabled: true
|
765
|
+
Lint/UselessDefaultValueArgument:
|
766
|
+
Enabled: true
|
767
|
+
Lint/UselessOr:
|
768
|
+
Enabled: true
|
769
|
+
Naming/PredicateMethod:
|
770
|
+
Enabled: true
|
771
|
+
Style/CollectionQuerying:
|
772
|
+
Enabled: true
|
773
|
+
Style/ComparableBetween:
|
774
|
+
Enabled: true
|
775
|
+
Style/EmptyStringInsideInterpolation:
|
776
|
+
Enabled: true
|
777
|
+
Style/HashFetchChain:
|
778
|
+
Enabled: true
|
779
|
+
Style/HashSlice:
|
780
|
+
Enabled: true
|
781
|
+
Style/ItAssignment:
|
782
|
+
Enabled: true
|
783
|
+
Style/ItBlockParameter:
|
784
|
+
Enabled: true
|
785
|
+
Style/RedundantArrayFlatten:
|
786
|
+
Enabled: true
|
787
|
+
Style/RedundantFormat:
|
788
|
+
Enabled: true
|
789
|
+
Performance/ZipWithoutBlock:
|
790
|
+
Enabled: true
|
791
|
+
RSpec/IncludeExamples:
|
748
792
|
Enabled: true
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
### 0.4.0 / 2025-08-26
|
2
|
+
* Updates for recent rubocop and plugins
|
3
|
+
* Bump minimum required Ruby version to 3.2.0 (oldest version we're testing with)
|
4
|
+
|
1
5
|
### 0.3.0 / 2025-01-16
|
2
6
|
* Use compliance_engine gem for data ingest
|
3
7
|
* Check that all fact combinations return hiera data
|
data/Gemfile
CHANGED
@@ -3,18 +3,18 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in scelint.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
gem 'rake', '~> 13.
|
6
|
+
gem 'rake', '~> 13.3.0'
|
7
7
|
|
8
8
|
group :tests do
|
9
|
-
gem 'rspec', '~> 3.13'
|
10
|
-
gem 'rubocop', '~> 1.
|
11
|
-
gem 'rubocop-performance', '~> 1.
|
12
|
-
gem 'rubocop-rake', '~> 0.
|
13
|
-
gem 'rubocop-rspec', '~> 3.0'
|
9
|
+
gem 'rspec', '~> 3.13.1'
|
10
|
+
gem 'rubocop', '~> 1.80.0'
|
11
|
+
gem 'rubocop-performance', '~> 1.25.0'
|
12
|
+
gem 'rubocop-rake', '~> 0.7.1'
|
13
|
+
gem 'rubocop-rspec', '~> 3.6.0'
|
14
14
|
end
|
15
15
|
|
16
16
|
group :development do
|
17
|
-
gem 'pry', '~> 0.
|
18
|
-
gem 'pry-byebug', '~> 3.
|
19
|
-
gem 'rdoc', '~> 6.
|
17
|
+
gem 'pry', '~> 0.15.2'
|
18
|
+
gem 'pry-byebug', '~> 3.11.0'
|
19
|
+
gem 'rdoc', '~> 6.14.2'
|
20
20
|
end
|
data/lib/scelint/cli.rb
CHANGED
@@ -36,7 +36,7 @@ class Scelint::CLI < Thor
|
|
36
36
|
end
|
37
37
|
|
38
38
|
message = "Checked #{count} files."
|
39
|
-
if lint.errors.
|
39
|
+
if lint.errors.empty?
|
40
40
|
message += ' No errors.'
|
41
41
|
exit_code = 0
|
42
42
|
else
|
@@ -44,12 +44,12 @@ class Scelint::CLI < Thor
|
|
44
44
|
exit_code = 1
|
45
45
|
end
|
46
46
|
|
47
|
-
|
47
|
+
unless lint.warnings.empty?
|
48
48
|
message += " #{lint.warnings.count} warnings."
|
49
49
|
exit_code = 1 if options[:strict]
|
50
50
|
end
|
51
51
|
|
52
|
-
message += " #{lint.notes.count} notes."
|
52
|
+
message += " #{lint.notes.count} notes." unless lint.notes.empty?
|
53
53
|
|
54
54
|
logger.info message
|
55
55
|
exit exit_code
|
data/lib/scelint/version.rb
CHANGED
data/lib/scelint.rb
CHANGED
@@ -460,7 +460,7 @@ module Scelint
|
|
460
460
|
# @param _check [String] The name of the check (currently unused)
|
461
461
|
# @param _value [Object] The value to be validated (currently unused)
|
462
462
|
# @return [Boolean] Always returns true (currently)
|
463
|
-
def check_value(_file, _check, _value)
|
463
|
+
def check_value(_file, _check, _value) # rubocop:disable Naming/PredicateMethod
|
464
464
|
# value could be anything
|
465
465
|
true
|
466
466
|
end
|
data/renovate.json
ADDED
data/scelint.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
|
10
10
|
spec.summary = 'Linter SIMP Compliance Engine data'
|
11
11
|
spec.homepage = 'https://github.com/simp/rubygem-simp-scelint'
|
12
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 3.2.0')
|
13
13
|
|
14
14
|
spec.metadata['homepage_uri'] = spec.homepage
|
15
15
|
spec.metadata['source_code_uri'] = spec.homepage
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scelint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Pritchard
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deep_merge
|
@@ -74,6 +74,7 @@ files:
|
|
74
74
|
- lib/scelint.rb
|
75
75
|
- lib/scelint/cli.rb
|
76
76
|
- lib/scelint/version.rb
|
77
|
+
- renovate.json
|
77
78
|
- scelint.gemspec
|
78
79
|
homepage: https://github.com/simp/rubygem-simp-scelint
|
79
80
|
licenses:
|
@@ -89,14 +90,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
90
|
requirements:
|
90
91
|
- - ">="
|
91
92
|
- !ruby/object:Gem::Version
|
92
|
-
version: 2.
|
93
|
+
version: 3.2.0
|
93
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
95
|
requirements:
|
95
96
|
- - ">="
|
96
97
|
- !ruby/object:Gem::Version
|
97
98
|
version: '0'
|
98
99
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
100
|
+
rubygems_version: 3.4.19
|
100
101
|
signing_key:
|
101
102
|
specification_version: 4
|
102
103
|
summary: Linter SIMP Compliance Engine data
|