Projet

Général

Profil

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

root / .rubocop.yml @ 321ae8ab

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