Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/e-navigator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ jobs:
- name: Run Brakeman
working-directory: ./ruby-on-rails/e-navigator
run: bundle exec brakeman --no-pager
- name: Run RuboCop
working-directory: ./ruby-on-rails/e-navigator
run: bundle exec rubocop
3 changes: 3 additions & 0 deletions .github/workflows/perfect-ruby-on-rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ jobs:
- name: Run Brakeman
working-directory: ./ruby-on-rails/perfect-ruby-on-rails
run: bundle exec brakeman --no-pager
- name: Run RuboCop
working-directory: ./ruby-on-rails/perfect-ruby-on-rails
run: bundle exec rubocop
3 changes: 3 additions & 0 deletions .github/workflows/restful-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,6 @@ jobs:
- name: Run Brakeman
working-directory: ./ruby-on-rails/restful-api
run: bundle exec brakeman --no-pager
- name: Run RuboCop
working-directory: ./ruby-on-rails/restful-api
run: bundle exec rubocop
15 changes: 15 additions & 0 deletions ruby-on-rails/e-navigator/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Reference: https://github.com/rubocop/ruby-style-guide

require:
- rubocop-minitest
- rubocop-performance
- rubocop-rails

AllCops:
TargetRubyVersion: 4.0
NewCops: enable
Exclude:
- 'bin/**/*'
- 'db/schema.rb'
- 'vendor/**/*'
- 'node_modules/**/*'
5 changes: 5 additions & 0 deletions ruby-on-rails/e-navigator/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ group :development do
gem 'web-console', '~> 4.3.0'
# Static code analysis for security vulnerabilities
gem 'brakeman', '~> 8.0.4', require: false
# RuboCop
gem 'rubocop', require: false
gem 'rubocop-minitest', require: false
gem 'rubocop-performance', require: false
gem 'rubocop-rails', require: false

# Provides methods for benchmarking Ruby code, giving detailed reports on the time taken for each task
gem 'benchmark', '~> 0.5.0'
Expand Down
15 changes: 15 additions & 0 deletions ruby-on-rails/perfect-ruby-on-rails/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Reference: https://github.com/rubocop/ruby-style-guide

require:
- rubocop-minitest
- rubocop-performance
- rubocop-rails

AllCops:
TargetRubyVersion: 4.0
NewCops: enable
Exclude:
- 'bin/**/*'
- 'db/schema.rb'
- 'vendor/**/*'
- 'node_modules/**/*'
5 changes: 5 additions & 0 deletions ruby-on-rails/perfect-ruby-on-rails/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ group :development do
gem 'web-console', '~> 4.3.0'
# Static code analysis for security vulnerabilities
gem 'brakeman', '~> 8.0.4', require: false
# RuboCop
gem 'rubocop', require: false
gem 'rubocop-minitest', require: false
gem 'rubocop-performance', require: false
gem 'rubocop-rails', require: false

# Provides methods for benchmarking Ruby code, giving detailed reports on the time taken for each task
gem 'benchmark', '~> 0.5.0'
Expand Down
15 changes: 15 additions & 0 deletions ruby-on-rails/restful-api/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Reference: https://github.com/rubocop/ruby-style-guide

require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec

AllCops:
TargetRubyVersion: 4.0
NewCops: enable
Exclude:
- 'bin/**/*'
- 'db/schema.rb'
- 'vendor/**/*'
- 'node_modules/**/*'
5 changes: 5 additions & 0 deletions ruby-on-rails/restful-api/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ end

group :development do
gem 'brakeman', '~> 8.0.4', require: false
# RuboCop
gem 'rubocop', require: false
gem 'rubocop-performance', require: false
gem 'rubocop-rails', require: false
gem 'rubocop-rspec', require: false
end

group :test do
Expand Down
Loading