Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / .rubocop.yml @ e89da898

Historique | Voir | Annoter | Télécharger (3,56 ko)

1 321ae8ab tr
---
2
require: rubocop-rspec
3
AllCops:
4
  DisplayCopNames: true
5
  TargetRubyVersion: '2.1'
6
  Include:
7
  - "./**/*.rb"
8
  Exclude:
9
  - bin/*
10
  - ".vendor/**/*"
11
  - "**/Gemfile"
12
  - "**/Rakefile"
13
  - pkg/**/*
14
  - spec/fixtures/**/*
15
  - vendor/**/*
16
  - "**/Puppetfile"
17
  - "**/Vagrantfile"
18
  - "**/Guardfile"
19
Metrics/LineLength:
20
  Description: People have wide screens, use them.
21
  Max: 200
22
RSpec/BeforeAfterAll:
23
  Description: Beware of using after(:all) as it may cause state to leak between tests.
24
    A necessary evil in acceptance testing.
25
  Exclude:
26
  - spec/acceptance/**/*.rb
27 5d3f76a0 tr
Layout/MultilineBlockLayout:
28
  Exclude:
29
  - spec/classes/*_spec.rb
30
Style/HashSyntax:
31
  Exclude:
32
  - spec/classes/*_spec.rb
33
Layout/BlockEndNewline:
34
  Exclude:
35
  - spec/classes/*_spec.rb
36 321ae8ab tr
RSpec/HookArgument:
37
  Description: Prefer explicit :each argument, matching existing module's style
38
  EnforcedStyle: each
39
Style/BlockDelimiters:
40
  Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
41
    be consistent then.
42
  EnforcedStyle: braces_for_chaining
43
Style/ClassAndModuleChildren:
44
  Description: Compact style reduces the required amount of indentation.
45
  EnforcedStyle: compact
46
Style/EmptyElse:
47
  Description: Enforce against empty else clauses, but allow `nil` for clarity.
48
  EnforcedStyle: empty
49
Style/FormatString:
50
  Description: Following the main puppet project's style, prefer the % format format.
51
  EnforcedStyle: percent
52
Style/FormatStringToken:
53
  Description: Following the main puppet project's style, prefer the simpler template
54
    tokens over annotated ones.
55
  EnforcedStyle: template
56
Style/Lambda:
57
  Description: Prefer the keyword for easier discoverability.
58
  EnforcedStyle: literal
59
Style/RegexpLiteral:
60
  Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
61
  EnforcedStyle: percent_r
62 e89da898 tr
  Exclude:
63
  - spec/classes/*_spec.rb
64 321ae8ab tr
Style/TernaryParentheses:
65
  Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
66
    on complex expressions for better readability, but seriously consider breaking
67
    it up.
68
  EnforcedStyle: require_parentheses_when_complex
69
Style/TrailingCommaInArguments:
70
  Description: Prefer always trailing comma on multiline argument lists. This makes
71
    diffs, and re-ordering nicer.
72
  EnforcedStyleForMultiline: comma
73
Style/TrailingCommaInLiteral:
74
  Description: Prefer always trailing comma on multiline literals. This makes diffs,
75
    and re-ordering nicer.
76
  EnforcedStyleForMultiline: comma
77
Style/SymbolArray:
78
  Description: Using percent style obscures symbolic intent of array's contents.
79
  EnforcedStyle: brackets
80
RSpec/MessageSpies:
81
  EnforcedStyle: receive
82
Style/Documentation:
83
  Exclude:
84
  - lib/puppet/parser/functions/**/*
85
  - spec/**/*
86
Style/WordArray:
87
  EnforcedStyle: brackets
88
Style/CollectionMethods:
89
  Enabled: true
90
Style/MethodCalledOnDoEndBlock:
91
  Enabled: true
92
Style/StringMethods:
93
  Enabled: true
94
Layout/EndOfLine:
95
  Enabled: false
96
Layout/IndentHeredoc:
97
  Enabled: false
98
Metrics/AbcSize:
99
  Enabled: false
100
Metrics/BlockLength:
101
  Enabled: false
102
Metrics/ClassLength:
103
  Enabled: false
104
Metrics/CyclomaticComplexity:
105
  Enabled: false
106
Metrics/MethodLength:
107
  Enabled: false
108
Metrics/ModuleLength:
109
  Enabled: false
110
Metrics/ParameterLists:
111
  Enabled: false
112
Metrics/PerceivedComplexity:
113
  Enabled: false
114
RSpec/DescribeClass:
115
  Enabled: false
116
RSpec/ExampleLength:
117
  Enabled: false
118
RSpec/MessageExpectation:
119
  Enabled: false
120
RSpec/MultipleExpectations:
121
  Enabled: false
122
RSpec/NestedGroups:
123
  Enabled: false
124
Style/AsciiComments:
125
  Enabled: false
126
Style/IfUnlessModifier:
127
  Enabled: false
128
Style/SymbolProc:
129
  Enabled: false