Skip to content

Commit

Permalink
Linting and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Bartels committed Nov 15, 2023
1 parent 1c93338 commit 57b6e0b
Show file tree
Hide file tree
Showing 5 changed files with 442 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
bundler-cache: true
# Add or replace any other lints here
- name: Security audit dependencies
run: bin/bundler-audit --update
run: bundle exec bundler-audit --update
- name: Security audit application code
run: bin/brakeman -q -w2
run: bundle exec brakeman -q -w2
- name: Lint Ruby files
run: bin/rubocop --parallel
run: bundle exec rubocop --parallel
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
inherit_gem:
rubocop-rails_config:
- config/rails.yml
require:
- rubocop-rails
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,17 @@ group :test do
end

gem 'bootstrap', '~> 4.3.1'
gem 'brakeman'
gem 'bundler-audit'
gem 'devise'
gem 'devise-jwt'
gem 'haml'
gem 'haml-rails'
gem 'jquery-rails'
gem 'kaminari'
gem 'redis-session-store'
gem 'rubocop', require: false
gem 'rubocop-rails', require: false
gem 'rubocop-rails_config'
gem 'sass-rails'
gem 'simple_form', '~> 5.1.0'
53 changes: 53 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ GEM
tzinfo (~> 2.0)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
autoprefixer-rails (10.4.15.0)
execjs (~> 2)
base64 (0.2.0)
Expand All @@ -89,7 +90,11 @@ GEM
autoprefixer-rails (>= 9.1.0)
popper_js (>= 1.14.3, < 2)
sassc-rails (>= 2.0.0)
brakeman (6.0.1)
builder (3.2.4)
bundler-audit (0.9.1)
bundler (>= 1.2.0, < 3)
thor (~> 1.0)
capybara (3.39.2)
addressable
matrix
Expand Down Expand Up @@ -157,6 +162,7 @@ GEM
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.6.3)
jwt (2.7.1)
kaminari (1.2.2)
activesupport (>= 4.1.0)
Expand All @@ -170,6 +176,7 @@ GEM
activerecord
kaminari-core (= 1.2.2)
kaminari-core (1.2.2)
language_server-protocol (3.17.0.3)
loofah (2.21.4)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand Down Expand Up @@ -197,6 +204,10 @@ GEM
nokogiri (1.15.4-x86_64-linux)
racc (~> 1.4)
orm_adapter (0.5.0)
parallel (1.23.0)
parser (3.2.2.4)
ast (~> 2.4.1)
racc
pg (1.5.4)
popper_js (1.16.1)
psych (5.1.1.1)
Expand Down Expand Up @@ -242,6 +253,7 @@ GEM
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.1.0)
rdoc (6.6.0)
psych (>= 4.0.0)
Expand All @@ -259,6 +271,41 @@ GEM
actionpack (>= 5.2)
railties (>= 5.2)
rexml (3.2.6)
rubocop (1.57.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-md (1.2.1)
rubocop (>= 1.0)
rubocop-minitest (0.33.0)
rubocop (>= 1.39, < 2.0)
rubocop-packaging (0.5.2)
rubocop (>= 1.33, < 2.0)
rubocop-performance (1.19.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.22.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-rails_config (1.16.0)
rubocop (>= 1.57.0)
rubocop-ast (>= 1.26.0)
rubocop-md
rubocop-minitest (~> 0.22)
rubocop-packaging (~> 0.5)
rubocop-performance (~> 1.11)
rubocop-rails (~> 2.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
sass-rails (6.0.0)
Expand Down Expand Up @@ -298,6 +345,7 @@ GEM
railties (>= 6.0.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
warden (1.2.9)
rack (>= 2.0.9)
warden-jwt_auth (0.8.0)
Expand Down Expand Up @@ -326,6 +374,8 @@ DEPENDENCIES
bcrypt (~> 3.1.7)
bootsnap
bootstrap (~> 4.3.1)
brakeman
bundler-audit
capybara
debug
devise
Expand All @@ -341,6 +391,9 @@ DEPENDENCIES
rails (~> 7.1.2)
redis (>= 4.0.1)
redis-session-store
rubocop
rubocop-rails
rubocop-rails_config
sass-rails
selenium-webdriver
simple_form (~> 5.1.0)
Expand Down
Loading

0 comments on commit 57b6e0b

Please sign in to comment.