Merge pull request #619 from sgmap/brakeman

Brakeman
This commit is contained in:
LeSim 2017-07-21 09:39:32 +02:00 committed by GitHub
commit afae7478f5
4 changed files with 8 additions and 1 deletions

View file

@ -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/

View file

@ -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'

View file

@ -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

View file

@ -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/`