Skip to content

Commit

Permalink
Merge pull request #508 from puppetlabs/pdksync_CONT-677-tag_rubocop_…
Browse files Browse the repository at this point in the history
…ruby2.6

pdksync - (CONT-677) - set rubocop target to 2.6
  • Loading branch information
LukasAud authored Apr 25, 2023
2 parents 7dbb989 + 4b8ff7c commit 8300062
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AllCops:
DisplayCopNames: true
ExtraDetails: true
DisplayStyleGuide: true
TargetRubyVersion: '2.7'
TargetRubyVersion: '2.6'
Include:
- "**/*.rb"
Exclude:
Expand Down
15 changes: 11 additions & 4 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-04-25 08:02:06 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
# versions of RuboCop, may require this file to be generated again.

# Offense count: 30
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/BooleanSymbol:
Expand All @@ -15,7 +23,7 @@ Metrics/AbcSize:
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 128
Max: 122

# Offense count: 3
# Configuration parameters: AllowedMethods, AllowedPatterns.
Expand All @@ -25,7 +33,7 @@ Metrics/CyclomaticComplexity:
# Offense count: 13
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 33
Max: 31

# Offense count: 2
# Configuration parameters: AllowedMethods, AllowedPatterns.
Expand Down Expand Up @@ -76,12 +84,11 @@ RSpec/ExampleLength:
RSpec/MultipleExpectations:
Max: 4

# Offense count: 7
# Offense count: 6
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Exclude:
- 'spec/acceptance/ini_subsetting_spec.rb'
- 'spec/classes/create_ini_settings_test_spec.rb'
- 'spec/classes/create_multiple_ini_settings_spec.rb'
- 'spec/classes/inherit_test1_spec.rb'
Expand Down

0 comments on commit 8300062

Please sign in to comment.