forked from instructure/outrigger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
27 lines (23 loc) · 995 Bytes
/
.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
AllCops:
TargetRubyVersion: 2.3
Metrics/LineLength:
Max: 120 # Default: 80
Metrics/MethodLength:
Max: 15 # Default: 10
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