Skip to content

Commit

Permalink
setup linter (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Griffith <[email protected]>
  • Loading branch information
devinburnette and smudge authored Apr 30, 2024
1 parent 71eb991 commit 17fd550
Show file tree
Hide file tree
Showing 26 changed files with 593 additions and 134 deletions.
21 changes: 21 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
inherit_gem:
betterlint:
- config/default.yml

inherit_mode:
merge:
- Exclude

AllCops:
TargetRubyVersion: 3.0
NewCops: enable

Rails/EnvironmentVariableAccess:
Enabled: false

RSpec/IndexedLet:
Enabled: false

Style/FrozenStringLiteralComment:
Exclude:
- 'gemfiles/*'
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.3
2 changes: 2 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

appraise 'rspec-3.9' do
gem 'rspec', '~> 3.9.0'
end
Expand Down
8 changes: 7 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# frozen_string_literal: true

source 'https://rubygems.org'

# Specify your gem's dependencies in rspec-fortify.gemspec
gemspec

gem 'appraisal'
gem 'betterlint'
gem 'rspec'
gem 'tty-command'
6 changes: 4 additions & 2 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
guard 'rspec', :version => 2, :cli => '-c -f d' do
# frozen_string_literal: true

guard 'rspec', version: 2, cli: '-c -f d' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
watch('spec/spec_helper.rb') { 'spec' }
end
13 changes: 6 additions & 7 deletions Rakefile
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/usr/bin/env rake
# frozen_string_literal: true

require 'bundler/setup'
require "bundler/gem_tasks"
require 'bundler/gem_tasks'

begin
require 'rspec/core/rake_task'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)
RSpec::Core::RakeTask.new(:spec)

task :default => :spec
rescue LoadError
end
task default: :spec
5 changes: 5 additions & 0 deletions gemfiles/rspec_3.10.gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "betterlint"
gem "rspec", "~> 3.10.0"
gem "tty-command"

gemspec path: "../"
76 changes: 76 additions & 0 deletions gemfiles/rspec_3.10.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,51 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activesupport (7.1.3.2)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
base64 (0.2.0)
betterlint (1.10.1)
rubocop (~> 1.62.0)
rubocop-performance (~> 1.21.0)
rubocop-rails (~> 2.24.0)
rubocop-rake (~> 0.6.0)
rubocop-rspec (~> 2.28.0)
bigdecimal (3.1.7)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
diff-lcs (1.5.1)
drb (2.2.1)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
json (2.7.2)
language_server-protocol (3.17.0.3)
minitest (5.22.3)
mutex_m (0.2.0)
parallel (1.24.0)
parser (3.3.1.0)
ast (~> 2.4.1)
racc
pastel (0.8.0)
tty-color (~> 0.5)
racc (1.7.3)
rack (3.0.10)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
Expand All @@ -28,17 +65,56 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.3)
rubocop (1.62.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-performance (1.21.0)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.24.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.28.0)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
rubocop-rspec_rails (~> 2.28)
rubocop-rspec_rails (2.28.3)
rubocop (~> 1.40)
ruby-progressbar (1.13.0)
thor (1.3.1)
tty-color (0.6.0)
tty-command (0.10.1)
pastel (~> 0.8)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)

PLATFORMS
arm64-darwin-22
ruby

DEPENDENCIES
appraisal
betterlint
rspec (~> 3.10.0)
rspec-fortify!
tty-command
Expand Down
5 changes: 5 additions & 0 deletions gemfiles/rspec_3.11.gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "betterlint"
gem "rspec", "~> 3.11.0"
gem "tty-command"

gemspec path: "../"
76 changes: 76 additions & 0 deletions gemfiles/rspec_3.11.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,51 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activesupport (7.1.3.2)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
base64 (0.2.0)
betterlint (1.10.1)
rubocop (~> 1.62.0)
rubocop-performance (~> 1.21.0)
rubocop-rails (~> 2.24.0)
rubocop-rake (~> 0.6.0)
rubocop-rspec (~> 2.28.0)
bigdecimal (3.1.7)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
diff-lcs (1.5.1)
drb (2.2.1)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
json (2.7.2)
language_server-protocol (3.17.0.3)
minitest (5.22.3)
mutex_m (0.2.0)
parallel (1.24.0)
parser (3.3.1.0)
ast (~> 2.4.1)
racc
pastel (0.8.0)
tty-color (~> 0.5)
racc (1.7.3)
rack (3.0.10)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
Expand All @@ -28,17 +65,56 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.1)
rubocop (1.62.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-performance (1.21.0)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.24.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.28.0)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
rubocop-rspec_rails (~> 2.28)
rubocop-rspec_rails (2.28.3)
rubocop (~> 1.40)
ruby-progressbar (1.13.0)
thor (1.3.1)
tty-color (0.6.0)
tty-command (0.10.1)
pastel (~> 0.8)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)

PLATFORMS
arm64-darwin-22
ruby

DEPENDENCIES
appraisal
betterlint
rspec (~> 3.11.0)
rspec-fortify!
tty-command
Expand Down
5 changes: 5 additions & 0 deletions gemfiles/rspec_3.12.gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "betterlint"
gem "rspec", "~> 3.12.0"
gem "tty-command"

gemspec path: "../"
Loading

0 comments on commit 17fd550

Please sign in to comment.