alphagov / smart-answers

Serves smart answers on GOV.UK
https://docs.publishing.service.gov.uk/apps/smart-answers.html
MIT License
176 stars 120 forks source link

Erb lint update #6870

Closed ellohez closed 2 months ago

ellohez commented 2 months ago

Currently in most(may be all) of our app there is no linting mechanism for erb files. We want some way of linting erb files and hence we have introduced erb_lint gem for the same.

The changes in this PR allows us to have a workflow to run erb lint. All the files that have been linted after running erblint.

When we run the command 'erblint --lint-all' it uses the default '.erb_lint.yml' file inside the project to apply any custom rules.

Trello Card

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.