Hacktoberfest / hacktoberfest-2020

Hacktoberfest - App to manage the annual open-source challenge, used for the 2019 & 2020 seasons.
https://hacktoberfest.digitalocean.com
Other
496 stars 147 forks source link

feat: Add lint workflow for ERB files. #658

Closed naomi-lgbt closed 3 years ago

naomi-lgbt commented 3 years ago

Description

This PR adds a .erb lint step to the lint workflow, using the erb-lint gem. Currently I use the default configuration, which generates 1122 linter errors. I've left this PR in a draft state to get feedback on the preferred ruleset before pulling in fixes for the errors.

The default ruleset is: image

Each rule can be enabled/disabled individually, so I am hoping for guidance on which rules should be applied.

Test process

I ran the lint command that I added to the lint.yml workflow file manually, and verified that it hit the intended files and yielded results. I also verified that the script/tests still worked correctly.

The commands were all run in an Ubuntu shell for the WSL service, because Windows doesn't play well with Ruby natively.

Requirements to merge