-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Re-order gemspec requirements. Add rubocop legacy version and update minimum ruby to 2.3 * Remove all redundant items and use let's in specs * Add initial config * Add placeholder changelog * Add rubocop styling into repo config * Add initial state for repo config * Update release workflow to use latest ruby version * Update runner to test later versions of ruby * Verbosely set rubygems version to mitigate vs runner issues with rubygems versions * Add changelog PR ref * Easy spacing fixes
- Loading branch information
Showing
14 changed files
with
307 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0.2' | ||
ruby-version: '3.2' | ||
bundler-cache: true | ||
- uses: cucumber/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
Gemfile.lock | ||
coverage/ | ||
acceptance/ | ||
pkg/ | ||
*.gem | ||
.compared | ||
.deps | ||
.tested* | ||
*-go | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# TODO: Re-enable once tag-expressions > 7.0 | ||
#require: | ||
# - rubocop-performance | ||
# - rubocop-rake | ||
# - rubocop-rspec | ||
|
||
inherit_from: .rubocop_todo.yml | ||
|
||
inherit_mode: | ||
merge: | ||
- Exclude | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.3 | ||
# TODO: Re-enable once rubocop > 1.10 | ||
# NewCops: enable | ||
|
||
# Disabled on our repo's to enable polyglot-release | ||
# TODO: Re-enable once rubocop > 1.40 | ||
#Gemspec/RequireMFA: | ||
# Enabled: false | ||
|
||
Layout/LineLength: | ||
Max: 200 | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/RegexpLiteral: | ||
EnforcedStyle: slashes | ||
AllowInnerSlashes: true | ||
|
||
# TODO: Re-enable once rubocop-rspec > 1.20 | ||
#RSpec/MessageSpies: | ||
# EnforcedStyle: receive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,244 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2023-10-06 16:28:14 +0100 using RuboCop version 0.79.0. | ||
# 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. | ||
|
||
# TODO: Oct '23 -> 9 files inspected, 78 offenses detected | ||
|
||
# Offense count: 3 | ||
# Cop supports --auto-correct. | ||
Layout/EmptyLineAfterGuardClause: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
Layout/EmptyLineAfterMagicComment: | ||
Exclude: | ||
- 'Gemfile' | ||
|
||
# Offense count: 5 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. | ||
Layout/ExtraSpacing: | ||
Exclude: | ||
- 'cucumber-tag-expressions.gemspec' | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, IndentationWidth. | ||
# SupportedStyles: special_inside_parentheses, consistent, align_braces | ||
Layout/FirstHashElementIndentation: | ||
Exclude: | ||
- 'cucumber-tag-expressions.gemspec' | ||
|
||
# Offense count: 7 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. | ||
# SupportedHashRocketStyles: key, separator, table | ||
# SupportedColonStyles: key, separator, table | ||
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit | ||
Layout/HashAlignment: | ||
Exclude: | ||
- 'cucumber-tag-expressions.gemspec' | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, IndentationWidth. | ||
# SupportedStyles: aligned, indented | ||
Layout/MultilineOperationIndentation: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyleInsidePipes. | ||
# SupportedStylesInsidePipes: space, no_space | ||
Layout/SpaceAroundBlockParameters: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 3 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. | ||
# SupportedStylesForExponentOperator: space, no_space | ||
Layout/SpaceAroundOperators: | ||
Exclude: | ||
- 'cucumber-tag-expressions.gemspec' | ||
- 'lib/cucumber/tag_expressions/expressions.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. | ||
Lint/UnusedMethodArgument: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/expressions.rb' | ||
|
||
# Offense count: 2 | ||
Metrics/AbcSize: | ||
Max: 27 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments. | ||
Metrics/ClassLength: | ||
Max: 132 | ||
|
||
# Offense count: 1 | ||
Metrics/CyclomaticComplexity: | ||
Max: 13 | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: CountComments, ExcludedMethods. | ||
Metrics/MethodLength: | ||
Max: 29 | ||
|
||
# Offense count: 1 | ||
Metrics/PerceivedComplexity: | ||
Max: 15 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. | ||
# AllowedNames: io, id, to, by, on, in, at, ip, db, os | ||
Naming/MethodParameterName: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 6 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: percent_q, bare_percent | ||
Style/BarePercentLiterals: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
- 'spec/errors_spec.rb' | ||
- 'spec/parsing_spec.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. | ||
# SupportedStyles: assign_to_condition, assign_inside_condition | ||
Style/ConditionalAssignment: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 1 | ||
Style/Documentation: | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'test/**/*' | ||
- 'lib/cucumber/tag_expressions/expressions.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
Style/Encoding: | ||
Exclude: | ||
- 'cucumber-tag-expressions.gemspec' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
Style/ExpandPathArguments: | ||
Exclude: | ||
- 'Rakefile' | ||
|
||
# Offense count: 8 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: always, never | ||
Style/FrozenStringLiteralComment: | ||
Exclude: | ||
- 'Rakefile' | ||
- 'cucumber-tag-expressions.gemspec' | ||
- 'lib/cucumber/tag_expressions.rb' | ||
- 'lib/cucumber/tag_expressions/expressions.rb' | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
- 'spec/errors_spec.rb' | ||
- 'spec/evaluations_spec.rb' | ||
- 'spec/parsing_spec.rb' | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: MinBodyLength. | ||
Style/GuardClause: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
Style/IfUnlessModifier: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: both, prefix, postfix | ||
Style/NegatedIf: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods. | ||
# SupportedStyles: predicate, comparison | ||
Style/NumericPredicate: | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 4 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: PreferredDelimiters. | ||
Style/PercentLiteralDelimiters: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
- 'spec/errors_spec.rb' | ||
- 'spec/parsing_spec.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: . | ||
# SupportedStyles: use_perl_names, use_english_names | ||
Style/SpecialGlobalVars: | ||
EnforcedStyle: use_perl_names | ||
|
||
# Offense count: 11 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. | ||
# SupportedStyles: single_quotes, double_quotes | ||
Style/StringLiterals: | ||
Exclude: | ||
- 'Rakefile' | ||
- 'cucumber-tag-expressions.gemspec' | ||
- 'lib/cucumber/tag_expressions/expressions.rb' | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyleForMultiline. | ||
# SupportedStylesForMultiline: comma, consistent_comma, no_comma | ||
Style/TrailingCommaInHashLiteral: | ||
Exclude: | ||
- 'cucumber-tag-expressions.gemspec' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
Style/WhileUntilModifier: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
Style/ZeroLengthPredicate: | ||
Exclude: | ||
- 'lib/cucumber/tag_expressions/parser.rb' | ||
|
||
# Offense count: 9 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. | ||
# URISchemes: http, https | ||
Layout/LineLength: | ||
Max: 140 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.