Projet

Général

Profil

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

root / .rubocop.yml @ fd0eaeca

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

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