-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
43 lines (36 loc) · 1.13 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
AllCops:
NewCops: enable
# Output extra information for each offense to make it easier to diagnose:
DisplayCopNames: true
DisplayStyleGuide: true
ExtraDetails: true
SuggestExtensions: false
# RuboCop enforces rules depending on the oldest version of Ruby which
# your project supports:
TargetRubyVersion: 3.0
Gemspec/DevelopmentDependencies:
EnforcedStyle: gemspec
# The default max line length is 80 characters
Layout/LineLength:
Max: 120
# The DSL for RSpec and the gemspec file make it very hard to limit block length:
Metrics/BlockLength:
Exclude:
- "spec/spec_helper.rb"
- "spec/**/*_spec.rb"
- "*.gemspec"
Metrics/ModuleLength:
CountAsOne: ['hash']
# When writing minitest tests, it is very hard to limit test class length:
Metrics/ClassLength:
CountAsOne: ['hash']
Exclude:
- "test/**/*_test.rb"
Style/AsciiComments:
Enabled: false
# All Ruby files are required to have a Copyright notice.
# Run `rubocop -a` to automatically add missing copyright notices.
Style/Copyright:
Enabled: true
Notice: 'Copyright (\(c\) )?2019 James Couball'
AutocorrectNotice: "# Copyright (c) 2019 James Couball\n"