-
Notifications
You must be signed in to change notification settings - Fork 24
/
.rubocop.yml
37 lines (30 loc) · 882 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
34
35
36
37
---
inherit_from: .rubocop_todo.yml
AllCops:
Exclude:
# Ignore HTML related things
- '**/*.erb'
# Ignore vendored gems
- 'vendor/**/*'
# Ignore code from test fixtures
- 'spec/fixtures/**/*'
TargetRubyVersion: 2.0
# Follow the Puppet Style Guide for trailing commas
# (except in arguments lists, which is incompatible with Ruby 1.8)
#Style/TrailingCommaInArguments:
# EnforcedStyleForMultiline: comma
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
# Always prefer Puppet-style regex delimiters
Style/RegexpLiteral:
AllowInnerSlashes: true
# Use the line lenght specified in the Puppet Sytle Guide
Metrics/LineLength:
Max: 140
Bundler/OrderedGems:
Enabled: false
Style/TernaryParentheses:
Enabled: false
# aparently (megaraid_adapter == 0) is not equiv to megaraid_adapters.zero?
Style/NumericPredicate:
Enabled: false