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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d121727337167a02dc39353a853b84f507f4dc6cf5c45c85bbe56d94086e02e
4
- data.tar.gz: 3f9b21206628774aaed2d47b6a908fe6be641b5a194dcd23adca977b19832bb4
3
+ metadata.gz: 6a3144b8bd1796b88e9e950dbdf68ddefc0fccaca2ba823190bcc6fc22ccac34
4
+ data.tar.gz: 04f59fe1645302f3af681d9f16bffb25fa70bd39430bf1e672790c22c2293ea1
5
5
  SHA512:
6
- metadata.gz: afaf9b7895df1b77779d97c3bec5ad28f03b706bdc8bf1538f76cab370e30ec0a5c324630796fe861d6ef2db413c079d371f4c854d3d9a0baa28a736fd184e7d
7
- data.tar.gz: aeb34f03d6970e7947dfb9b4c501e9ca902d9d92ea2d68ff96bfc78439eec526edeac4fb53ad845e8029821cad699b86bd9525eef817e8ea5ef1da284ea824ec
6
+ metadata.gz: 4c4bb2b4821805154d73776022f245ea1daf5dfbdb12ab0bdd73c88f82f70236da690c5bce75e9e31208f9b7f5315f1f2f6c6a44daba90f6320de04154e5d0f6
7
+ data.tar.gz: b7eeb5bb9e7258641be0a5a14f0c45c1b287e8c95255425b11306ff94b4ec6a7582ba5a6da83867ff75cd627780280a39959e022621d33c16428915fefcd3878
@@ -27,9 +27,9 @@ jobs:
27
27
  strategy:
28
28
  matrix:
29
29
  ruby:
30
- - '2.7' # Puppet 7
31
30
  - '3.2' # Puppet 8
32
- - '3.3' # Latest
31
+ - '3.3'
32
+ - '3.4' # Latest
33
33
 
34
34
  steps:
35
35
  - uses: actions/checkout@v3
@@ -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.7
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.7
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
- require:
2
+ plugins:
3
3
  - rubocop-performance
4
4
  - rubocop-rspec
5
5
  - rubocop-rake
6
6
  AllCops:
7
7
  DisplayCopNames: true
8
- TargetRubyVersion: "2.7"
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
- RSpec/StringAsInstanceDoubleConstant:
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.2'
6
+ gem 'rake', '~> 13.3.0'
7
7
 
8
8
  group :tests do
9
- gem 'rspec', '~> 3.13'
10
- gem 'rubocop', '~> 1.65'
11
- gem 'rubocop-performance', '~> 1.21'
12
- gem 'rubocop-rake', '~> 0.6.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.14.1'
18
- gem 'pry-byebug', '~> 3.10'
19
- gem 'rdoc', '~> 6.4'
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.count == 0
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
- if lint.warnings.count > 0
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." if lint.notes.count > 0
52
+ message += " #{lint.notes.count} notes." unless lint.notes.empty?
53
53
 
54
54
  logger.info message
55
55
  exit exit_code
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Scelint
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
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
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:recommended"
5
+ ]
6
+ }
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.7.0')
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.3.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-01-23 00:00:00.000000000 Z
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.7.0
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.1.6
100
+ rubygems_version: 3.4.19
100
101
  signing_key:
101
102
  specification_version: 4
102
103
  summary: Linter SIMP Compliance Engine data