forked from cucumber/aruba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
84 lines (67 loc) · 1.92 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
inherit_mode:
merge:
- Exclude
require:
- rubocop-packaging
- rubocop-performance
- rubocop-rspec
AllCops:
DisplayCopNames: true
NewCops: enable
TargetRubyVersion: 3.0
Exclude:
- 'bin/cucumber'
- 'bin/rspec'
- 'bin/rake'
# Ignore gemfiles created by Appraisal
Bundler/OrderedGems:
Exclude:
- 'gemfiles/*.gemfile'
# Put development dependencies in the gemspec so rubygems.org knows about them.
# Don't complicate things in fixture apps and gems
Gemspec/DevelopmentDependencies:
EnforcedStyle: gemspec
Exclude:
- 'fixtures/**/*'
# TODO: Enable once the effects on using cukebot are clear and have been taken care of
Gemspec/RequireMFA:
Enabled: false
# Spaces in strings with line continuations go at the beginning of the line.
Layout/LineContinuationLeadingSpace:
EnforcedStyle: leading
# Assume the programmer knows how bracketed block syntax works
Lint/AmbiguousBlockAssociation:
Enabled: false
# Assume the programmer knows precendence rules
Lint/AmbiguousOperatorPrecedence:
Enabled: false
# Spec blocks can be any size
Metrics/BlockLength:
Exclude:
- '**/*.gemspec'
- 'spec/**/*'
# This cop does not work properly with predicates that take arguments.
# TODO: Re-enable once https://github.com/rubocop/rubocop-rspec/issues/466 is resolved.
RSpec/PredicateMatcher:
Enabled: false
# This cop doesn't seem to add much for us.
Style/FetchEnvVar:
Enabled: false
# Use older RuboCop default
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%w': ()
# Do not commit to use of interpolation
Style/StringLiterals:
EnforcedStyle: double_quotes
# SupportedStyles: percent, brackets
Style/SymbolArray:
EnforcedStyle: brackets
# Code is currently broken with frozen string literal comments applied.
# TODO: Enable and fix build
Style/FrozenStringLiteralComment:
Enabled: false
# Be relatively lenient with line length
Layout/LineLength:
Max: 94
inherit_from: .rubocop_todo.yml