-
Notifications
You must be signed in to change notification settings - Fork 13
/
.rubocop.yml
33 lines (33 loc) · 929 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
28
29
30
31
32
33
# Default settings here:
# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
# Find enabled settings here:
# https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
# We also prefer `or` and `and` for control flow:
# http://devblog.avdi.org/2014/08/26/how-to-use-rubys-english-andor-operators-without-going-nuts/
AllCops:
Exclude:
- bin/**
- config/**/*
- script/**
# Follow the Jim Weirich school of thought on usage of do/end vs. {...}:
# http://devblog.avdi.org/2011/07/26/the-procedurefunction-block-convention-in-ruby/
Blocks:
Enabled: false
CollectionMethods:
PreferredMethods:
map: "collect"
find: "detect"
find_all: "select"
reduce: "inject"
Documentation:
Enabled: false
EachWithObject:
Enabled: false
Lambda:
Enabled: false
RegexpLiteral:
MaxSlashes: 0
StringLiterals:
EnforcedStyle: double_quotes
TrailingBlankLines:
EnforcedStyle: final_newline