Kakadu / zanuda

OCaml linter
GNU Lesser General Public License v3.0
63 stars 8 forks source link

Module for auto-correction of lints #37

Closed Artem-Rzhankoff closed 8 months ago

Artem-Rzhankoff commented 9 months ago

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: