Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blog/2021/hide-your-lint-errors/ #399

Open
utterances-bot opened this issue Mar 9, 2021 · 1 comment
Open

blog/2021/hide-your-lint-errors/ #399

utterances-bot opened this issue Mar 9, 2021 · 1 comment
Labels

Comments

@utterances-bot
Copy link

Hide Your Lint Errors | Hunting the Shmoo

https://ahal.ca/blog/2021/hide-your-lint-errors/

Copy link
Owner

ahal commented Mar 9, 2021

Personally I prefer just having the errors displayed and fixing them myself, but if you're inclined you can also use --fix with this setup. Though you'll need to add / commit the changes that get automatically fixed. There may also be issues that couldn't be fixed which you'll still need to update manually. Try something like:

alias review="mach lint -o --fix && hg absorb && moz-phab submit"  # hg (with absorb extension enabled)
alias review="mach lint -o --fix && git commit -a --amend -CHEAD && moz-phab submit"  # git

Please note above is untested and the git variant will commit all your changes in the top-most commit rather than the commit that introduced the error. I'm unsure if git has functionality similar to hg absorb or not.

@ahal ahal added the comment label Mar 9, 2021 — with utterances
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants