commit
afae7478f5
4 changed files with 8 additions and 1 deletions
|
@ -57,6 +57,9 @@ jobs:
|
|||
- run:
|
||||
name: Run rubocop
|
||||
command: bundle exec rubocop -R
|
||||
- run:
|
||||
name: Run brakeman
|
||||
command: bundle exec brakeman -z
|
||||
- run:
|
||||
name: Run haml-lint
|
||||
command: bundle exec haml-lint app/views/
|
||||
|
|
1
Gemfile
1
Gemfile
|
@ -126,6 +126,7 @@ group :test do
|
|||
end
|
||||
|
||||
group :development do
|
||||
gem 'brakeman', require: false
|
||||
# Access an IRB console on exception pages or by using <%= console %> in views
|
||||
gem 'web-console'
|
||||
gem 'rack-handlers'
|
||||
|
|
|
@ -91,6 +91,7 @@ GEM
|
|||
sass (>= 3.3.4)
|
||||
bootstrap-wysihtml5-rails (0.3.3.8)
|
||||
railties (>= 3.0)
|
||||
brakeman (3.7.0)
|
||||
browser (2.3.0)
|
||||
builder (3.2.3)
|
||||
byebug (9.0.6)
|
||||
|
@ -682,6 +683,7 @@ DEPENDENCIES
|
|||
bootstrap-datepicker-rails
|
||||
bootstrap-sass (~> 3.3.5)
|
||||
bootstrap-wysihtml5-rails (~> 0.3.3.8)
|
||||
brakeman
|
||||
browser
|
||||
byebug
|
||||
capybara
|
||||
|
|
|
@ -73,7 +73,8 @@ Pour exécuter les tests de l'application, plusieurs possibilités :
|
|||
|
||||
## Linting
|
||||
|
||||
- Faire tourner RuboCop : `bundle exec rubocop`
|
||||
- Faire tourner RuboCop : `bundle exec rubocop -R`
|
||||
- Faire tourner Brakeman : `bundle exec brakeman -z`
|
||||
- Linter les fichiers HAML : `bundle exec haml-lint app/views/`
|
||||
- Linter les fichiers SCSS : `bundle exec scss-lint app/assets/stylesheets/`
|
||||
|
||||
|
|
Loading…
Reference in a new issue