-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add fix command #152
Add fix command #152
Conversation
@byshy please pull changes |
Done |
As a quick note, before publishing the changes to pub get, we should run the dart formatter on the changed files (in this PR and the 3 before) since I have custom rules on my IDE to set the length of the dart line to 130, it should be 80, so we should run that then publish |
- Add jsonReportPath to the fix command - Add unit test to the fix command
Notes handled, I'm available for new notes if any 🙏 |
…st instead of firstOrNull to be picked by the linter
Amazing!! |
@byshy yes of course, https://linkedin.com/in/santiago-garcia-gil-742b38252/ |
Invitation sent |
Like the analyze command, I added a fix command that utilizes the replacement defined inside each rule to automatically replace the fixes
You can run the command on the example/lib and it will identify the 3 issues it has in the
main.dart
file, and fix only 1 (which has the replacement defined)