Skip to content

Commit

Permalink
(maint) - Regenerate rubocop todo
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Nov 21, 2023
1 parent 356ef34 commit 25ed6d7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
46 changes: 26 additions & 20 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 2023-09-12 15:54:37 UTC using RuboCop version 1.48.1.
# on 2023-11-21 09:59:40 UTC using RuboCop version 1.48.1.
# 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 All @@ -14,24 +14,30 @@ Gemspec/RequireMFA:
Exclude:
- 'puppet-lint.gemspec'

# Offense count: 1
# Configuration parameters: DebuggerMethods.
Lint/Debugger:
Exclude:
- 'spec/spec_helper.rb'

# Offense count: 4
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
Lint/DuplicateBranch:
Exclude:
- 'lib/puppet-lint/lexer/string_slurper.rb'
- 'lib/puppet-lint/lexer/token.rb'
- 'lib/puppetlabs/puppetlabs-lint/lexer/string_slurper.rb'
- 'lib/puppetlabs/puppetlabs-lint/lexer/token.rb'

# Offense count: 9
# Configuration parameters: MaximumRangeSize.
Lint/MissingCopEnableDirective:
Exclude:
- 'lib/puppet-lint.rb'
- 'lib/puppet-lint/lexer.rb'
- 'lib/puppet-lint/lexer/string_slurper.rb'
- 'lib/puppet-lint/lexer/token.rb'
- 'lib/puppet-lint/report/codeclimate.rb'
- 'lib/puppet-lint/report/github.rb'
- 'lib/puppet-lint/tasks/puppet-lint.rb'
- 'lib/puppetlabs/puppetlabs-lint.rb'
- 'lib/puppetlabs/puppetlabs-lint/lexer.rb'
- 'lib/puppetlabs/puppetlabs-lint/lexer/string_slurper.rb'
- 'lib/puppetlabs/puppetlabs-lint/lexer/token.rb'
- 'lib/puppetlabs/puppetlabs-lint/report/codeclimate.rb'
- 'lib/puppetlabs/puppetlabs-lint/report/github.rb'
- 'lib/puppetlabs/puppetlabs-lint/tasks/puppet-lint.rb'
- 'spec/unit/puppet-lint/puppet-lint_spec.rb'

# Offense count: 58
Expand Down Expand Up @@ -81,18 +87,18 @@ Naming/HeredocDelimiterNaming:
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
Exclude:
- 'lib/puppet-lint/monkeypatches.rb'
- 'lib/puppetlabs/puppetlabs-lint/monkeypatches.rb'

# Offense count: 7
# Configuration parameters: MinSize.
Performance/CollectionLiteralInLoop:
Exclude:
- 'lib/puppet-lint/bin.rb'
- 'lib/puppet-lint/data.rb'
- 'lib/puppet-lint/plugins/check_resources/ensure_first_param.rb'
- 'lib/puppet-lint/plugins/check_whitespace/trailing_whitespace.rb'
- 'lib/puppetlabs/puppetlabs-lint/bin.rb'
- 'lib/puppetlabs/puppetlabs-lint/data.rb'
- 'lib/puppetlabs/puppetlabs-lint/plugins/check_resources/ensure_first_param.rb'
- 'lib/puppetlabs/puppetlabs-lint/plugins/check_whitespace/trailing_whitespace.rb'

# Offense count: 408
# Offense count: 409
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Expand All @@ -108,7 +114,7 @@ RSpec/DescribeClass:
RSpec/ExampleLength:
Max: 148

# Offense count: 138
# Offense count: 119
RSpec/MultipleExpectations:
Max: 137

Expand Down Expand Up @@ -156,7 +162,7 @@ Style/FrozenStringLiteralComment:
# Configuration parameters: Mode.
Style/StringConcatenation:
Exclude:
- 'lib/puppet-lint/bin.rb'
- 'lib/puppet-lint/plugins.rb'
- 'lib/puppet-lint/plugins/top_scope_facts/top_scope_facts.rb'
- 'lib/puppetlabs/puppetlabs-lint/bin.rb'
- 'lib/puppetlabs/puppetlabs-lint/plugins.rb'
- 'lib/puppetlabs/puppetlabs-lint/plugins/top_scope_facts/top_scope_facts.rb'
- 'spec/unit/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb'
2 changes: 1 addition & 1 deletion puppet-lint.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
'spec/**/*',
]
spec.executables = Dir['bin/**/*'].map { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.require_paths = ['lib/']

spec.authors = [
'Tim Sharpe',
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def manifest
end

def subject
require 'pry-byebug'
binding.pry
klass = PuppetLint::Checks.new
filepath = respond_to?(:path) ? path : ''
klass.load_data(filepath, code)
Expand Down

0 comments on commit 25ed6d7

Please sign in to comment.