]> git.openstreetmap.org Git - rails.git/blob - .rubocop.yml
Update bundle
[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 Rails/ApplicationRecord:
42   Enabled: false
43
44 Rails/HasManyOrHasOneDependent:
45   Enabled: false
46
47 Rails/HttpPositionalArguments:
48   Enabled: false
49
50 Rails/SkipsModelValidations:
51   Exclude:
52     - 'db/migrate/*.rb'
53     - 'app/controllers/user_controller.rb'
54
55 Style/BracesAroundHashParameters:
56   EnforcedStyle: context_dependent
57
58 Style/FormatStringToken:
59   EnforcedStyle: template
60
61 Style/IfInsideElse:
62   Enabled: false
63
64 Style/GlobalVars:
65   Exclude:
66     - 'lib/quad_tile/extconf.rb'
67
68 Style/GuardClause:
69   Enabled: false
70
71 Style/HashSyntax:
72   EnforcedStyle: hash_rockets
73   Exclude:
74     - 'lib/tasks/testing.rake'
75     - 'config/initializers/wrap_parameters.rb'
76
77 Style/StringLiterals:
78   EnforcedStyle: double_quotes
79
80 Style/SymbolArray:
81   EnforcedStyle: brackets