-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rubocop.yml
101 lines (77 loc) · 2.01 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
inherit_gem:
rubocop-govuk:
- config/default.yml
- config/rails.yml
Metrics/BlockLength:
Exclude:
- config/**/*
- spec/**/*
Layout/ArgumentAlignment:
Enabled: false
# We have specific keywords we need to receive but not use in the error handler
# for Redis connections
Lint/UnusedBlockArgument:
Exclude:
- config/environments/*
Lint/MissingSuper:
Enabled: false
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/StringConcatenation:
Enabled: false
Style/HashTransformValues:
Enabled: true
Style/StringLiterals:
Enabled: false
Style/TrailingCommaInArguments:
Enabled: false
Style/TrailingCommaInArrayLiteral:
Enabled: false
Style/TrailingCommaInHashLiteral:
Enabled: false
# Brakeman (which relies on ruby-parser) does not yet support this syntax
# See https://github.com/seattlerb/ruby_parser/issues/326
Style/HashSyntax:
EnforcedShorthandSyntax: never
Rails/DynamicFindBy:
Enabled: false
Rails/FilePath:
EnforcedStyle: arguments
Rails/HttpPositionalArguments:
Exclude:
- spec/controllers/candidates/dashboard_base_controller_spec.rb
# Excluded for cancellation because we use the same model for both school
# and candidate cancellations
Rails/InverseOf:
Exclude:
- app/models/bookings/placement_request/cancellation.rb
Rails/RakeEnvironment:
Exclude:
- lib/tasks/dev_ssl_generator.rake
- lib/tasks/cucumber.rake
Rails/UnknownEnv:
Environments:
- development
- test
- servertest
- staging
- production
# These are considered safe to autofix but are not actually redundant
Rails/RedundantForeignKey:
Exclude:
- app/models/bookings/placement_date.rb
- app/models/bookings/placement_request.rb
- app/models/bookings/school.rb
- app/models/event.rb
- app/models/schools/school_profile.rb
# These break the build right now so we want to work thorugh them slowly
Rails/SaveBang:
Enabled: false
Style/DateTime:
Enabled: false
Rails/TimeZone:
Enabled: false
Rails/Date:
Enabled: false