armitage-rubocop 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +35 -0
- data/Rakefile +108 -0
- data/armitage-rubocop.gemspec +29 -0
- data/bin/setup +8 -0
- data/lib/general/bundler.yml +9 -0
- data/lib/general/gemspec.yml +9 -0
- data/lib/general/layout.yml +322 -0
- data/lib/general/lint.yml +235 -0
- data/lib/general/metrics.yml +55 -0
- data/lib/general/naming.yml +56 -0
- data/lib/general/performance.yml +88 -0
- data/lib/general/rails.yml +146 -0
- data/lib/general/security.yml +15 -0
- data/lib/general/style.yml +533 -0
- data/lib/rspec/capybara.yml +5 -0
- data/lib/rspec/factory_bot.yml +9 -0
- data/lib/rspec/rails.yml +2 -0
- data/lib/rspec/rspec.yml +194 -0
- data/lib/rubocop.general.yml +19 -0
- data/lib/rubocop.rails.yml +9 -0
- data/lib/rubocop.rspec.yml +18 -0
- metadata +126 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c79f9dd2133384170f52d8e63f6d5c790aa676af7316f2041d701c253538834a
|
4
|
+
data.tar.gz: 28b428ec1ccd0a6cfadf9ec77d373c37576d0119ba63d466223badb614db103b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bf13240014c78d087c4fb12bd73126594f438838133e31fbdc01360a34bdf4aad09f53519438a75ffa2c1bd28f41adf4ee6dc863b33335c56f4f50a69d441849
|
7
|
+
data.tar.gz: c41e32a20625100abaf14c9a4f6e7259eb79ce16e20bc2ebe0c4348d82faaab9051e46b4f0d593e9156cce5b5198ab2b094f1ed28a908e5decf8ce6876f797d6
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at iamdaiver@icloud.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Rustam Ibragimov
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# armitage-rubocop
|
2
|
+
|
3
|
+
### Installation
|
4
|
+
```ruby
|
5
|
+
gem 'armitage-rubocop'
|
6
|
+
```
|
7
|
+
|
8
|
+
```shell
|
9
|
+
$ bundle install
|
10
|
+
# --- or ---
|
11
|
+
$ gem install 'armitage-rubocop'
|
12
|
+
```
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'armitage-rubocop'
|
16
|
+
```
|
17
|
+
|
18
|
+
### Usage
|
19
|
+
|
20
|
+
- edit your `.rubocop.yml` file:
|
21
|
+
|
22
|
+
```yaml
|
23
|
+
# --- vanilla ---
|
24
|
+
inherit_gem:
|
25
|
+
armitage-rubocop:
|
26
|
+
- lib/rubocop.general.yml
|
27
|
+
- lib/rubocop.rspec.yml
|
28
|
+
```
|
29
|
+
|
30
|
+
```yaml
|
31
|
+
# --- rails ---
|
32
|
+
inheit_gem:
|
33
|
+
# rails-specific cops + general + rspec
|
34
|
+
armitage-rubocop: lib/rubocop.rails.yml
|
35
|
+
```
|
data/Rakefile
ADDED
@@ -0,0 +1,108 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
require 'rubocop/rake_task'
|
5
|
+
require 'yaml'
|
6
|
+
require 'rubocop'
|
7
|
+
require 'open3'
|
8
|
+
|
9
|
+
RuboCop::RakeTask.new(:rubocop) do |t|
|
10
|
+
t.options = %w[--config ./lib/rubocop.general.yml]
|
11
|
+
end
|
12
|
+
|
13
|
+
namespace :armitage_rubocop do
|
14
|
+
task :build do
|
15
|
+
# rubocop:disable Layout/AlignHash
|
16
|
+
build_processes = {
|
17
|
+
code_style_check:
|
18
|
+
Open3.popen3('bundle exec rake rubocop'),
|
19
|
+
cops_validation:
|
20
|
+
Open3.popen3('bundle exec rake armitage_rubocop:validation:recognizable_cops'),
|
21
|
+
yaml_validation:
|
22
|
+
Open3.popen3('bundle exec rake armitage_rubocop:validation:valid_yamls')
|
23
|
+
}
|
24
|
+
# rubocop:enable Layout/AlignHash
|
25
|
+
|
26
|
+
# NOTE: results structure { type => exit_code }
|
27
|
+
results = {}.tap do |result_data|
|
28
|
+
build_processes.each_pair do |build_type, build_process|
|
29
|
+
# NOTE: build_process => [stdin, stdout, stderr, whtr]
|
30
|
+
build_result = build_process[3].value.exitstatus
|
31
|
+
result_data[build_type] = build_result
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
result_message = results.each_pair.map do |(result_type, result_status)|
|
36
|
+
type = "- \e[1;33m#{result_type}\e[0m\t=> "
|
37
|
+
desc = result_status.zero? ? "\e[32msuccess\e[0m" : "\e[31mfail\e[0m"
|
38
|
+
|
39
|
+
"#{type} #{desc}"
|
40
|
+
end.join("\n")
|
41
|
+
|
42
|
+
if results.values.all?(&:zero?)
|
43
|
+
puts "[\e[32mARMITAGE_RUBOCOP BUILD\e[0m] => \e[1;33mSuccessful!\e[0m\n#{result_message}"
|
44
|
+
else
|
45
|
+
abort "[\e[31mARMITAGE_RUBOCOP BUILD\e[0m] => FAILED!\n#{result_message}"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
namespace :validation do
|
50
|
+
desc 'Checks that all *.yml files has the valid structure'
|
51
|
+
task :valid_yamls do
|
52
|
+
yamls = Dir[Pathname.new(__FILE__).join('../lib/**/*.yml')]
|
53
|
+
|
54
|
+
# NOTE: try to load without Psych exceptions
|
55
|
+
invalid_yamls = yamls.each_with_object([]) do |file_name, invalid_files|
|
56
|
+
# rubocop:disable Style/RedundantBegin
|
57
|
+
begin
|
58
|
+
YAML.load(File.read(file_name))
|
59
|
+
rescue StandardError
|
60
|
+
invalid_files << "- \e[33m#{file_name}\e[0m"
|
61
|
+
end
|
62
|
+
# rubocop:enable Style/RedundantBegin
|
63
|
+
end
|
64
|
+
|
65
|
+
if invalid_yamls.empty?
|
66
|
+
puts "[\e[32mYAML FILE VALIDATION\e[0m] => \e[1;33mall files has valid strucutre!\e[0m"
|
67
|
+
else
|
68
|
+
invalid_yamls_message = invalid_yamls.join("\n")
|
69
|
+
abort "[\e[31mYAML FILE VALIDATION\e[0m] => some files has invalid structure:\n" \
|
70
|
+
"#{invalid_yamls_message}"
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
desc 'Checks that all defined cops can be used'
|
75
|
+
task :recognizable_cops do
|
76
|
+
yamls = Dir[Pathname.new(__FILE__).join('../lib/**/*.yml')]
|
77
|
+
invalid_cops = Set.new
|
78
|
+
|
79
|
+
# NOTE: strongly rubocop-related realization
|
80
|
+
# - see https://github.com/rubocop-hq/rubocop/blob/master/lib/rubocop/config.rb
|
81
|
+
# - see https://github.com/rubocop-hq/rubocop/blob/master/lib/rubocop/config_loader.rb
|
82
|
+
# - RuboCop::Config#validate
|
83
|
+
# - RuboCop::Config#warn_about_unrecognized_cops
|
84
|
+
# - RuboCop::ConfigLoader.load_file
|
85
|
+
# - RuboCop::ConfigLoader.default_configuration
|
86
|
+
yamls.each do |yaml_file|
|
87
|
+
rubocop_config = RuboCop::ConfigLoader.load_file(yaml_file)
|
88
|
+
|
89
|
+
rubocop_config.keys.each_with_object([]) do |cop, acc|
|
90
|
+
next if RuboCop::ConfigLoader.default_configuration.key?(cop)
|
91
|
+
next if RuboCop::Cop::Cop.registry.contains_cop_matching?([cop])
|
92
|
+
next if cop == 'inherit_mode'
|
93
|
+
invalid_cops << "- \e[33m#{cop}\e[0m"
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
if invalid_cops.empty?
|
98
|
+
puts "[\e[32mCOP RECOGNITION CHECK\e[0m] => \e[1;33mall cops are recognizable!\e[0m"
|
99
|
+
else
|
100
|
+
invalid_cops_message = invalid_cops.to_a.join("\n")
|
101
|
+
abort "[\e[31mCOP RECOGNITION CHECK\e[0m] => some cops can not be recognized:\n" \
|
102
|
+
"#{invalid_cops_message}"
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
task default: :rubocop
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
lib = File.expand_path('lib', __dir__)
|
5
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'armitage-rubocop'
|
9
|
+
spec.version = '0.1.0'
|
10
|
+
spec.license = 'MIT'
|
11
|
+
spec.authors = ['Rustam Ibragimov']
|
12
|
+
spec.email = ['iamdaiver@icloud.com']
|
13
|
+
spec.homepage = 'https://github.com/0exp/armitage'
|
14
|
+
spec.summary = 'A set of rubocop settings'
|
15
|
+
spec.description = 'A set of rubocop settings used in my own projects.' \
|
16
|
+
'Support for: vanilla ruby, rspec, rails.'
|
17
|
+
|
18
|
+
spec.bindir = 'bin'
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
|
24
|
+
spec.add_dependency 'rubocop', '= 0.57.2'
|
25
|
+
spec.add_dependency 'rubocop-rspec', '= 1.27.0'
|
26
|
+
|
27
|
+
spec.add_development_dependency 'bundler'
|
28
|
+
spec.add_development_dependency 'rake'
|
29
|
+
end
|
data/bin/setup
ADDED
@@ -0,0 +1,322 @@
|
|
1
|
+
Layout/AccessModifierIndentation:
|
2
|
+
Enabled: true
|
3
|
+
EnforcedStyle: indent
|
4
|
+
IndentationWidth: ~
|
5
|
+
|
6
|
+
Layout/AlignArray:
|
7
|
+
Enabled: true
|
8
|
+
|
9
|
+
Layout/AlignHash:
|
10
|
+
Enabled: true
|
11
|
+
EnforcedHashRocketStyle: table
|
12
|
+
EnforcedColonStyle: table
|
13
|
+
EnforcedLastArgumentHashStyle: always_inspect
|
14
|
+
|
15
|
+
Layout/AlignParameters:
|
16
|
+
Enabled: true
|
17
|
+
EnforcedStyle: with_first_parameter
|
18
|
+
IndentationWidth: ~
|
19
|
+
|
20
|
+
Layout/BlockAlignment:
|
21
|
+
Enabled: true
|
22
|
+
EnforcedStyleAlignWith: either
|
23
|
+
|
24
|
+
Layout/BlockEndNewline:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Layout/CaseIndentation:
|
28
|
+
Enabled: true
|
29
|
+
EnforcedStyle: case
|
30
|
+
IndentationWidth: ~
|
31
|
+
IndentOneStep: false
|
32
|
+
|
33
|
+
Layout/ClassStructure:
|
34
|
+
Enabled: true
|
35
|
+
Categories:
|
36
|
+
module_inclusion:
|
37
|
+
- include
|
38
|
+
- prepend
|
39
|
+
- extend
|
40
|
+
ExpectedOrder:
|
41
|
+
- module_inclusion
|
42
|
+
- constants
|
43
|
+
- public_class_methods
|
44
|
+
- initializer
|
45
|
+
- public_methods
|
46
|
+
- protected_methods
|
47
|
+
- private_methods
|
48
|
+
|
49
|
+
Layout/ClosingHeredocIndentation:
|
50
|
+
Enabled: true
|
51
|
+
|
52
|
+
Layout/ClosingParenthesisIndentation:
|
53
|
+
Enabled: true
|
54
|
+
|
55
|
+
Layout/CommentIndentation:
|
56
|
+
Enabled: true
|
57
|
+
|
58
|
+
Layout/ConditionPosition:
|
59
|
+
Enabled: true
|
60
|
+
|
61
|
+
Layout/DefEndAlignment:
|
62
|
+
Enabled: true
|
63
|
+
EnforcedStyleAlignWith: start_of_line
|
64
|
+
AutoCorrect: false
|
65
|
+
Severity: warning
|
66
|
+
|
67
|
+
Layout/DotPosition:
|
68
|
+
Enabled: true
|
69
|
+
EnforcedStyle: leading
|
70
|
+
|
71
|
+
Layout/ElseAlignment:
|
72
|
+
Enabled: true
|
73
|
+
|
74
|
+
Layout/EmptyComment:
|
75
|
+
Enabled: true
|
76
|
+
AllowBorderComment: false
|
77
|
+
AllowMarginComment: false
|
78
|
+
|
79
|
+
Layout/EmptyLineAfterGuardClause:
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
Layout/EmptyLineAfterMagicComment:
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
Layout/EmptyLineBetweenDefs:
|
86
|
+
Enabled: true
|
87
|
+
NumberOfEmptyLines: 1
|
88
|
+
AllowAdjacentOneLineDefs: false
|
89
|
+
|
90
|
+
Layout/EmptyLines:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
Layout/EmptyLinesAroundAccessModifier:
|
94
|
+
Enabled: true
|
95
|
+
|
96
|
+
Layout/EmptyLinesAroundArguments:
|
97
|
+
Enabled: true
|
98
|
+
|
99
|
+
Layout/EmptyLinesAroundBeginBody:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
Layout/EmptyLinesAroundBlockBody:
|
103
|
+
Enabled: true
|
104
|
+
EnforcedStyle: no_empty_lines
|
105
|
+
|
106
|
+
Layout/EmptyLinesAroundClassBody:
|
107
|
+
EnforcedStyle: no_empty_lines
|
108
|
+
|
109
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
Layout/EmptyLinesAroundMethodBody:
|
113
|
+
Enabled: true
|
114
|
+
|
115
|
+
Layout/EmptyLinesAroundModuleBody:
|
116
|
+
Enabled: true
|
117
|
+
EnforcedStyle: no_empty_lines
|
118
|
+
|
119
|
+
Layout/EndAlignment:
|
120
|
+
Enabled: true
|
121
|
+
EnforcedStyleAlignWith: keyword
|
122
|
+
AutoCorrect: false
|
123
|
+
Severity: warning
|
124
|
+
|
125
|
+
Layout/EndOfLine:
|
126
|
+
Enabled: true
|
127
|
+
EnforcedStyle: native
|
128
|
+
|
129
|
+
Layout/ExtraSpacing:
|
130
|
+
Enabled: true
|
131
|
+
AllowForAlignment: true
|
132
|
+
ForceEqualSignAlignment: false
|
133
|
+
|
134
|
+
Layout/FirstArrayElementLineBreak:
|
135
|
+
Enabled: false
|
136
|
+
|
137
|
+
Layout/FirstHashElementLineBreak:
|
138
|
+
Enabled: false
|
139
|
+
|
140
|
+
Layout/FirstMethodArgumentLineBreak:
|
141
|
+
Enabled: false
|
142
|
+
|
143
|
+
Layout/FirstMethodParameterLineBreak:
|
144
|
+
Enabled: false
|
145
|
+
|
146
|
+
Layout/FirstParameterIndentation:
|
147
|
+
Enabled: true
|
148
|
+
EnforcedStyle: consistent
|
149
|
+
IndentationWidth: ~
|
150
|
+
|
151
|
+
Layout/IndentArray:
|
152
|
+
Enabled: true
|
153
|
+
EnforcedStyle: consistent
|
154
|
+
IndentationWidth: ~
|
155
|
+
|
156
|
+
Layout/IndentAssignment:
|
157
|
+
Enabled: true
|
158
|
+
IndentationWidth: ~
|
159
|
+
|
160
|
+
Layout/IndentHash:
|
161
|
+
Enabled: true
|
162
|
+
EnforcedStyle: consistent
|
163
|
+
IndentationWidth: ~
|
164
|
+
|
165
|
+
Layout/IndentHeredoc:
|
166
|
+
Enabled: true
|
167
|
+
EnforcedStyle: auto_detection
|
168
|
+
|
169
|
+
Layout/IndentationConsistency:
|
170
|
+
Enabled: true
|
171
|
+
EnforcedStyle: normal
|
172
|
+
|
173
|
+
Layout/IndentationWidth:
|
174
|
+
Enabled: true
|
175
|
+
Width: 2
|
176
|
+
IgnoredPatterns: []
|
177
|
+
|
178
|
+
Layout/InitialIndentation:
|
179
|
+
Enabled: true
|
180
|
+
|
181
|
+
Layout/LeadingBlankLines:
|
182
|
+
Enabled: true
|
183
|
+
|
184
|
+
Layout/LeadingCommentSpace:
|
185
|
+
Enabled: true
|
186
|
+
|
187
|
+
Layout/MultilineArrayBraceLayout:
|
188
|
+
Enabled: true
|
189
|
+
EnforcedStyle: symmetrical
|
190
|
+
|
191
|
+
Layout/MultilineAssignmentLayout:
|
192
|
+
Enabled: false
|
193
|
+
|
194
|
+
Layout/MultilineBlockLayout:
|
195
|
+
Enabled: true
|
196
|
+
|
197
|
+
Layout/MultilineHashBraceLayout:
|
198
|
+
Enabled: true
|
199
|
+
EnforcedStyle: symmetrical
|
200
|
+
|
201
|
+
Layout/MultilineMethodCallBraceLayout:
|
202
|
+
Enabled: true
|
203
|
+
EnforcedStyle: symmetrical
|
204
|
+
|
205
|
+
Layout/MultilineMethodCallIndentation:
|
206
|
+
Enabled: false
|
207
|
+
EnforcedStyle: aligned
|
208
|
+
IndentationWidth: ~
|
209
|
+
|
210
|
+
Layout/MultilineMethodDefinitionBraceLayout:
|
211
|
+
Enabled: true
|
212
|
+
EnforcedStyle: symmetrical
|
213
|
+
|
214
|
+
Layout/MultilineOperationIndentation:
|
215
|
+
Enabled: true
|
216
|
+
EnforcedStyle: aligned
|
217
|
+
IndentationWidth: ~
|
218
|
+
|
219
|
+
Layout/RescueEnsureAlignment:
|
220
|
+
Enabled: true
|
221
|
+
|
222
|
+
Layout/SpaceAfterColon:
|
223
|
+
Enabled: true
|
224
|
+
|
225
|
+
Layout/SpaceAfterComma:
|
226
|
+
Enabled: true
|
227
|
+
|
228
|
+
Layout/SpaceAfterMethodName:
|
229
|
+
Enabled: true
|
230
|
+
|
231
|
+
Layout/SpaceAfterNot:
|
232
|
+
Enabled: true
|
233
|
+
|
234
|
+
Layout/SpaceAfterSemicolon:
|
235
|
+
Enabled: true
|
236
|
+
|
237
|
+
Layout/SpaceAroundBlockParameters:
|
238
|
+
Enabled: true
|
239
|
+
EnforcedStyleInsidePipes: no_space
|
240
|
+
|
241
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
242
|
+
Enabled: true
|
243
|
+
EnforcedStyle: space
|
244
|
+
|
245
|
+
Layout/SpaceAroundKeyword:
|
246
|
+
Enabled: true
|
247
|
+
|
248
|
+
Layout/SpaceAroundOperators:
|
249
|
+
Enabled: true
|
250
|
+
AllowForAlignment: true
|
251
|
+
|
252
|
+
Layout/SpaceBeforeBlockBraces:
|
253
|
+
Enabled: true
|
254
|
+
EnforcedStyle: space
|
255
|
+
EnforcedStyleForEmptyBraces: space
|
256
|
+
|
257
|
+
Layout/SpaceBeforeComma:
|
258
|
+
Enabled: true
|
259
|
+
|
260
|
+
Layout/SpaceBeforeComment:
|
261
|
+
Enabled: true
|
262
|
+
|
263
|
+
Layout/SpaceBeforeFirstArg:
|
264
|
+
Enabled: true
|
265
|
+
AllowForAlignment: true
|
266
|
+
|
267
|
+
Layout/SpaceBeforeSemicolon:
|
268
|
+
Enabled: true
|
269
|
+
|
270
|
+
Layout/SpaceInLambdaLiteral:
|
271
|
+
Enabled: true
|
272
|
+
EnforcedStyle: require_space
|
273
|
+
|
274
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
275
|
+
Enabled: true
|
276
|
+
EnforcedStyle: no_space
|
277
|
+
EnforcedStyleForEmptyBrackets: no_space
|
278
|
+
|
279
|
+
Layout/SpaceInsideArrayPercentLiteral:
|
280
|
+
Enabled: true
|
281
|
+
|
282
|
+
Layout/SpaceInsideBlockBraces:
|
283
|
+
Enabled: true
|
284
|
+
EnforcedStyle: space
|
285
|
+
EnforcedStyleForEmptyBraces: no_space
|
286
|
+
SpaceBeforeBlockParameters: true
|
287
|
+
|
288
|
+
Layout/SpaceInsideHashLiteralBraces:
|
289
|
+
Enabled: true
|
290
|
+
EnforcedStyle: space
|
291
|
+
EnforcedStyleForEmptyBraces: no_space
|
292
|
+
|
293
|
+
Layout/SpaceInsideParens:
|
294
|
+
Enabled: true
|
295
|
+
EnforcedStyle: no_space
|
296
|
+
|
297
|
+
Layout/SpaceInsidePercentLiteralDelimiters:
|
298
|
+
Enabled: true
|
299
|
+
|
300
|
+
Layout/SpaceInsideRangeLiteral:
|
301
|
+
Enabled: true
|
302
|
+
|
303
|
+
Layout/SpaceInsideReferenceBrackets:
|
304
|
+
Enabled: true
|
305
|
+
EnforcedStyle: no_space
|
306
|
+
EnforcedStyleForEmptyBrackets: no_space
|
307
|
+
|
308
|
+
Layout/SpaceInsideStringInterpolation:
|
309
|
+
Enabled: true
|
310
|
+
EnforcedStyle: no_space
|
311
|
+
|
312
|
+
Layout/Tab:
|
313
|
+
Enabled: true
|
314
|
+
IndentationWidth: ~
|
315
|
+
|
316
|
+
Layout/TrailingBlankLines:
|
317
|
+
Enabled: true
|
318
|
+
EnforcedStyle: final_newline
|
319
|
+
|
320
|
+
Layout/TrailingWhitespace:
|
321
|
+
Enabled: true
|
322
|
+
AllowInHeredoc: false
|