-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature: Implement automatic fix for roots with different contract name #60
Comments
Adding a bit more of color on the work needed here: Violations can be fixable, meaning there may be a sequence of steps to fix them by In that specific issue, two roots in the same Two changes are needed to implement this: first, making the violations fixable because they aren't by default, and then implementing the actual fix so that when we run |
I'm currently in a campaign to implement systematic use of Bulloak within my org, and one thing we now do to have an "easy" CI/nice dev ex is to use the suffix "Enforcing" tree root == name of the tested contract would break this then (I know, we could then match the glob path instead, but it's less straightforward/dev friendly imo). Anecdotical report tho, I don't know if others are doing something similar. |
Let's goooo 🚀 Please share all the feedback you have, happy to help with this.
Hehe, use case for a bulloak.toml with [lints]
matching_contract_names = "allow" Thanks for bringing this up. |
For the above tree, we get the following message when running
bulloak check
:We should make the violation fixable and implement the auto fix.
The text was updated successfully, but these errors were encountered: