]> git.openstreetmap.org Git - rails.git/blob - .rubocop.yml
Replace conditional comments with browser detection
[rails.git] / .rubocop.yml
1 inherit_from: .rubocop_todo.yml
2
3 AllCops:
4   TargetRubyVersion: 2.3
5
6 Rails:
7   Enabled: true
8
9 Layout/ExtraSpacing:
10   AllowForAlignment: true
11
12 Lint/PercentStringArray:
13   Exclude:
14     - 'config/initializers/secure_headers.rb'
15     - 'app/controllers/application_controller.rb'
16     - 'app/controllers/site_controller.rb'
17
18 Naming/FileName:
19   Exclude:
20     - 'script/deliver-message'
21     - 'script/locale/reload-languages'
22     - 'script/update-spam-blocks'
23
24 Naming/UncommunicativeMethodParamName:
25   Enabled: false
26
27 Rails/ApplicationRecord:
28   Enabled: false
29
30 Rails/CreateTableWithTimestamps:
31   Enabled: false
32
33 Rails/FindEach:
34   Enabled: false
35
36 Rails/HasManyOrHasOneDependent:
37   Enabled: false
38
39 Rails/HttpPositionalArguments:
40   Enabled: false
41
42 Rails/InverseOf:
43   Enabled: false
44
45 Rails/SkipsModelValidations:
46   Exclude:
47     - 'db/migrate/*.rb'
48     - 'app/controllers/users_controller.rb'
49
50 Style/BracesAroundHashParameters:
51   EnforcedStyle: context_dependent
52
53 Style/FormatStringToken:
54   EnforcedStyle: template
55
56 Style/IfInsideElse:
57   Enabled: false
58
59 Style/GuardClause:
60   Enabled: false
61
62 Style/HashSyntax:
63   EnforcedStyle: hash_rockets
64   Exclude:
65     - 'lib/tasks/testing.rake'
66     - 'config/initializers/wrap_parameters.rb'
67
68 Style/MixinUsage:
69   Exclude:
70     - 'bin/setup'
71     - 'bin/update'
72
73 Style/StringLiterals:
74   EnforcedStyle: double_quotes
75
76 Style/SymbolArray:
77   EnforcedStyle: brackets