-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
.rubocop.yml
91 lines (76 loc) · 1.81 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
# .rubocop.yml
#
# Configuration for rubocop, a static code analyzer for Ruby.
#
# https://github.com/bbatsov/rubocop#configuration
inherit_from: .rubocop_todo.yml
# Layout/AccessModifierIndentation
#
# Indent access modifiers like `protected` and `private`.
Layout/AccessModifierIndentation:
EnforcedStyle: indent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/HashAlignment:
EnforcedHashRocketStyle: table
# Layout/IndentationConsistency
#
# Use Rails-style access modifier indentation.
#
# Example:
# ```
# class Foo
# def bar
# puts 'bar'
# end
#
# private
#
# def baz
# puts 'baz'
# end
# end
# ```
Layout/IndentationConsistency:
EnforcedStyle: indented_internal_methods
Layout/SpaceAroundOperators:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
# Naming/FileName
#
# Long, long ago, this was named with a dash rather than an underscore. Now
# it's unconventional, but let's consider it retro and leave it for now so we
# don't have to rename the gem. TODO: Rename using an underscore.
Naming/FileName:
Exclude:
- 'lib/pandoc-ruby.rb'
Style/AccessorGrouping:
Enabled: false
Style/HashSyntax:
EnforcedStyle: hash_rockets
# Style/RedundantBegin
#
# Permit redundant `begin` block to support Ruby 2.4 and earlier.
#
# See also:
# https://github.com/xwmx/pandoc-ruby/issues/47
# https://github.com/xwmx/pandoc-ruby/issues/41
Style/RedundantBegin:
Enabled: false
# Style/SymbolArray
#
# Avoid `%i` syntax so symbols look like symbols.
Style/SymbolArray:
EnforcedStyle: brackets
# Style/RedundantSelf
#
# Explicit `self` is currently preferred in this project in order to
# better distinguish between accessors and local variables.
Style/RedundantSelf:
Exclude:
- 'lib/pandoc-ruby.rb'