-
Notifications
You must be signed in to change notification settings - Fork 64
/
.rubocop.yml
40 lines (34 loc) · 1.28 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
# ------------------------------------------------------------------------------
# Author: René Schwaiger (sanssecurs@f-m.fm)
# Date: 2015-01-07
# Version: 1
#
# Configuration file for [RuboCop](https://github.com/bbatsov/rubocop)
# ------------------------------------------------------------------------------
# Enable most recent rules
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
# -- Ruby 1.8 ------------------------------------------------------------------
# We need the following rules to keep compatibility with ruby versions pre 1.9
# shipped with OS X prior to OS X 10.10. The source of the following code is
# http://www.stok.ca/blog/2014/08/24/cleaning.
# Ruby 1.8.7 needs the . on a chain of method calls at the end of a line.
Layout/DotPosition:
EnforcedStyle: trailing
# Ruby 1.8.7 doesn't have the -> lambda
Style/Lambda:
Enabled: false
# Ruby 1.8.7 doesn't have 1.9 style hash syntax
Style/HashSyntax:
EnforcedStyle: hash_rockets
# Ruby 1.8.7 does not support the `positive?` method
Style/NumericPredicate:
Enabled: false
# -- Common Rules --------------------------------------------------------------
# Allow special characters such as `é` in comments
Style/AsciiComments:
Enabled: false