Skip to content

Commit

Permalink
Merge pull request #166 from bastelfreak/clean
Browse files Browse the repository at this point in the history
Drop Puppet 5.4 check
  • Loading branch information
bastelfreak authored Mar 8, 2024
2 parents 527c28b + 258ba5f commit 2c1b8fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-02-07 19:46:27 UTC using RuboCop version 1.60.2.
# on 2024-03-08 12:59:05 UTC using RuboCop version 1.61.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand Down Expand Up @@ -31,6 +31,7 @@ Lint/SuppressedException:

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
Lint/UselessAssignment:
Exclude:
- 'lib/puppet-syntax/templates.rb'
Expand Down Expand Up @@ -73,7 +74,7 @@ RSpec/DescribeClass:

# Offense count: 19
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SkipBlocks, EnforcedStyle.
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
Exclude:
Expand Down Expand Up @@ -139,13 +140,12 @@ Rake/Desc:
Exclude:
- 'Rakefile'

# Offense count: 2
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, conditionals
Style/AndOr:
Exclude:
- 'lib/puppet-syntax/manifests.rb'
- 'lib/puppet-syntax/templates.rb'

# Offense count: 1
Expand Down Expand Up @@ -244,7 +244,7 @@ Style/SymbolProc:
- 'lib/puppet-syntax/manifests.rb'
- 'lib/puppet-syntax/templates.rb'

# Offense count: 3
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet-syntax/manifests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def check(filelist)
private

def validate_manifest(file)
Puppet[:tasks] = true if Puppet::Util::Package.versioncmp(Puppet.version, '5.4.0') >= 0 and file.match(%r{.*plans/.*\.pp$})
Puppet[:tasks] = true if %r{.*plans/.*\.pp$}.match?(file)
Puppet::Face[:parser, :current].validate(file)
end
end
Expand Down

0 comments on commit 2c1b8fa

Please sign in to comment.