/
.rubocop.yml
34 lines (28 loc) · 1.11 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
AllCops:
TargetRubyVersion: 2.3
Metrics/BlockLength:
Exclude:
- spec/**/*.rb
Metrics/LineLength:
Max: 120 # Default: 80
Metrics/MethodLength:
Max: 20 # Default: 10
Naming/AccessorMethodName: # TODO: Enable and fix API at some point.
Enabled: false
Style/Documentation:
# This cop checks for missing top-level documentation of classes and modules.
# Classes with no body and namespace modules are exempt from the check.
# Namespace modules are modules that have nothing in their bodies except
# classes or other modules.
Enabled: false
Style/FrozenStringLiteralComment:
# `when_needed` will add the frozen string literal comment to files
# only when the `TargetRubyVersion` is set to 2.3+.
# `always` will always add the frozen string literal comment to a file
# regardless of the Ruby version or if `freeze` or `<<` are called on a
# string literal. If you run code against multiple versions of Ruby, it is
# possible that this will create errors in Ruby 2.3.0+.
#
# See: https://wyeworks.com/blog/2015/12/1/immutable-strings-in-ruby-2-dot-3
EnforcedStyle: when_needed
Enabled: false