This repository has been archived by the owner on Feb 1, 2020. It is now read-only.
/
.rubocop.yml
111 lines (95 loc) · 2.71 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-02-11 17:16:01 +0000 using RuboCop version 0.37.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Metrics/LineLength:
Max: 80
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'statistical.gemspec'
- 'bin/distribution'
# 10 lines won't be enough for math oriented code
# 25 decided upon arbitrarily
Metrics/MethodLength:
Max: 25
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'bin/**/*'
# Indentation width must be 2 spaces
Style/IndentationWidth:
Enabled: true
Exclude:
- 'spec/**/*'
- 'test/**/*'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
# SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
Style/HashSyntax:
Enabled: true
UseHashRocketsWithSymbolValues: true
Exclude:
- 'statistical.gemspec'
- 'spec/**/*'
- 'test/**/*'
# Cop supports --auto-correct.
Style/MutableConstant:
Enabled: true
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Exclude:
- 'statistical.gemspec'
Exclude:
- 'statistical.gemspec'
- 'spec/**/*'
- 'test/**/*'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
Style/SpaceInsideBlockBraces:
Enabled: true
EnforcedStyle: no_space
Exclude:
- 'statistical.gemspec'
- 'spec/**/*'
- 'test/**/*'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: true
Exclude:
- 'statistical.gemspec'
- 'bin/*'
- 'spec/**/*'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: final_newline, final_blank_line
Style/TrailingBlankLines:
Enabled: true
EnforcedStyle: final_newline
# Cop supports --auto-correct.
Style/TrailingWhitespace:
Enabled: true
# Cop supports --auto-correct.
Style/UnneededPercentQ:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'statistical.gemspec'
# I'm fine with either
Style/RedundantReturn:
Enabled: false
# Allow non-ascii characters in comments
Style/AsciiComments:
Enabled: false
Style/Alias:
Enabled: false