Skip to content

Commit

Permalink
Update rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
brunto committed Jan 24, 2024
1 parent 4c4a0c7 commit 4be0e08
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI

on: [push, pull_request]
on:
pull_request:
branches: [ 'master' ]

jobs:
test:
Expand Down Expand Up @@ -54,7 +56,7 @@ jobs:
run: bin/bundler-audit --update

- name: Security audit application code
run: bin/brakeman -q -w3
run: bin/brakeman

- name: Lint Ruby files
run: bundle exec rubocop --parallel
run: bin/rubocop
13 changes: 5 additions & 8 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
require: rubocop-rails
Style/FrozenStringLiteralComment:
Enabled: false
Style/Documentation:
Enabled: false
Layout/LineLength:
Max: 140
EnforcedShorthandSyntax: never
# Omakase Ruby styling for Rails
inherit_gem:
rubocop-rails-omakase: rubocop.yml

# Your own specialized rules go here
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
gem "rubocop-rails-omakase", require: false, group: [ :development ]
12 changes: 12 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,22 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-minitest (0.34.5)
rubocop (>= 1.39, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-performance (1.20.2)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-rails (2.23.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-rails-omakase (1.0.0)
rubocop
rubocop-minitest
rubocop-performance
rubocop-rails
ruby-progressbar (1.13.0)
ruby-vips (2.2.0)
ffi (~> 1.12)
Expand Down Expand Up @@ -280,6 +291,7 @@ DEPENDENCIES
rails-i18n
rubocop
rubocop-rails
rubocop-rails-omakase
tzinfo-data

RUBY VERSION
Expand Down

0 comments on commit 4be0e08

Please sign in to comment.