]> git.openstreetmap.org Git - rails.git/blob - .rubocop.yml
Merge branch 'master' into moderation
[rails.git] / .rubocop.yml
1 inherit_from: .rubocop_todo.yml
2
3 AllCops:
4   Include:
5     - '**/*.gemspec'
6     - '**/*.podspec'
7     - '**/*.jbuilder'
8     - '**/*.rake'
9     - '**/*.opal'
10     - '**/config.ru'
11     - '**/Gemfile'
12     - '**/Rakefile'
13     - '**/Capfile'
14     - '**/Guardfile'
15     - '**/Podfile'
16     - '**/Thorfile'
17     - '**/Vagrantfile'
18     - '**/Berksfile'
19     - '**/Cheffile'
20     - '**/Vagabondfile'
21     - '**/Fastfile'
22     - '**/*.builder'
23
24 Rails:
25   Enabled: true
26
27 Layout/ExtraSpacing:
28   AllowForAlignment: true
29
30 Lint/PercentStringArray:
31   Exclude:
32     - 'config/initializers/secure_headers.rb'
33     - 'app/controllers/site_controller.rb'
34
35 Naming/FileName:
36   Exclude:
37     - 'script/deliver-message'
38     - 'script/locale/reload-languages'
39     - 'script/update-spam-blocks'
40
41 Naming/UncommunicativeMethodParamName:
42   Enabled: false
43
44 Rails/ApplicationRecord:
45   Enabled: false
46
47 Rails/CreateTableWithTimestamps:
48   Enabled: false
49
50 Rails/HasManyOrHasOneDependent:
51   Enabled: false
52
53 Rails/HttpPositionalArguments:
54   Enabled: false
55
56 Rails/InverseOf:
57   Enabled: false
58
59 Rails/SkipsModelValidations:
60   Exclude:
61     - 'db/migrate/*.rb'
62     - 'app/controllers/user_controller.rb'
63
64 Style/BracesAroundHashParameters:
65   EnforcedStyle: context_dependent
66
67 Style/FormatStringToken:
68   EnforcedStyle: template
69
70 Style/IfInsideElse:
71   Enabled: false
72
73 Style/GlobalVars:
74   Exclude:
75     - 'lib/quad_tile/extconf.rb'
76
77 Style/GuardClause:
78   Enabled: false
79
80 Style/HashSyntax:
81   EnforcedStyle: hash_rockets
82   Exclude:
83     - 'lib/tasks/testing.rake'
84     - 'config/initializers/wrap_parameters.rb'
85
86 Style/StringLiterals:
87   EnforcedStyle: double_quotes
88
89 Style/SymbolArray:
90   EnforcedStyle: brackets