X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/90a349e0bc558441e65156eabb585c578d93fbfd..4dc38e3fedffd4b79c22a6962183fd5fd88a088d:/.rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml index 07985407d..80bd36dad 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,34 +1,44 @@ inherit_from: .rubocop_todo.yml AllCops: - TargetRubyVersion: 2.3 + TargetRubyVersion: 2.7 -Layout/AlignParameters: - Exclude: - - '**/metadata.rb' +ChefModernize/IncludingAptDefaultRecipe: + Enabled: false Layout/ExtraSpacing: AllowForAlignment: true -Layout/IndentHeredoc: - EnforcedStyle: squiggly +Layout/HeredocIndentation: + Enabled: true -Style/FileName: - Exclude: - - 'cookbooks/trac/files/default/trac-authenticate' - - 'cookbooks/planet/files/default/replication-bin/replicate-changesets' - - 'cookbooks/*/templates/*/*.erb' - - 'hooks/*' - - 'roles/*.rb' +Naming/MethodParameterName: + Enabled: false -Style/FrozenStringLiteralComment: - EnforcedStyle: never +Style/CommandLiteral: + EnforcedStyle: percent_x Style/HashSyntax: EnforcedStyle: hash_rockets +Style/NumericPredicate: + EnforcedStyle: predicate + +Style/PercentLiteralDelimiters: + PreferredDelimiters: + '%i': '[]' + '%I': '[]' + '%w': '[]' + '%W': '[]' + Style/StringLiterals: EnforcedStyle: double_quotes Style/SymbolArray: EnforcedStyle: brackets + +Style/TrailingCommaInArrayLiteral: + Enabled: false + +Style/TrailingCommaInHashLiteral: + Enabled: false