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