forked from wearefriday/spectre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubocop.yml
54 lines (44 loc) · 1.14 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
---
AllCops:
# Uncomment this line for rails projects
RunRailsCops: true
# Output settings
DisplayCopNames: true
DisplayStyleGuide: true
# Don't enforce comments classes
Documentation:
Enabled: false
# Debugger statements are ok in in the development_steps file
# This is for the 'save_and_open' step many projects have, which saves the webpage, and opens a browser.
Lint/Debugger:
Exclude:
- features/step_definitions/development_steps.rb
Metrics/AbcSize:
Exclude:
- 'features/**/*'
- 'spec/**/*'
# Disable class length check for tests
Metrics/ClassLength:
Exclude:
- 'features/**/*'
- 'spec/**/*'
# Disable method length check for tests
Metrics/MethodLength:
Exclude:
- 'features/**/*'
- 'spec/**/*'
# 120 character width
Metrics/LineLength:
Max: 120
Exclude:
- 'features/**/*'
- 'spec/**/*'
# Allow method names starting with 'get_'
Style/AccessorMethodName:
Enabled: false
# Allow non-ascii characters in comments – e.g. the 'em' dash: –
Style/AsciiComments:
Enabled: false
# Any quotes are fine for strings – single or double
Style/StringLiterals:
Enabled: false