simplecov-tailwindcss 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.eslintignore +1 -0
  3. data/.eslintrc.yml +25 -0
  4. data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  5. data/.github/ISSUE_TEMPLATE/feature-request.md +20 -0
  6. data/.github/ISSUE_TEMPLATE/question.md +10 -0
  7. data/.github/PULL_REQUEST_TEMPLATE.md +32 -0
  8. data/.github/workflows/builds.yml +37 -0
  9. data/.github/workflows/lints.yml +38 -0
  10. data/.github/workflows/tests.yml +26 -0
  11. data/.gitignore +12 -0
  12. data/.markdownlint.yml +21 -0
  13. data/.rubocop.yml +876 -0
  14. data/.ruby-version +1 -0
  15. data/.stylelintignore +1 -0
  16. data/.stylelintrc +48 -0
  17. data/CHANGELOG.md +14 -0
  18. data/CODE_OF_CONDUCT.md +74 -0
  19. data/CONTRIBUTING.md +132 -0
  20. data/Gemfile +18 -0
  21. data/LICENSE +21 -0
  22. data/README.md +111 -0
  23. data/Rakefile +12 -0
  24. data/bin/console +12 -0
  25. data/bin/publish +82 -0
  26. data/bin/setup +7 -0
  27. data/dist/app.js +9 -0
  28. data/dist/app.scss +6 -0
  29. data/dist/scripts/controllers/toggle_controller.js +14 -0
  30. data/dist/scripts/navigation.js +44 -0
  31. data/dist/scripts/table.js +103 -0
  32. data/dist/scripts/timeago.js +3 -0
  33. data/dist/styles/dialog.scss +50 -0
  34. data/dist/styles/main.scss +3 -0
  35. data/lib/simplecov-tailwindcss.rb +156 -0
  36. data/lib/simplecov-tailwindcss/version.rb +9 -0
  37. data/package.json +69 -0
  38. data/public/application.css +201867 -0
  39. data/public/application.js +662 -0
  40. data/simplecov-tailwindcss.gemspec +32 -0
  41. data/tailwind.config.js +17 -0
  42. data/test/fixtures/app/controllers/sample_controller.rb +12 -0
  43. data/test/fixtures/app/models/user.rb +12 -0
  44. data/test/fixtures/sample.rb +12 -0
  45. data/test/simplecov-tailwindcss/simplecov_tailwindcss_test.rb +40 -0
  46. data/test/test_helper.rb +18 -0
  47. data/views/dialog.erb +88 -0
  48. data/views/group_page.erb +133 -0
  49. data/views/main.erb +187 -0
  50. data/views/stat_card.erb +12 -0
  51. data/views/table_column_head.erb +13 -0
  52. data/webpack.config.js +82 -0
  53. data/yarn.lock +7537 -0
  54. metadata +122 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b8e63ced22852b40bfdd896c47108e2f4f937337c173ef41ff418415cf2655ad
4
+ data.tar.gz: ac215949c86c2a08f08dbaa6b9c968b363dc52d6af3ff5138933a0d3e2abfb21
5
+ SHA512:
6
+ metadata.gz: c4942f643f895ccd437801026cc2066d89a6979890cb77032aa8384729c70725a1c35d51c7653d54e26f8d2a39353f1d90e2d9ad2b861911055eecd6533db73c
7
+ data.tar.gz: 81491d6f11db59537cacb2c6713404e0750a5604d3591762afd11896f1e4410f7ab0275f2b7cff04fa12d26c215ff7cd7ee2ca4f881c5e472874f625c3287908
@@ -0,0 +1 @@
1
+ node_modules/*
@@ -0,0 +1,25 @@
1
+ extends: google
2
+ globals:
3
+ goog: false
4
+ env:
5
+ browser: true
6
+ parserOptions:
7
+ ecmaVersion: 2017 # Enable async/await support in Node scripts
8
+ sourceType: module
9
+ rules:
10
+ indent: [error, 2]
11
+ max-len: [error, 120]
12
+ quotes: [error, single, {"avoidEscape": true}]
13
+ no-var: off
14
+ new-cap: off
15
+ curly: error
16
+ eol-last: [error, "always"]
17
+ no-floating-decimal: error
18
+ no-unused-vars:
19
+ - error
20
+ - varsIgnorePattern: ^(?:(?:MDC(?:(?:[A-Z][a-z0-9]+)+)Adapter)|(?:(?:(?:[A-Z][a-z0-9]+)+)Type))$
21
+
22
+ require-jsdoc: off
23
+ valid-jsdoc: off
24
+
25
+ prefer-const: error
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: bug, new
6
+ assignees: chiefpansancolt
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: [e.g. iOS]
28
+ - Browser [e.g. chrome, safari]
29
+ - Version [e.g. 22]
30
+
31
+ **Smartphone (please complete the following information):**
32
+ - Device: [e.g. iPhone6]
33
+ - OS: [e.g. iOS8.1]
34
+ - Browser [e.g. stock browser, safari]
35
+ - Version [e.g. 22]
36
+
37
+ **Additional context**
38
+ Add any other context about the problem here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature Request
3
+ about: Suggest an idea for this project
4
+ title: Feature Request
5
+ labels: enhancement, new
6
+ assignees: chiefpansancolt
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: Question
3
+ about: Ask a question to the group
4
+ title: Question
5
+ labels: new, question
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+
@@ -0,0 +1,32 @@
1
+ # Description
2
+
3
+ Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
4
+
5
+ Fixes # (issue)
6
+
7
+ ## Type of change
8
+
9
+ Please delete options that are not relevant.
10
+
11
+ - [ ] Bug fix (non-breaking change which fixes an issue)
12
+ - [ ] New feature (non-breaking change which adds functionality)
13
+ - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
14
+ - [ ] This change requires a documentation update
15
+
16
+ # How Has This Been Tested?
17
+
18
+ Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
19
+
20
+ - [ ] Test A
21
+ - [ ] Test B
22
+
23
+ # Checklist:
24
+
25
+ - [ ] My code follows the style guidelines of this project
26
+ - [ ] I have performed a self-review of my own code
27
+ - [ ] I have commented my code, particularly in hard-to-understand areas
28
+ - [ ] I have made corresponding changes to the documentation
29
+ - [ ] My changes generate no new warnings
30
+ - [ ] I have added tests that prove my fix is effective or that my feature works
31
+ - [ ] New and existing unit tests pass locally with my changes
32
+ - [ ] Any dependent changes have been merged and published in downstream modules
@@ -0,0 +1,37 @@
1
+ name: Builds
2
+
3
+ on: [pull_request]
4
+
5
+ jobs:
6
+ ruby-build:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ strategy:
11
+ matrix:
12
+ ruby: [2.7.x, 2.6.x, 2.5.x, 2.4.x]
13
+
14
+ steps:
15
+ - name: Checkout Code
16
+ uses: actions/checkout@v1
17
+ - name: Set up Ruby
18
+ uses: actions/setup-ruby@v1.1.0
19
+ with:
20
+ ruby-version: ${{ matrix.ruby }}
21
+
22
+ - name: Build
23
+ run: |
24
+ gem install bundler
25
+ bundle install --jobs 4 --retry 3
26
+
27
+ node-build:
28
+
29
+ runs-on: ubuntu-latest
30
+
31
+ steps:
32
+ - uses: actions/checkout@v1
33
+ - uses: actions/setup-node@v1
34
+ with:
35
+ node-version: '13.x'
36
+ - run: yarn install
37
+ - run: yarn build
@@ -0,0 +1,38 @@
1
+ name: Linter
2
+ on: [pull_request]
3
+
4
+ jobs:
5
+ ruby-lint:
6
+
7
+ runs-on: ubuntu-latest
8
+
9
+ steps:
10
+ - uses: actions/checkout@v1
11
+ - name: Rubocop Linter
12
+ uses: andrewmcodes/rubocop-linter-action@v2.0.0
13
+ with:
14
+ additional_gems: 'rubocop-performance'
15
+ env:
16
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17
+
18
+ js-lint:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v1
22
+ - name: eslint
23
+ uses: reviewdog/action-eslint@v1.9.0
24
+ with:
25
+ github_token: ${{ secrets.github_token }}
26
+ reporter: github-pr-check
27
+ eslint_flags: 'dist/**/* webpack.config.js'
28
+
29
+ css-lint:
30
+ runs-on: ubuntu-latest
31
+ steps:
32
+ - uses: actions/checkout@v1
33
+ - name: stylelint
34
+ uses: reviewdog/action-stylelint@v1.7.0
35
+ with:
36
+ github_token: ${{ secrets.github_token }}
37
+ reporter: github-pr-check
38
+ stylelint_input: 'dist/**/*.scss'
@@ -0,0 +1,26 @@
1
+ name: Tests
2
+
3
+ on: [pull_request]
4
+
5
+ jobs:
6
+ ruby-test:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ strategy:
11
+ matrix:
12
+ ruby: [2.7.x, 2.6.x, 2.5.x, 2.4.x]
13
+
14
+ steps:
15
+ - name: Checkout Code
16
+ uses: actions/checkout@v1
17
+ - name: Set up Ruby
18
+ uses: actions/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby }}
21
+
22
+ - name: Build and Test
23
+ run: |
24
+ gem install bundler
25
+ bundle install --jobs 4 --retry 3
26
+ bundle exec rake test
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /node_modules/
10
+ Gemfile.lock
11
+ yarn-error.log
12
+ test/reports/
@@ -0,0 +1,21 @@
1
+ default: true
2
+
3
+ # Exclusions for deliberate/widespread violations
4
+ MD001: false # Header levels should only increment by one level at a time
5
+ MD002: false # First header should be a h1 header
6
+ MD007: # Unordered list indentation
7
+ indent: 4
8
+ MD012: false # Multiple consecutive blank lines
9
+ MD013: false # Line length
10
+ MD014: false # Dollar signs used before commands without showing output
11
+ MD019: false # Multiple spaces after hash on atx style header
12
+ MD021: false # Multiple spaces inside hashes on closed atx style header
13
+ MD024: false # Multiple headers with the same content
14
+ MD026: false # Trailing punctuation in header
15
+ MD029: false # Ordered list item prefix
16
+ MD030: false # Spaces after list markers
17
+ MD033: false # Allow inline HTML
18
+ MD034: false # Bare URL used
19
+ MD040: false # Fenced code blocks should have a language specified
20
+ MD041: false # First line in file should be a top level header
21
+ MD046: false # Code block style
@@ -0,0 +1,876 @@
1
+ ---
2
+ require:
3
+ - rubocop-performance
4
+
5
+ AllCops:
6
+ NewCops: enable
7
+ RubyInterpreters:
8
+ - ruby
9
+ - rake
10
+ # Include common Ruby source files.
11
+ Include:
12
+ - '**/*.rb'
13
+ - '**/*.arb'
14
+ - '**/*.axlsx'
15
+ - '**/*.builder'
16
+ - '**/*.fcgi'
17
+ - '**/*.gemfile'
18
+ - '**/*.gemspec'
19
+ - '**/*.god'
20
+ - '**/*.jb'
21
+ - '**/*.jbuilder'
22
+ - '**/*.mspec'
23
+ - '**/*.opal'
24
+ - '**/*.pluginspec'
25
+ - '**/*.podspec'
26
+ - '**/*.rabl'
27
+ - '**/*.rake'
28
+ - '**/*.rbuild'
29
+ - '**/*.rbw'
30
+ - '**/*.rbx'
31
+ - '**/*.ru'
32
+ - '**/*.ruby'
33
+ - '**/*.spec'
34
+ - '**/*.thor'
35
+ - '**/*.watchr'
36
+ - '**/.irbrc'
37
+ - '**/.pryrc'
38
+ - '**/buildfile'
39
+ - '**/Appraisals'
40
+ - '**/Berksfile'
41
+ - '**/Brewfile'
42
+ - '**/Buildfile'
43
+ - '**/Capfile'
44
+ - '**/Cheffile'
45
+ - '**/Dangerfile'
46
+ - '**/Deliverfile'
47
+ - '**/Fastfile'
48
+ - '**/*Fastfile'
49
+ - '**/Gemfile'
50
+ - '**/Guardfile'
51
+ - '**/Jarfile'
52
+ - '**/Mavenfile'
53
+ - '**/Podfile'
54
+ - '**/Puppetfile'
55
+ - '**/Rakefile'
56
+ - '**/Snapfile'
57
+ - '**/Thorfile'
58
+ - '**/Vagabondfile'
59
+ - '**/Vagrantfile'
60
+ Exclude:
61
+ - 'node_modules/**/*'
62
+ - 'vendor/**/*'
63
+ - '.git/**/*'
64
+ - 'bin/bundle'
65
+ DefaultFormatter: progress
66
+ DisplayCopNames: true
67
+ DisplayStyleGuide: false
68
+ StyleGuideBaseURL: https://rubystyle.guide
69
+ ExtraDetails: false
70
+ StyleGuideCopsOnly: false
71
+ EnabledByDefault: false
72
+ DisabledByDefault: false
73
+ UseCache: true
74
+ MaxFilesInCache: 20000
75
+ CacheRootDirectory: ~
76
+ AllowSymlinksInCacheRootDirectory: false
77
+ TargetRubyVersion: 2.7
78
+
79
+ Style/MixinUsage:
80
+ Enabled: false
81
+ Lint/AmbiguousOperator:
82
+ Description: Checks for ambiguous operators in the first argument of a method invocation
83
+ without parentheses.
84
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-as-args
85
+ Enabled: true
86
+ Lint/AmbiguousBlockAssociation:
87
+ Enabled: false
88
+ Lint/AmbiguousRegexpLiteral:
89
+ Description: Checks for ambiguous regexp literals in the first argument of a method
90
+ invocation without parenthesis.
91
+ Enabled: true
92
+ Lint/AssignmentInCondition:
93
+ Description: Don't use assignment in conditions.
94
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
95
+ Enabled: true
96
+ Layout/BlockAlignment:
97
+ Description: Align block ends correctly.
98
+ Enabled: true
99
+ Lint/CircularArgumentReference:
100
+ Description: Don't refer to the keyword argument in the default value.
101
+ Enabled: true
102
+ Layout/ConditionPosition:
103
+ Description: Checks for condition placed in a confusing position relative to the
104
+ keyword.
105
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
106
+ Enabled: true
107
+ Lint/Debugger:
108
+ Description: Check for debugger calls.
109
+ Enabled: true
110
+ Layout/DefEndAlignment:
111
+ Description: Align ends corresponding to defs correctly.
112
+ Enabled: true
113
+ Lint/DeprecatedClassMethods:
114
+ Description: Check for deprecated class method calls.
115
+ Enabled: true
116
+ Lint/DuplicateMethods:
117
+ Description: Check for duplicate methods calls.
118
+ Enabled: true
119
+ Lint/EachWithObjectArgument:
120
+ Description: Check for immutable argument given to each_with_object.
121
+ Enabled: true
122
+ Lint/ElseLayout:
123
+ Description: Check for odd code arrangement in an else block.
124
+ Enabled: true
125
+ Lint/EmptyEnsure:
126
+ Description: Checks for empty ensure block.
127
+ Enabled: true
128
+ Lint/EmptyInterpolation:
129
+ Description: Checks for empty string interpolation.
130
+ Enabled: true
131
+ Layout/EndAlignment:
132
+ Description: Align ends correctly.
133
+ Enabled: true
134
+ Lint/EnsureReturn:
135
+ Description: Do not use return in an ensure block.
136
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-return-ensure
137
+ Enabled: true
138
+ Lint/FormatParameterMismatch:
139
+ Description: The number of parameters to format/sprint must match the fields.
140
+ Enabled: true
141
+ Lint/SuppressedException:
142
+ Description: Don't suppress exception.
143
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
144
+ Enabled: true
145
+ Lint/LiteralInInterpolation:
146
+ Description: Checks for literals used in interpolation.
147
+ Enabled: true
148
+ Lint/Loop:
149
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
150
+ for post-loop tests.
151
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#loop-with-break
152
+ Enabled: true
153
+ Lint/NestedMethodDefinition:
154
+ Description: Do not use nested method definitions.
155
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-methods
156
+ Enabled: true
157
+ Lint/NonLocalExitFromIterator:
158
+ Description: Do not use return in iterator to cause non-local exit.
159
+ Enabled: true
160
+ Lint/ParenthesesAsGroupedExpression:
161
+ Description: Checks for method calls with a space before the opening parenthesis.
162
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
163
+ Enabled: true
164
+ Lint/RequireParentheses:
165
+ Description: Use parentheses in the method call to avoid confusion about precedence.
166
+ Enabled: true
167
+ Lint/RescueException:
168
+ Description: Avoid rescuing the Exception class.
169
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-blind-rescues
170
+ Enabled: true
171
+ Lint/ShadowingOuterLocalVariable:
172
+ Description: Do not use the same name as outer local variable for block arguments
173
+ or block local variables.
174
+ Enabled: true
175
+ Lint/RedundantStringCoercion:
176
+ Description: Checks for Object#to_s usage in string interpolation.
177
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
178
+ Enabled: true
179
+ Lint/UnderscorePrefixedVariableName:
180
+ Description: Do not use prefix `_` for a variable that is used.
181
+ Enabled: true
182
+ Lint/UnusedBlockArgument:
183
+ Description: Checks for unused block arguments.
184
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
185
+ Enabled: true
186
+ Lint/UnusedMethodArgument:
187
+ Description: Checks for unused method arguments.
188
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
189
+ Enabled: true
190
+ Lint/UnreachableCode:
191
+ Description: Unreachable code.
192
+ Enabled: true
193
+ Lint/UselessAccessModifier:
194
+ Description: Checks for useless access modifiers.
195
+ Enabled: true
196
+ Lint/UselessAssignment:
197
+ Description: Checks for useless assignment to a local variable.
198
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
199
+ Enabled: true
200
+ Lint/UselessElseWithoutRescue:
201
+ Description: Checks for useless `else` in `begin..end` without `rescue`.
202
+ Enabled: true
203
+ Lint/UselessSetterCall:
204
+ Description: Checks for useless setter call to a local variable.
205
+ Enabled: true
206
+ Lint/Void:
207
+ Description: Possible use of operator/literal/variable in void context.
208
+ Enabled: true
209
+ Metrics/AbcSize:
210
+ Description: A calculated magnitude based on number of assignments, branches, and
211
+ conditions.
212
+ Reference: http://c2.com/cgi/wiki?AbcMetric
213
+ Enabled: true
214
+ Max: 15
215
+ Metrics/BlockNesting:
216
+ Description: Avoid excessive block nesting
217
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
218
+ Enabled: true
219
+ Max: 4
220
+ Metrics/ClassLength:
221
+ Description: Avoid classes longer than 100 lines of code.
222
+ Enabled: true
223
+ Max: 100
224
+ Metrics/CyclomaticComplexity:
225
+ Description: A complexity metric that is strongly correlated to the number of test
226
+ cases needed to validate a method.
227
+ Enabled: true
228
+ Metrics/LineLength:
229
+ Description: Limit lines to 80 characters.
230
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
231
+ Enabled: true
232
+ Exclude:
233
+ - "**/*.gemspec"
234
+ Metrics/MethodLength:
235
+ Description: Avoid methods longer than 10 lines of code.
236
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
237
+ Enabled: true
238
+ Max: 10
239
+ Metrics/ModuleLength:
240
+ Description: Avoid modules longer than 100 lines of code.
241
+ Enabled: true
242
+ Max: 100
243
+ Metrics/ParameterLists:
244
+ Description: Avoid parameter lists longer than three or four parameters.
245
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
246
+ Enabled: false
247
+ Metrics/PerceivedComplexity:
248
+ Description: A complexity metric geared towards measuring complexity for a human
249
+ reader.
250
+ Enabled: true
251
+ Metrics/BlockLength:
252
+ Exclude:
253
+ - Rakefile
254
+ - "**/*.rake"
255
+ - spec/**/*.rb
256
+ - "**/*.gemspec"
257
+ Performance/Count:
258
+ Description: Use `count` instead of `select...size`, `reject...size`, `select...count`,
259
+ `reject...count`, `select...length`, and `reject...length`.
260
+ Enabled: true
261
+ Performance/Detect:
262
+ Description: Use `detect` instead of `select.first`, `find_all.first`, `select.last`,
263
+ and `find_all.last`.
264
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code
265
+ Enabled: true
266
+ Performance/FlatMap:
267
+ Description: Use `Enumerable#flat_map` instead of `Enumerable#map...Array#flatten(1)`
268
+ or `Enumberable#collect..Array#flatten(1)`
269
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code
270
+ Enabled: true
271
+ EnabledForFlattenWithoutParams: false
272
+ Performance/ReverseEach:
273
+ Description: Use `reverse_each` instead of `reverse.each`.
274
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code
275
+ Enabled: true
276
+ Style/Sample:
277
+ Description: Use `sample` instead of `shuffle.first`, `shuffle.last`, and `shuffle[Fixnum]`.
278
+ Reference: https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code
279
+ Enabled: true
280
+ Performance/Size:
281
+ Description: Use `size` instead of `count` for counting the number of elements in
282
+ `Array` and `Hash`.
283
+ Reference: https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code
284
+ Enabled: true
285
+ Performance/StringReplacement:
286
+ Description: Use `tr` instead of `gsub` when you are replacing the same number of
287
+ characters. Use `delete` instead of `gsub` when you are deleting characters.
288
+ Reference: https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code
289
+ Enabled: true
290
+ Layout/AccessModifierIndentation:
291
+ Description: Check indentation of private/protected visibility modifiers.
292
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
293
+ Enabled: false
294
+ Naming/AccessorMethodName:
295
+ Description: Check the naming of accessor methods for get_/set_.
296
+ Enabled: false
297
+ Style/Alias:
298
+ Description: Use alias_method instead of alias.
299
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
300
+ Enabled: false
301
+ Layout/ArrayAlignment:
302
+ Description: Align the elements of an array literal if they span more than one line.
303
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
304
+ Enabled: true
305
+ Layout/HashAlignment:
306
+ Description: Align the elements of a hash literal if they span more than one line.
307
+ Enabled: true
308
+ Layout/ParameterAlignment:
309
+ Description: Align the parameters of a method call if they span more than one line.
310
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
311
+ Enabled: true
312
+ Style/AndOr:
313
+ Description: Use &&/|| instead of and/or.
314
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
315
+ Enabled: true
316
+ Style/ArrayJoin:
317
+ Description: Use Array#join instead of Array#*.
318
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join
319
+ Enabled: false
320
+ Style/AsciiComments:
321
+ Description: Use only ascii symbols in comments.
322
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-comments
323
+ Enabled: false
324
+ Naming/AsciiIdentifiers:
325
+ Description: Use only ascii symbols in identifiers.
326
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
327
+ Enabled: false
328
+ Style/Attr:
329
+ Description: Checks for uses of Module#attr.
330
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr
331
+ Enabled: true
332
+ Style/BeginBlock:
333
+ Description: Avoid the use of BEGIN blocks.
334
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks
335
+ Enabled: true
336
+ Style/BarePercentLiterals:
337
+ Description: Checks if usage of %() or %Q() matches configuration.
338
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand
339
+ Enabled: true
340
+ Style/BlockComments:
341
+ Description: Do not use block comments.
342
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
343
+ Enabled: false
344
+ Layout/BlockEndNewline:
345
+ Description: Put end statement of multiline block on its own line.
346
+ Enabled: true
347
+ Style/BlockDelimiters:
348
+ Description: Avoid using {...} for multi-line blocks (multiline chaining is always
349
+ ugly). Prefer {...} over do...end for single-line blocks.
350
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
351
+ Enabled: true
352
+ Style/CaseEquality:
353
+ Description: Avoid explicit use of the case equality operator(===).
354
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-case-equality
355
+ Enabled: false
356
+ Layout/CaseIndentation:
357
+ Description: Indentation of when in a case/when/[else/]end.
358
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
359
+ Enabled: true
360
+ Style/CharacterLiteral:
361
+ Description: Checks for uses of character literals.
362
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-character-literals
363
+ Enabled: false
364
+ Naming/ClassAndModuleCamelCase:
365
+ Description: Use CamelCase for classes and modules.
366
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#camelcase-classes
367
+ Enabled: true
368
+ Style/ClassAndModuleChildren:
369
+ Description: Checks style of children classes and modules.
370
+ Enabled: false
371
+ Style/ClassCheck:
372
+ Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
373
+ Enabled: true
374
+ Style/ClassMethods:
375
+ Description: Use self when defining module/class methods.
376
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#def-self-class-methods
377
+ Enabled: false
378
+ Style/ClassVars:
379
+ Description: Avoid the use of class variables.
380
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-class-vars
381
+ Enabled: false
382
+ Layout/ClosingParenthesisIndentation:
383
+ Description: Checks the indentation of hanging closing parentheses.
384
+ Enabled: false
385
+ Style/ColonMethodCall:
386
+ Description: 'Do not use :: for method call.'
387
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
388
+ Enabled: true
389
+ Style/CommandLiteral:
390
+ Description: Use `` or %x around command literals.
391
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-x
392
+ Enabled: false
393
+ Style/CommentAnnotation:
394
+ Description: Checks formatting of annotation comments.
395
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#annotate-keywords
396
+ Enabled: false
397
+ Layout/CommentIndentation:
398
+ Description: Indentation of comments.
399
+ Enabled: false
400
+ Naming/ConstantName:
401
+ Description: Constants should use SCREAMING_SNAKE_CASE.
402
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
403
+ Enabled: true
404
+ Style/DefWithParentheses:
405
+ Description: Use def with parentheses when there are arguments.
406
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
407
+ Enabled: true
408
+ Style/Documentation:
409
+ Description: Document classes and non-namespace modules.
410
+ Enabled: false
411
+ Layout/DotPosition:
412
+ Description: Checks the position of the dot in multi-line method calls.
413
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
414
+ Enabled: true
415
+ Style/DoubleNegation:
416
+ Description: Checks for uses of double negation (!!).
417
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
418
+ Enabled: true
419
+ Style/EachWithObject:
420
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
421
+ Enabled: false
422
+ Layout/ElseAlignment:
423
+ Description: Align elses and elsifs correctly.
424
+ Enabled: true
425
+ Style/EmptyElse:
426
+ Description: Avoid empty else-clauses.
427
+ Enabled: true
428
+ Layout/EmptyLineBetweenDefs:
429
+ Description: Use empty lines between defs.
430
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
431
+ Enabled: true
432
+ Layout/EmptyLines:
433
+ Description: Don't use several empty lines in a row.
434
+ Enabled: true
435
+ Layout/EmptyLinesAroundAccessModifier:
436
+ Description: Keep blank lines around access modifiers.
437
+ Enabled: false
438
+ Layout/EmptyLinesAroundBlockBody:
439
+ Description: Keeps track of empty lines around block bodies.
440
+ Enabled: false
441
+ Layout/EmptyLinesAroundClassBody:
442
+ Description: Keeps track of empty lines around class bodies.
443
+ Enabled: false
444
+ Layout/EmptyLinesAroundModuleBody:
445
+ Description: Keeps track of empty lines around module bodies.
446
+ Enabled: false
447
+ Layout/EmptyLinesAroundMethodBody:
448
+ Description: Keeps track of empty lines around method bodies.
449
+ Enabled: false
450
+ Style/EmptyLiteral:
451
+ Description: Prefer literals to Array.new/Hash.new/String.new.
452
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
453
+ Enabled: false
454
+ Style/EndBlock:
455
+ Description: Avoid the use of END blocks.
456
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks
457
+ Enabled: false
458
+ Layout/EndOfLine:
459
+ Description: Use Unix-style line endings.
460
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
461
+ Enabled: false
462
+ Style/EvenOdd:
463
+ Description: Favor the use of Fixnum#even? && Fixnum#odd?
464
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
465
+ Enabled: true
466
+ Layout/ExtraSpacing:
467
+ Description: Do not use unnecessary spacing.
468
+ Enabled: true
469
+ Naming/FileName:
470
+ Description: Use snake_case for source file names.
471
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
472
+ Enabled: false
473
+ Layout/InitialIndentation:
474
+ Description: Checks the indentation of the first non-blank non-comment line in a
475
+ file.
476
+ Enabled: false
477
+ Layout/FirstArgumentIndentation:
478
+ Description: Checks the indentation of the first parameter in a method call.
479
+ Enabled: false
480
+ Lint/FlipFlop:
481
+ Description: Checks for flip flops
482
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops
483
+ Enabled: true
484
+ Style/For:
485
+ Description: Checks use of for or each in multiline loops.
486
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-for-loops
487
+ Enabled: true
488
+ Style/FormatString:
489
+ Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
490
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#sprintf
491
+ Enabled: false
492
+ Style/GlobalVars:
493
+ Description: Do not introduce global variables.
494
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#instance-vars
495
+ Reference: http://www.zenspider.com/Languages/Ruby/QuickRef.html
496
+ Enabled: true
497
+ Style/GuardClause:
498
+ Description: Check for conditionals that can be replaced with guard clauses
499
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
500
+ Enabled: true
501
+ Style/HashSyntax:
502
+ Description: 'Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax { :a =>
503
+ 1, :b => 2 }.'
504
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-literals
505
+ Enabled: true
506
+ Style/IfUnlessModifier:
507
+ Description: Favor modifier if/unless usage when you have a single-line body.
508
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
509
+ Enabled: true
510
+ Style/IfWithSemicolon:
511
+ Description: Do not use if x; .... Use the ternary operator instead.
512
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
513
+ Enabled: true
514
+ Layout/IndentationConsistency:
515
+ Description: Keep indentation straight.
516
+ Enabled: false
517
+ Layout/IndentationWidth:
518
+ Description: Use 2 spaces for indentation.
519
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
520
+ Enabled: true
521
+ Layout/FirstArrayElementIndentation:
522
+ Description: Checks the indentation of the first element in an array literal.
523
+ Enabled: false
524
+ Layout/FirstHashElementIndentation:
525
+ Description: Checks the indentation of the first key in a hash literal.
526
+ Enabled: false
527
+ Style/InfiniteLoop:
528
+ Description: Use Kernel#loop for infinite loops.
529
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#infinite-loop
530
+ Enabled: true
531
+ Style/Lambda:
532
+ Description: Use the new lambda literal syntax for single-line blocks.
533
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
534
+ Enabled: true
535
+ Style/LambdaCall:
536
+ Description: Use lambda.call(...) instead of lambda.(...).
537
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
538
+ Enabled: false
539
+ Layout/LeadingCommentSpace:
540
+ Description: Comments should start with a space.
541
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
542
+ Enabled: true
543
+ Style/LineEndConcatenation:
544
+ Description: Use \ instead of + or << to concatenate two string literals at line
545
+ end.
546
+ Enabled: true
547
+ Style/MethodCallWithoutArgsParentheses:
548
+ Description: Do not use parentheses for method calls with no arguments.
549
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
550
+ Enabled: true
551
+ Style/MethodDefParentheses:
552
+ Description: Checks if the method definitions have or don't have parentheses.
553
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
554
+ Enabled: true
555
+ Naming/MethodName:
556
+ Description: Use the configured style when naming methods.
557
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
558
+ Enabled: false
559
+ Style/ModuleFunction:
560
+ Description: Checks for usage of `extend self` in modules.
561
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
562
+ Enabled: true
563
+ Style/MultilineBlockChain:
564
+ Description: Avoid multi-line chains of blocks.
565
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
566
+ Enabled: false
567
+ Layout/MultilineBlockLayout:
568
+ Description: Ensures newlines after multiline block do statements.
569
+ Enabled: true
570
+ Style/MultilineIfThen:
571
+ Description: Do not use then for multi-line if/unless.
572
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-then
573
+ Enabled: true
574
+ Layout/MultilineOperationIndentation:
575
+ Description: Checks indentation of binary operations that span more than one line.
576
+ Enabled: false
577
+ Style/MultilineTernaryOperator:
578
+ Description: 'Avoid multi-line ?: (the ternary operator); use if/unless instead.'
579
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary
580
+ Enabled: true
581
+ Style/NegatedIf:
582
+ Description: Favor unless over if for negative conditions (or control flow or).
583
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#unless-for-negatives
584
+ Enabled: true
585
+ Style/NegatedWhile:
586
+ Description: Favor until over while for negative conditions.
587
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#until-for-negatives
588
+ Enabled: true
589
+ Style/NestedTernaryOperator:
590
+ Description: Use one expression per branch in a ternary operator.
591
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-ternary
592
+ Enabled: true
593
+ Style/Next:
594
+ Description: Use `next` to skip iteration instead of a condition at the end.
595
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
596
+ Enabled: true
597
+ Style/NilComparison:
598
+ Description: Prefer x.nil? to x == nil.
599
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
600
+ Enabled: true
601
+ Style/NonNilCheck:
602
+ Description: Checks for redundant nil checks.
603
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks
604
+ Enabled: true
605
+ Style/Not:
606
+ Description: Use ! instead of not.
607
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bang-not-not
608
+ Enabled: true
609
+ Style/NumericLiterals:
610
+ Description: Add underscores to large numeric literals to improve their readability.
611
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
612
+ Enabled: true
613
+ Style/OneLineConditional:
614
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
615
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
616
+ Enabled: false
617
+ Style/OptionalArguments:
618
+ Description: Checks for optional arguments that do not appear at the end of the
619
+ argument list
620
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#optional-arguments
621
+ Enabled: false
622
+ Style/ParallelAssignment:
623
+ Description: Check for simple usages of parallel assignment. It will only warn when
624
+ the number of variables matches on both sides of the assignment. This also provides
625
+ performance benefits
626
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parallel-assignment
627
+ Enabled: false
628
+ Style/ParenthesesAroundCondition:
629
+ Description: Don't use parentheses around the condition of an if/unless/while.
630
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-parens-if
631
+ Enabled: true
632
+ Style/PercentLiteralDelimiters:
633
+ Description: Use `%`-literal delimiters consistently
634
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
635
+ Enabled: true
636
+ PreferredDelimiters:
637
+ default: "()"
638
+ "%i": "()"
639
+ "%I": "()"
640
+ "%r": "{}"
641
+ "%w": "()"
642
+ "%W": "()"
643
+ Style/PercentQLiterals:
644
+ Description: Checks if uses of %Q/%q match the configured preference.
645
+ Enabled: true
646
+ Style/PerlBackrefs:
647
+ Description: Avoid Perl-style regex back references.
648
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
649
+ Enabled: false
650
+ Naming/PredicateName:
651
+ Description: Check the names of predicate methods.
652
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
653
+ Enabled: true
654
+ Style/Proc:
655
+ Description: Use proc instead of Proc.new.
656
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
657
+ Enabled: true
658
+ Style/RaiseArgs:
659
+ Description: Checks the arguments passed to raise/fail.
660
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
661
+ Enabled: false
662
+ Style/RedundantBegin:
663
+ Description: Don't use begin blocks when they are not needed.
664
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#begin-implicit
665
+ Enabled: true
666
+ Style/RedundantException:
667
+ Description: Checks for an obsolete RuntimeException argument in raise/fail.
668
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror
669
+ Enabled: true
670
+ Style/RedundantReturn:
671
+ Description: Don't use return where it's not required.
672
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-return
673
+ Enabled: true
674
+ Style/RedundantSelf:
675
+ Description: Don't use self where it's not needed.
676
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-self-unless-required
677
+ Enabled: true
678
+ Style/RegexpLiteral:
679
+ Description: Use / or %r around regular expressions.
680
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-r
681
+ Enabled: false
682
+ Layout/RescueEnsureAlignment:
683
+ Description: Align rescues and ensures correctly.
684
+ Enabled: false
685
+ Style/RescueModifier:
686
+ Description: Avoid using rescue in its modifier form.
687
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers
688
+ Enabled: false
689
+ Style/SelfAssignment:
690
+ Description: Checks for places where self-assignment shorthand should have been
691
+ used.
692
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
693
+ Enabled: true
694
+ Style/Semicolon:
695
+ Description: Don't use semicolons to terminate expressions.
696
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon
697
+ Enabled: true
698
+ Style/SignalException:
699
+ Description: Checks for proper usage of fail and raise.
700
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
701
+ Enabled: true
702
+ Style/SingleLineBlockParams:
703
+ Description: Enforces the names of some block params.
704
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
705
+ Enabled: true
706
+ Style/SingleLineMethods:
707
+ Description: Avoid single-line methods.
708
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
709
+ Enabled: false
710
+ Layout/SpaceBeforeFirstArg:
711
+ Description: Checks that exactly one space is used between a method name and the
712
+ first argument for method calls without parentheses.
713
+ Enabled: true
714
+ Layout/SpaceAfterColon:
715
+ Description: Use spaces after colons.
716
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
717
+ Enabled: true
718
+ Layout/SpaceAfterComma:
719
+ Description: Use spaces after commas.
720
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
721
+ Enabled: true
722
+ Layout/SpaceAroundKeyword:
723
+ Description: Use spaces around keywords.
724
+ Enabled: true
725
+ Layout/SpaceAfterMethodName:
726
+ Description: Do not put a space between a method name and the opening parenthesis
727
+ in a method definition.
728
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
729
+ Enabled: true
730
+ Layout/SpaceAfterNot:
731
+ Description: Tracks redundant space after the ! operator.
732
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
733
+ Enabled: false
734
+ Layout/SpaceAfterSemicolon:
735
+ Description: Use spaces after semicolons.
736
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
737
+ Enabled: true
738
+ Layout/SpaceBeforeBlockBraces:
739
+ Description: Checks that the left block brace has or doesn't have space before it.
740
+ Enabled: false
741
+ Layout/SpaceBeforeComma:
742
+ Description: No spaces before commas.
743
+ Enabled: false
744
+ Layout/SpaceBeforeComment:
745
+ Description: Checks for missing space between code and a comment on the same line.
746
+ Enabled: false
747
+ Layout/SpaceBeforeSemicolon:
748
+ Description: No spaces before semicolons.
749
+ Enabled: false
750
+ Layout/SpaceInsideBlockBraces:
751
+ Description: Checks that block braces have or don't have surrounding space. For
752
+ blocks taking parameters, checks that the left brace has or doesn't have trailing
753
+ space.
754
+ Enabled: false
755
+ Layout/SpaceAroundBlockParameters:
756
+ Description: Checks the spacing inside and after block parameters pipes.
757
+ Enabled: true
758
+ Layout/SpaceAroundEqualsInParameterDefault:
759
+ Description: Checks that the equals signs in parameter default assignments have
760
+ or don't have surrounding space depending on configuration.
761
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
762
+ Enabled: true
763
+ Layout/SpaceAroundOperators:
764
+ Description: Use a single space around operators.
765
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
766
+ Enabled: true
767
+ Layout/SpaceInsideHashLiteralBraces:
768
+ Description: Use spaces inside hash literal braces - or don't.
769
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
770
+ Enabled: true
771
+ Layout/SpaceInsideParens:
772
+ Description: No spaces after ( or before ).
773
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
774
+ Enabled: true
775
+ Layout/SpaceInsideRangeLiteral:
776
+ Description: No spaces inside range literals.
777
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
778
+ Enabled: true
779
+ Layout/SpaceInsideStringInterpolation:
780
+ Description: Checks for padding/surrounding spaces inside string interpolation.
781
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#string-interpolation
782
+ Enabled: false
783
+ Style/SpecialGlobalVars:
784
+ Description: Avoid Perl-style global variables.
785
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
786
+ Enabled: false
787
+ Style/StringLiterals:
788
+ Description: Checks if uses of quotes match the configured preference.
789
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
790
+ EnforcedStyle: double_quotes
791
+ Enabled: true
792
+ Style/StringLiteralsInInterpolation:
793
+ Description: Checks if uses of quotes inside expressions in interpolated strings
794
+ match the configured preference.
795
+ Enabled: true
796
+ Style/StructInheritance:
797
+ Description: Checks for inheritance from Struct.new.
798
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
799
+ Enabled: false
800
+ Style/SymbolLiteral:
801
+ Description: Use plain symbols instead of string symbols when possible.
802
+ Enabled: false
803
+ Style/SymbolProc:
804
+ Description: Use symbols as procs instead of blocks when possible.
805
+ Enabled: false
806
+ Layout/IndentationStyle:
807
+ Description: No hard tabs.
808
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
809
+ Enabled: false
810
+ Layout/TrailingEmptyLines:
811
+ Description: Checks trailing blank lines and final newline.
812
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
813
+ Enabled: false
814
+ Style/TrailingCommaInArguments:
815
+ Description: Checks for trailing comma in parameter lists.
816
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma
817
+ Enabled: false
818
+ Layout/TrailingWhitespace:
819
+ Description: Avoid trailing whitespace.
820
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
821
+ Enabled: false
822
+ Style/TrivialAccessors:
823
+ Description: Prefer attr_* methods to trivial readers/writers.
824
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
825
+ Enabled: false
826
+ Style/UnlessElse:
827
+ Description: Do not use unless with else. Rewrite these with the positive case first.
828
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
829
+ Enabled: true
830
+ Style/RedundantCapitalW:
831
+ Description: Checks for %W when interpolation is not needed.
832
+ Enabled: false
833
+ Style/RedundantPercentQ:
834
+ Description: Checks for %q/%Q when single quotes or double quotes would do.
835
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
836
+ Enabled: false
837
+ Style/TrailingUnderscoreVariable:
838
+ Description: Checks for the usage of unneeded trailing underscores at the end of
839
+ parallel variable assignment.
840
+ Enabled: false
841
+ Style/VariableInterpolation:
842
+ Description: Don't interpolate global, instance and class variables directly in
843
+ strings.
844
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
845
+ Enabled: true
846
+ Naming/VariableName:
847
+ Description: Use the configured style when naming variables.
848
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
849
+ Enabled: true
850
+ Style/WhenThen:
851
+ Description: Use when x then ... for one-line cases.
852
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
853
+ Enabled: true
854
+ Style/WhileUntilDo:
855
+ Description: Checks for redundant do after while or until.
856
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do
857
+ Enabled: true
858
+ Style/WhileUntilModifier:
859
+ Description: Favor modifier while/until usage when you have a single-line body.
860
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
861
+ Enabled: true
862
+ Style/MutableConstant:
863
+ Enabled: true
864
+ Style/FrozenStringLiteralComment:
865
+ Enabled: true
866
+ Style/WordArray:
867
+ Description: Use %w or %W for arrays of words.
868
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
869
+ Enabled: true
870
+ Style/EmptyMethod:
871
+ Enabled: false
872
+ Security/Eval:
873
+ Description: The use of eval represents a serious security risk.
874
+ Enabled: true
875
+ Gemspec/RequiredRubyVersion:
876
+ Enabled: false