-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move dev dependencies to Gemfile and fix versions (#15)
* Move dev dependencies to Gemfile and fix versions * Fix lint issue
- Loading branch information
1 parent
43dc98d
commit 900aa0d
Showing
9 changed files
with
76 additions
and
132 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 |
---|---|---|
|
@@ -17,3 +17,4 @@ node_modules/ | |
package.json | ||
spec/tmp/ | ||
yarn.lock | ||
bun.lockb |
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,100 +1,34 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.5 | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
inherit_mode: | ||
merge: | ||
- Exclude | ||
|
||
Layout/SpaceBeforeFirstArg: | ||
Exclude: | ||
|
||
Layout/SpaceAroundMethodCallOperator: | ||
Enabled: true | ||
|
||
Lint/AmbiguousBlockAssociation: | ||
Exclude: | ||
- spec/**/* | ||
require: | ||
- rubocop-rspec | ||
- rubocop-rake | ||
|
||
Lint/RaiseException: | ||
Enabled: true | ||
|
||
Lint/StructNewOverride: | ||
Enabled: true | ||
|
||
Metrics/AbcSize: | ||
# The ABC size is a calculated magnitude, so this number can be an Integer or | ||
# a Float. | ||
Max: 15 | ||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 2.7 | ||
|
||
Metrics/BlockLength: | ||
CountComments: false | ||
Max: 25 | ||
Naming/FileName: | ||
Exclude: | ||
- '*.gemspec' | ||
- config/**/* | ||
- spec/**/* | ||
ExcludedMethods: | ||
- class_methods | ||
|
||
Metrics/BlockNesting: | ||
Max: 4 | ||
|
||
Metrics/ClassLength: | ||
CountComments: false | ||
Max: 200 | ||
|
||
# Avoid complex methods. | ||
Metrics/CyclomaticComplexity: | ||
Max: 7 | ||
- 'lib/htmx-rails.rb' | ||
|
||
Metrics/MethodLength: | ||
CountComments: false | ||
Max: 24 | ||
|
||
Metrics/ModuleLength: | ||
CountComments: false | ||
Max: 200 | ||
|
||
Layout/LineLength: | ||
Max: 100 | ||
# To make it possible to copy or click on URIs in the code, we allow lines | ||
# containing a URI to be longer than Max. | ||
AllowURI: true | ||
URISchemes: | ||
- http | ||
- https | ||
|
||
Metrics/ParameterLists: | ||
Max: 5 | ||
CountKeywordArgs: true | ||
|
||
Metrics/PerceivedComplexity: | ||
Max: 12 | ||
|
||
Style/ExponentialNotation: | ||
Enabled: true | ||
Gemspec/RequireMFA: | ||
Enabled: false | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: true | ||
RSpec/BeforeAfterAll: | ||
Enabled: false | ||
|
||
Style/ModuleFunction: | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/RescueModifier: | ||
Exclude: | ||
- spec/**/* | ||
RSpec/FilePath: | ||
Enabled: false | ||
|
||
Naming/PredicateName: | ||
RSpec/SpecFilePathFormat: | ||
Enabled: false | ||
|
||
Naming/FileName: | ||
RSpec/AnyInstance: | ||
Exclude: | ||
- lib/htmx-rails.rb | ||
|
||
Style/HashEachMethods: | ||
Enabled: true | ||
|
||
Style/HashTransformKeys: | ||
Enabled: true | ||
|
||
Style/HashTransformValues: | ||
Enabled: true | ||
- 'spec/lib/generators/install_generator_spec.rb' |
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,4 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in htmx-rails.gemspec | ||
gemspec | ||
|
||
gem 'generator_spec', '~> 0.9.4' | ||
gem 'psych', '>= 5.1.1.1' # pinned due to https://github.com/ruby/psych/issues/655 | ||
gem 'rake', '~> 13.1' | ||
gem 'reek', '~> 6.1' | ||
gem 'rspec', '~> 3.12' | ||
gem 'rubocop', '~> 1.57' | ||
gem 'rubocop-rake', '~> 0.6' | ||
gem 'rubocop-rspec', '~> 2.25' | ||
gem 'simplecov', '~> 0.17.1' |
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,4 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/setup' | ||
require 'htmx/rails' | ||
|
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
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