Skip to content

Commit

Permalink
Add rubocop-rake and rubocop-rspec dev gems
Browse files Browse the repository at this point in the history
  • Loading branch information
nodeg committed Dec 20, 2024
1 parent a2174f1 commit 20c8e69
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-rake
- rubocop-rspec

AllCops:
NewCops: disable
TargetRubyVersion: 3.1
Exclude:
- 'lib/template/*.spec'

Layout/LineLength:
Max: 140
Expand Down
116 changes: 112 additions & 4 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-12-19 18:05:31 UTC using RuboCop version 1.69.2.
# on 2024-12-20 12:32:51 UTC using RuboCop version 1.69.2.
# 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
Expand Down Expand Up @@ -104,11 +104,11 @@ Lint/UriEscapeUnescape:
Exclude:
- 'lib/tetra/ui/get_pom_subcommand.rb'

# Offense count: 19
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
# Offense count: 2
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 186
Max: 27

# Offense count: 1
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
Expand All @@ -122,6 +122,114 @@ Naming/MethodParameterName:
Exclude:
- 'lib/tetra/ui/subcommand.rb'

# Offense count: 1
RSpec/Be:
Exclude:
- 'spec/lib/fine/project_spec.rb'

# Offense count: 20
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
Exclude:
- 'spec/lib/fine/ant_spec.rb'
- 'spec/lib/fine/git_spec.rb'
- 'spec/lib/fine/kit_package_spec.rb'
- 'spec/lib/fine/kit_spec.rb'
- 'spec/lib/fine/maven_website_spec.rb'
- 'spec/lib/fine/mvn_spec.rb'
- 'spec/lib/fine/package_spec.rb'
- 'spec/lib/fine/pom_getter_spec.rb'
- 'spec/lib/fine/pom_spec.rb'
- 'spec/lib/fine/project_spec.rb'
- 'spec/lib/fine/tar_spec.rb'
- 'spec/lib/fine/unzip_spec.rb'
- 'spec/lib/fine/version_matcher_spec.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowConsecutiveOneLiners.
RSpec/EmptyLineAfterExample:
Exclude:
- 'spec/lib/fine/git_spec.rb'
- 'spec/lib/fine/kit_spec.rb'
- 'spec/lib/fine/maven_website_spec.rb'
- 'spec/lib/fine/project_spec.rb'

# Offense count: 35
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 40

# Offense count: 19
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: .
# SupportedStyles: implicit, each, example
RSpec/HookArgument:
EnforcedStyle: each

# Offense count: 141
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/lib/fine/ant_spec.rb'
- 'spec/lib/fine/git_spec.rb'
- 'spec/lib/fine/kit_package_spec.rb'
- 'spec/lib/fine/kit_spec.rb'
- 'spec/lib/fine/mvn_spec.rb'
- 'spec/lib/fine/package_spec.rb'
- 'spec/lib/fine/project_spec.rb'
- 'spec/lib/fine/scriptable_spec.rb'
- 'spec/lib/fine/speccable_spec.rb'

# Offense count: 1
RSpec/LeakyConstantDeclaration:
Exclude:
- 'spec/lib/fine/speccable_spec.rb'

# Offense count: 48
RSpec/MultipleExpectations:
Max: 18

# Offense count: 20
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
# SupportedStyles: inflected, explicit
RSpec/PredicateMatcher:
Exclude:
- 'spec/lib/fine/maven_website_spec.rb'
- 'spec/lib/fine/pom_getter_spec.rb'
- 'spec/lib/fine/project_spec.rb'

# Offense count: 15
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
# Include: **/*_spec.rb
RSpec/SpecFilePathFormat:
Exclude:
- '**/spec/routing/**/*'
- 'spec/lib/fine/ant_spec.rb'
- 'spec/lib/fine/git_spec.rb'
- 'spec/lib/fine/kit_package_spec.rb'
- 'spec/lib/fine/kit_spec.rb'
- 'spec/lib/fine/maven_website_spec.rb'
- 'spec/lib/fine/mvn_spec.rb'
- 'spec/lib/fine/package_spec.rb'
- 'spec/lib/fine/pom_getter_spec.rb'
- 'spec/lib/fine/pom_spec.rb'
- 'spec/lib/fine/project_spec.rb'
- 'spec/lib/fine/scriptable_spec.rb'
- 'spec/lib/fine/speccable_spec.rb'
- 'spec/lib/fine/tar_spec.rb'
- 'spec/lib/fine/unzip_spec.rb'
- 'spec/lib/fine/version_matcher_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Rake/Desc:
Exclude:
- 'Rakefile'

# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
Expand Down
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ GEM
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.37.0)
parser (>= 3.3.1.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (3.3.0)
rubocop (~> 1.61)
ruby-progressbar (1.13.0)
rubyzip (2.3.2)
simplecov (0.22.0)
Expand Down Expand Up @@ -138,6 +142,8 @@ DEPENDENCIES
rake (~> 13.2.0)
rspec (~> 3.13.0)
rubocop (~> 1.69.1)
rubocop-rake (~> 0.6.0)
rubocop-rspec (~> 3.3.0)
simplecov (~> 0.22.0)
tetra!

Expand Down
2 changes: 2 additions & 0 deletions tetra.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Gem::Specification.new do |s|
s.add_development_dependency "rake", "~> 13.2.0"
s.add_development_dependency "rspec", "~> 3.13.0"
s.add_development_dependency "rubocop", "~> 1.69.1"
s.add_development_dependency "rubocop-rake", "~> 0.6.0"
s.add_development_dependency "rubocop-rspec", "~> 3.3.0"

s.add_runtime_dependency "clamp", "~> 1.3.2"
s.add_runtime_dependency "erb", "~> 4.0.3"
Expand Down

0 comments on commit 20c8e69

Please sign in to comment.