X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/16f5a5ac0c674b258996fcbde1c3fda2e651906a..8441bcf17361a0803ae0de0bcac0995a04f14bdd:/.rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml index f12f24a9f..a31adf03b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,26 @@ inherit_from: .rubocop_todo.yml +AllCops: + Include: + - '**/*.gemspec' + - '**/*.podspec' + - '**/*.jbuilder' + - '**/*.rake' + - '**/*.opal' + - '**/config.ru' + - '**/Gemfile' + - '**/Rakefile' + - '**/Capfile' + - '**/Guardfile' + - '**/Podfile' + - '**/Thorfile' + - '**/Vagrantfile' + - '**/Berksfile' + - '**/Cheffile' + - '**/Vagabondfile' + - '**/Fastfile' + - '**/*.builder' + Rails: Enabled: true @@ -33,3 +54,16 @@ Style/HashSyntax: Style/StringLiterals: EnforcedStyle: double_quotes + +Rails/HttpPositionalArguments: + Enabled: false + +Rails/SkipsModelValidations: + Exclude: + - 'db/migrate/*.rb' + - 'app/controllers/user_controller.rb' + +Lint/PercentStringArray: + Exclude: + - 'config/initializers/secure_headers.rb' + - 'app/controllers/site_controller.rb'