Allows you to apply certain fixes to the project's source code. Unfortunately, dune doesn't support patch promotion, so in this version it is done using a generated script. After the fix, comments are also saved (doesn't support nested comments) .
After running the linter, you can see all the generated files with corrections in a separate directory fix_gen/ located in the root of the project. You can also view all applied fixes in fix_gen/diffs.log.
The patching srcipt is in fix_gen/promote.sh. You can run it with zanuda -fix . or do it manually.
Currently fix supported for three types of lints:
Allows you to apply certain fixes to the project's source code. Unfortunately, dune doesn't support patch promotion, so in this version it is done using a generated script. After the fix, comments are also saved (doesn't support nested comments) . After running the linter, you can see all the generated files with corrections in a separate directory
fix_gen/
located in the root of the project. You can also view all applied fixes infix_gen/diffs.log
. The patching srcipt is infix_gen/promote.sh
. You can run it withzanuda -fix .
or do it manually. Currently fix supported for three types of lints: