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: - run:
name: Run rubocop name: Run rubocop
command: bundle exec rubocop -R command: bundle exec rubocop -R
- run:
name: Run brakeman
command: bundle exec brakeman -z
- run: - run:
name: Run haml-lint name: Run haml-lint
command: bundle exec haml-lint app/views/ command: bundle exec haml-lint app/views/

View file

@ -126,6 +126,7 @@ group :test do
end end
group :development do group :development do
gem 'brakeman', require: false
# Access an IRB console on exception pages or by using <%= console %> in views # Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console' gem 'web-console'
gem 'rack-handlers' gem 'rack-handlers'

View file

@ -91,6 +91,7 @@ GEM
sass (>= 3.3.4) sass (>= 3.3.4)
bootstrap-wysihtml5-rails (0.3.3.8) bootstrap-wysihtml5-rails (0.3.3.8)
railties (>= 3.0) railties (>= 3.0)
brakeman (3.7.0)
browser (2.3.0) browser (2.3.0)
builder (3.2.3) builder (3.2.3)
byebug (9.0.6) byebug (9.0.6)
@ -682,6 +683,7 @@ DEPENDENCIES
bootstrap-datepicker-rails bootstrap-datepicker-rails
bootstrap-sass (~> 3.3.5) bootstrap-sass (~> 3.3.5)
bootstrap-wysihtml5-rails (~> 0.3.3.8) bootstrap-wysihtml5-rails (~> 0.3.3.8)
brakeman
browser browser
byebug byebug
capybara capybara

View file

@ -73,7 +73,8 @@ Pour exécuter les tests de l'application, plusieurs possibilités :
## Linting ## 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 HAML : `bundle exec haml-lint app/views/`
- Linter les fichiers SCSS : `bundle exec scss-lint app/assets/stylesheets/` - Linter les fichiers SCSS : `bundle exec scss-lint app/assets/stylesheets/`