Skip to content

Commit 2ee0cb1

Browse files
committed
Update rubocop.yml to include standardrb base config
1 parent 6848fd8 commit 2ee0cb1

File tree

4 files changed

+35
-6
lines changed

4 files changed

+35
-6
lines changed

.github/workflows/ruby_lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ jobs:
3131
bundler-cache: true
3232

3333
- name: lint
34-
run: bundle exec standardrb
34+
working-directory: /home/runner/work/casa/casa/
35+
run: bin/standardrb

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require:
2+
- standard
23
- rubocop-factory_bot
34

45
plugins:

Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,18 +525,18 @@ GEM
525525
rswag-ui (2.16.0)
526526
actionpack (>= 5.2, < 8.1)
527527
railties (>= 5.2, < 8.1)
528-
rubocop (1.75.8)
528+
rubocop (1.80.2)
529529
json (~> 2.3)
530530
language_server-protocol (~> 3.17.0.2)
531531
lint_roller (~> 1.1.0)
532532
parallel (~> 1.10)
533533
parser (>= 3.3.0.2)
534534
rainbow (>= 2.2.2, < 4.0)
535535
regexp_parser (>= 2.9.3, < 3.0)
536-
rubocop-ast (>= 1.44.0, < 2.0)
536+
rubocop-ast (>= 1.46.0, < 2.0)
537537
ruby-progressbar (~> 1.7)
538538
unicode-display_width (>= 2.4.0, < 4.0)
539-
rubocop-ast (1.45.1)
539+
rubocop-ast (1.46.0)
540540
parser (>= 3.3.7.2)
541541
prism (~> 1.4)
542542
rubocop-capybara (2.22.1)
@@ -612,10 +612,10 @@ GEM
612612
actionpack (>= 6.1)
613613
activesupport (>= 6.1)
614614
sprockets (>= 3.0.0)
615-
standard (1.50.0)
615+
standard (1.51.1)
616616
language_server-protocol (~> 3.17.0.2)
617617
lint_roller (~> 1.0)
618-
rubocop (~> 1.75.5)
618+
rubocop (~> 1.80.2)
619619
standard-custom (~> 1.0.0)
620620
standard-performance (~> 1.8)
621621
standard-custom (1.0.2)

bin/standardrb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'standardrb' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12+
13+
bundle_binstub = File.expand_path("bundle", __dir__)
14+
15+
if File.file?(bundle_binstub)
16+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
17+
load(bundle_binstub)
18+
else
19+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21+
end
22+
end
23+
24+
require "rubygems"
25+
require "bundler/setup"
26+
27+
load Gem.bin_path("standard", "standardrb")

0 commit comments

Comments
 (0)