commit
96e9d657de
5 changed files with 10 additions and 1 deletions
|
@ -53,6 +53,9 @@ jobs:
|
||||||
command: |
|
command: |
|
||||||
TESTFILES=$(circleci tests glob "spec/**/*.rb"| xargs -n 1 echo | grep -v "spec/factories/" | tr " " "\n" | circleci tests split --split-by=timings)
|
TESTFILES=$(circleci tests glob "spec/**/*.rb"| xargs -n 1 echo | grep -v "spec/factories/" | tr " " "\n" | circleci tests split --split-by=timings)
|
||||||
bundle exec rspec --color --require spec_helper -- ${TESTFILES}
|
bundle exec rspec --color --require spec_helper -- ${TESTFILES}
|
||||||
|
- run:
|
||||||
|
name: Run rubocop
|
||||||
|
command: bundle exec rubocop
|
||||||
- run:
|
- run:
|
||||||
name: Run haml-lint
|
name: Run haml-lint
|
||||||
command: bundle exec haml-lint app/views/
|
command: bundle exec haml-lint app/views/
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
AllCops:
|
||||||
|
Exclude:
|
||||||
|
- "db/schema.rb"
|
||||||
|
|
||||||
Bundler/DuplicatedGem:
|
Bundler/DuplicatedGem:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
@ -74,7 +78,6 @@ Layout/ExtraSpacing:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Guardfile"
|
- "Guardfile"
|
||||||
- "db/schema.rb"
|
|
||||||
|
|
||||||
Layout/FirstArrayElementLineBreak:
|
Layout/FirstArrayElementLineBreak:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
1
Gemfile
1
Gemfile
|
@ -122,6 +122,7 @@ group :development do
|
||||||
gem 'web-console'
|
gem 'web-console'
|
||||||
gem 'rack-handlers'
|
gem 'rack-handlers'
|
||||||
gem 'xray-rails'
|
gem 'xray-rails'
|
||||||
|
gem 'rubocop', require: false
|
||||||
gem 'haml-lint'
|
gem 'haml-lint'
|
||||||
gem 'scss_lint', require: false
|
gem 'scss_lint', require: false
|
||||||
end
|
end
|
||||||
|
|
|
@ -714,6 +714,7 @@ DEPENDENCIES
|
||||||
rest-client
|
rest-client
|
||||||
rgeo-geojson
|
rgeo-geojson
|
||||||
rspec-rails (~> 3.0)
|
rspec-rails (~> 3.0)
|
||||||
|
rubocop
|
||||||
sass-rails (~> 5.0)
|
sass-rails (~> 5.0)
|
||||||
scenic
|
scenic
|
||||||
scss_lint
|
scss_lint
|
||||||
|
|
|
@ -73,6 +73,7 @@ Pour exécuter les tests de l'application, plusieurs possibilités :
|
||||||
|
|
||||||
## Linting
|
## Linting
|
||||||
|
|
||||||
|
- Faire tourner RuboCop : `bundle exec rubocop`
|
||||||
- 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/`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue