Projet

Général

Profil

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

root / .rubocop.yml @ 8f5d09ec

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

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