Merge pull request #8084 from colinux/view-components-haml-lint
linters: enable haml-lint for View components
This commit is contained in:
commit
d1de20e628
7 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
%span.fill-duration{ id: dom_id(@revision, :estimated_fill_duration) }
|
||||
- if show?
|
||||
= t('.estimated_fill_duration')
|
||||
= link_to "https://doc.demarches-simplifiees.fr/tutoriels/tutoriel-administrateur#g.-estimation-de-la-duree-de-remplissage", target: "_blank", rel: "noopener noreferrer" do
|
||||
= link_to "#{DOC_URL}/tutoriels/tutoriel-administrateur#g.-estimation-de-la-duree-de-remplissage", target: "_blank", rel: "noopener noreferrer" do
|
||||
= t('.estimated_fill_minutes', estimated_minutes: estimated_fill_duration_minutes)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
task :lint do
|
||||
sh "bundle exec rubocop --parallel"
|
||||
sh "bundle exec haml-lint app/views/"
|
||||
sh "bundle exec haml-lint app/views/ app/components/"
|
||||
sh "bundle exec scss-lint app/assets/stylesheets/"
|
||||
sh "bundle exec i18n-tasks missing --locales fr"
|
||||
sh "bundle exec i18n-tasks unused --locale en" # TODO: check for all locales
|
||||
|
|
Loading…
Add table
Reference in a new issue