X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f4d9298947b4e2f3740236d9fe51aec7e63ce31e..7896792df24c1042e7ac703629cbdec1d1edf4bf:/.rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml index 9d38fed38..d3e607a06 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,47 @@ -Style/SingleSpaceBeforeFirstArg: - Exclude: - - '**/metadata.rb' +inherit_from: .rubocop_todo.yml + +AllCops: + TargetRubyVersion: 3.1 + +Chef/Modernize/IncludingAptDefaultRecipe: + Enabled: false + +Chef/Modernize/CronDFileOrTemplate: + Enabled: false + +Layout/ExtraSpacing: + AllowForAlignment: true + +Layout/HeredocIndentation: + Enabled: true + +Naming/MethodParameterName: + Enabled: false + +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