rubocop-hotstepper 0.1.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 18a9b50ba05814225b60ac17f4db5b0353bd1ef8003d2266cf715850e3764023
4
+ data.tar.gz: f8df02c5e0904b4f4768020ba96f5ff813f0fb008df870cbf1c3b932936352da
5
+ SHA512:
6
+ metadata.gz: 9365d44128c8809dba743cbb955cbdbea41f9bea995a37736cb1d8be3dc3b775ef58d845dbea42e11938d0784fa76515793acd93b93678478ccdf2f9d69c7244
7
+ data.tar.gz: e09f061f1280a71283b8e8b55b818ca829ff97c9eb2693da3725fb39b79407a962438fcbeeabeb8b5a3c95bcc1a8dfc7f8fdfdce2bec24d56bccdeb04fce5c60
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: weekly
7
+ open-pull-requests-limit: 0
8
+ - package-ecosystem: github-actions
9
+ directory: "/"
10
+ schedule:
11
+ interval: weekly
12
+ open-pull-requests-limit: 0
@@ -0,0 +1,51 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [ main ]
7
+
8
+ jobs:
9
+ lint:
10
+ runs-on: ubuntu-latest
11
+ env:
12
+ RUBY_VERSION: ruby-4.0.1
13
+ RUBOCOP_CACHE_ROOT: tmp/rubocop
14
+ steps:
15
+ - name: Checkout code
16
+ uses: actions/checkout@v6
17
+
18
+ - name: Set up Ruby
19
+ uses: ruby/setup-ruby@v1
20
+ with:
21
+ ruby-version: ${{ env.RUBY_VERSION }}
22
+ bundler-cache: true
23
+
24
+ - name: Prepare RuboCop cache
25
+ uses: actions/cache@v4
26
+ env:
27
+ DEPENDENCIES_HASH: ${{ hashFiles('**/.rubocop.yml', '**/.rubocop_todo.yml', 'Gemfile.lock', '**/conf/*.yml') }}
28
+ with:
29
+ path: ${{ env.RUBOCOP_CACHE_ROOT }}
30
+ key: rubocop-${{ runner.os }}-${{ env.RUBY_VERSION }}-${{ env.DEPENDENCIES_HASH }}-${{ github.ref_name == github.event.repository.default_branch && github.run_id || 'default' }}
31
+ restore-keys: |
32
+ rubocop-${{ runner.os }}-${{ env.RUBY_VERSION }}-${{ env.DEPENDENCIES_HASH }}-
33
+
34
+ - name: Lint code for consistent style
35
+ run: bin/rubocop -f github
36
+
37
+ test:
38
+ runs-on: ubuntu-latest
39
+
40
+ steps:
41
+ - name: Checkout code
42
+ uses: actions/checkout@v6
43
+
44
+ - name: Set up Ruby
45
+ uses: ruby/setup-ruby@v1
46
+ with:
47
+ ruby-version: ruby-4.0.1
48
+ bundler-cache: true
49
+
50
+ - name: Run tests
51
+ run: bin/rspec
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2026-03-08
4
+
5
+ - Initial release
@@ -0,0 +1,10 @@
1
+ # Code of Conduct
2
+
3
+ "rubocop-hotstepper" follows [The Ruby Community Conduct Guideline](https://www.ruby-lang.org/en/conduct) in all "collaborative space", which is defined as community communications channels (such as mailing lists, submitted patches, commit comments, etc.):
4
+
5
+ * Participants will be tolerant of opposing views.
6
+ * Participants must ensure that their language and actions are free of personal attacks and disparaging personal remarks.
7
+ * When interpreting the words and actions of others, participants should always assume good intentions.
8
+ * Behaviour which can be reasonably considered harassment will not be tolerated.
9
+
10
+ If you have any concerns about behaviour within this project, please contact us at ["devel@mouse.vc"](mailto:"devel@mouse.vc").
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Alexa Grey
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,43 @@
1
+ # Rubocop::Hotstepper
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rubocop/hotstepper`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ ```bash
14
+ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ ```
16
+
17
+ If bundler is not being used to manage dependencies, install the gem by executing:
18
+
19
+ ```bash
20
+ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rubocop-hotstepper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/rubocop-hotstepper/blob/main/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Rubocop::Hotstepper project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rubocop-hotstepper/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/conf/default.yml ADDED
@@ -0,0 +1,12 @@
1
+ Hotstepper:
2
+ Enabled: true
3
+
4
+ Hotstepper/RedundantRailsHelper:
5
+ Description: >
6
+ Rails Helper is required by default in hotstepper RSpec configuration, so it's redundant to require it again in spec files.
7
+ Enabled: true
8
+ Safe: true
9
+ Exclude:
10
+ - .rspec
11
+ - spec/rails_helper.rb
12
+ - spec/spec_helper.rb
@@ -0,0 +1,31 @@
1
+ plugins:
2
+ - rubocop-factory_bot
3
+
4
+ # Explicit is better.
5
+ FactoryBot/AssociationStyle:
6
+ EnforcedStyle: explicit
7
+ Enabled: true
8
+
9
+ FactoryBot/ConsistentParenthesesStyle:
10
+ Enabled: false
11
+
12
+ FactoryBot/CreateList:
13
+ Enabled: false
14
+
15
+ FactoryBot/ExcessiveCreateList:
16
+ Enabled: true
17
+
18
+ FactoryBot/FactoryAssociationWithStrategy:
19
+ Enabled: true
20
+
21
+ FactoryBot/FactoryNameStyle:
22
+ Enabled: true
23
+
24
+ FactoryBot/IdSequence:
25
+ Enabled: true
26
+
27
+ FactoryBot/RedundantFactoryOption:
28
+ Enabled: true
29
+
30
+ FactoryBot/SyntaxMethods:
31
+ Enabled: false
data/conf/layout.yml ADDED
@@ -0,0 +1,58 @@
1
+ Layout/ArgumentAlignment:
2
+ Enabled: false
3
+
4
+ Layout/DotPosition:
5
+ Enabled: false
6
+
7
+ Layout/EmptyLineAfterGuardClause:
8
+ Enabled: false
9
+
10
+ Layout/EmptyLinesAfterModuleInclusion:
11
+ Enabled: true
12
+
13
+ Layout/ExtraSpacing:
14
+ AllowForAlignment: true
15
+ AllowBeforeTrailingComments: true
16
+
17
+ Layout/FirstHashElementIndentation:
18
+ Enabled: false
19
+
20
+ Layout/HashAlignment:
21
+ Enabled: false
22
+
23
+ Layout/HeredocIndentation:
24
+ Enabled: false
25
+
26
+ Layout/LineContinuationLeadingSpace:
27
+ Enabled: true
28
+
29
+ Layout/LineContinuationSpacing:
30
+ Enabled: true
31
+
32
+ Layout/LineEndStringConcatenationIndentation:
33
+ Enabled: false
34
+
35
+ Layout/LineLength:
36
+ AllowedPatterns:
37
+ - def .+!\(.+\)
38
+ Max: 180
39
+ Exclude:
40
+ - "spec/**/*.rb"
41
+
42
+ Layout/MultilineMethodCallBraceLayout:
43
+ Enabled: false
44
+
45
+ Layout/MultilineOperationIndentation:
46
+ Enabled: false
47
+
48
+ Layout/MultilineMethodCallIndentation:
49
+ Enabled: false
50
+
51
+ Layout/SpaceAroundOperators:
52
+ Enabled: false
53
+
54
+ Layout/SpaceBeforeBrackets:
55
+ Enabled: true
56
+
57
+ Layout/SpaceInsideArrayLiteralBrackets:
58
+ Enabled: false
data/conf/lint.yml ADDED
@@ -0,0 +1,171 @@
1
+ Lint/AmbiguousAssignment:
2
+ Enabled: true
3
+
4
+ # It's never actually ambiguous if you know ruby even a little, and parenthesizing it looks worse.
5
+ Lint/AmbiguousBlockAssociation:
6
+ Enabled: false
7
+
8
+ Lint/AmbiguousOperator:
9
+ Enabled: false
10
+
11
+ # PEMDAS
12
+ Lint/AmbiguousOperatorPrecedence:
13
+ Enabled: false
14
+
15
+ Lint/AmbiguousRange:
16
+ Enabled: true
17
+
18
+ Lint/ArrayLiteralInRegexp:
19
+ Enabled: true
20
+
21
+ Lint/ConstantOverwrittenInRescue:
22
+ Enabled: true
23
+
24
+ Lint/ConstantReassignment:
25
+ Enabled: true
26
+
27
+ Lint/CopDirectiveSyntax:
28
+ Enabled: true
29
+
30
+ Lint/DataDefineOverride:
31
+ Enabled: true
32
+
33
+ Lint/DeprecatedConstants:
34
+ Enabled: true
35
+
36
+ Lint/DuplicateBranch:
37
+ Enabled: false
38
+
39
+ Lint/DuplicateMagicComment:
40
+ Enabled: true
41
+
42
+ Lint/DuplicateMatchPattern:
43
+ Enabled: true
44
+
45
+ Lint/DuplicateRegexpCharacterClassElement:
46
+ Enabled: true
47
+
48
+ Lint/DuplicateSetElement:
49
+ Enabled: true
50
+
51
+ Lint/EmptyBlock:
52
+ Enabled: true
53
+ Exclude:
54
+ - config/routes.rb
55
+
56
+ Lint/EmptyClass:
57
+ Enabled: true
58
+
59
+ Lint/EmptyInPattern:
60
+ Enabled: true
61
+
62
+ Lint/HashNewWithKeywordArgumentsAsDefault:
63
+ Enabled: true
64
+
65
+ Lint/IncompatibleIoSelectWithFiberScheduler:
66
+ Enabled: true
67
+
68
+ Lint/ItWithoutArgumentsInBlock:
69
+ Enabled: true
70
+
71
+ Lint/LambdaWithoutLiteralBlock:
72
+ Enabled: true
73
+
74
+ Lint/LiteralAssignmentInCondition:
75
+ Enabled: true
76
+
77
+ Lint/MissingSuper:
78
+ Enabled: false
79
+
80
+ Lint/MixedCaseRange:
81
+ Enabled: true
82
+
83
+ Lint/NonAtomicFileOperation:
84
+ Enabled: true
85
+
86
+ Lint/NoReturnInBeginEndBlocks:
87
+ Enabled: true
88
+
89
+ Lint/NumberedParameterAssignment:
90
+ Enabled: true
91
+
92
+ Lint/NumericOperationWithConstantResult:
93
+ Enabled: true
94
+
95
+ Lint/OrAssignmentToConstant:
96
+ Enabled: true
97
+
98
+ Lint/RedundantDirGlobSort:
99
+ Enabled: true
100
+
101
+ Lint/RedundantRegexpQuantifiers:
102
+ Enabled: true
103
+
104
+ Lint/RedundantTypeConversion:
105
+ Enabled: true
106
+
107
+ Lint/RefinementImportMethods:
108
+ Enabled: true
109
+
110
+ Lint/RequireRangeParentheses:
111
+ Enabled: true
112
+
113
+ Lint/RequireRelativeSelfPath:
114
+ Enabled: true
115
+
116
+ Lint/SharedMutableDefault:
117
+ Enabled: true
118
+
119
+ Lint/SuppressedExceptionInNumberConversion:
120
+ Enabled: true
121
+
122
+ Lint/SymbolConversion:
123
+ Enabled: true
124
+
125
+ Lint/ToEnumArguments:
126
+ Enabled: true
127
+
128
+ Lint/TripleQuotes:
129
+ Enabled: true
130
+
131
+ Lint/UnderscorePrefixedVariableName:
132
+ Enabled: false
133
+
134
+ Lint/UnescapedBracketInRegexp:
135
+ Enabled: true
136
+
137
+ Lint/UnexpectedBlockArity:
138
+ Enabled: true
139
+
140
+ Lint/UnmodifiedReduceAccumulator:
141
+ Enabled: true
142
+
143
+ Lint/UnreachablePatternBranch:
144
+ Enabled: true
145
+
146
+ Lint/UnusedBlockArgument:
147
+ Enabled: false
148
+
149
+ Lint/UnusedMethodArgument:
150
+ Enabled: false
151
+
152
+ Lint/UselessConstantScoping:
153
+ Enabled: false
154
+
155
+ Lint/UselessDefaultValueArgument:
156
+ Enabled: true
157
+
158
+ Lint/UselessDefined:
159
+ Enabled: true
160
+
161
+ Lint/UselessNumericOperation:
162
+ Enabled: true
163
+
164
+ Lint/UselessOr:
165
+ Enabled: true
166
+
167
+ Lint/UselessRescue:
168
+ Enabled: true
169
+
170
+ Lint/UselessRuby2Keywords:
171
+ Enabled: true
data/conf/metrics.yml ADDED
@@ -0,0 +1,44 @@
1
+ Metrics/AbcSize:
2
+ Exclude:
3
+ - "app/operations/**/*.rb"
4
+ - "app/services/**/*.rb"
5
+ - "spec/**/*.rb"
6
+ Max: 25
7
+
8
+ Metrics/BlockLength:
9
+ Enabled: false
10
+
11
+ Metrics/ClassLength:
12
+ Enabled: false
13
+
14
+ Metrics/CollectionLiteralLength:
15
+ Enabled: false
16
+
17
+ Metrics/CyclomaticComplexity:
18
+ AllowedPatterns:
19
+ - ^detect_
20
+ - ^has_.+!
21
+ Exclude:
22
+ - "app/operations/**/*.rb"
23
+ - "app/services/**/*.rb"
24
+ - "lib/**/*.rb"
25
+ - "spec/**/*.rb"
26
+ Max: 12
27
+
28
+ Metrics/MethodLength:
29
+ Exclude:
30
+ - "lib/**/*.rb"
31
+ - "spec/**/*.rb"
32
+ Max: 30
33
+
34
+ Metrics/ModuleLength:
35
+ Enabled: false
36
+
37
+ Metrics/ParameterLists:
38
+ Enabled: false
39
+
40
+ Metrics/PerceivedComplexity:
41
+ Exclude:
42
+ - "app/operations/**/*.rb"
43
+ - "app/services/**/*.rb"
44
+ - "lib/**/*.rb"
data/conf/misc.yml ADDED
@@ -0,0 +1,23 @@
1
+ Bundler/OrderedGems:
2
+ Enabled: false
3
+
4
+ Gemspec/AddRuntimeDependency:
5
+ Enabled: true
6
+
7
+ Gemspec/AttributeAssignment:
8
+ Enabled: true
9
+
10
+ Gemspec/DeprecatedAttributeAssignment:
11
+ Enabled: true
12
+
13
+ Gemspec/DevelopmentDependencies:
14
+ Enabled: true
15
+
16
+ Gemspec/RequireMFA:
17
+ Enabled: true
18
+
19
+ Security/CompoundHash:
20
+ Enabled: true
21
+
22
+ Security/IoMethods:
23
+ Enabled: true
data/conf/naming.yml ADDED
@@ -0,0 +1,32 @@
1
+ Naming/AccessorMethodName:
2
+ Enabled: false
3
+
4
+ Naming/BinaryOperatorParameterName:
5
+ Enabled: false
6
+
7
+ Naming/BlockForwarding:
8
+ Enabled: true
9
+
10
+ Naming/ConstantName:
11
+ Enabled: false
12
+
13
+ Naming/MemoizedInstanceVariableName:
14
+ Enabled: false
15
+
16
+ Naming/MethodParameterName:
17
+ Enabled: false
18
+
19
+ Naming/MethodName:
20
+ Enabled: false
21
+
22
+ Naming/PredicateMethod:
23
+ Enabled: false
24
+
25
+ Naming/PredicatePrefix:
26
+ ForbiddenPrefixes:
27
+ - is_
28
+ NamePrefix:
29
+ - is_
30
+
31
+ Naming/VariableNumber:
32
+ Enabled: false
@@ -0,0 +1,59 @@
1
+ plugins:
2
+ - rubocop-performance
3
+
4
+ Performance/AncestorsInclude:
5
+ Enabled: true
6
+
7
+ Performance/CollectionLiteralInLoop:
8
+ Enabled: true
9
+
10
+ Performance/ConcurrentMonotonicTime:
11
+ Enabled: true
12
+
13
+ Performance/ConstantRegexp:
14
+ Enabled: true
15
+
16
+ Performance/MapCompact:
17
+ Enabled: true
18
+
19
+ Performance/MapMethodChain:
20
+ Enabled: true
21
+
22
+ Performance/MethodObjectAsBlock:
23
+ Enabled: true
24
+
25
+ Performance/RedundantEqualityComparisonBlock:
26
+ Enabled: true
27
+
28
+ Performance/RedundantSortBlock:
29
+ Enabled: true
30
+
31
+ Performance/RedundantSplitRegexpArgument:
32
+ Enabled: true
33
+
34
+ Performance/RedundantStringChars:
35
+ Enabled: true
36
+
37
+ Performance/ReverseFirst:
38
+ Enabled: true
39
+
40
+ Performance/SortReverse:
41
+ Enabled: true
42
+
43
+ Performance/Squeeze:
44
+ Enabled: true
45
+
46
+ Performance/StringBytesize:
47
+ Enabled: true
48
+
49
+ Performance/StringIdentifierArgument:
50
+ Enabled: true
51
+
52
+ Performance/StringInclude:
53
+ Enabled: true
54
+
55
+ Performance/Sum:
56
+ Enabled: true
57
+
58
+ Performance/ZipWithoutBlock:
59
+ Enabled: true