macisamuele / language-formatters-pre-commit-hooks

Collection of custom pre-commit hooks.
Apache License 2.0
112 stars 56 forks source link

Add support for ktfmt #196

Closed 0x26res closed 7 months ago

0x26res commented 7 months ago

Here's the help for ktfmt:

$ java -jar ./ktfmt-0.46-jar-with-dependencies.jar  --help
Usage: ktfmt [--dropbox-style | --google-style | --kotlinlang-style] [--dry-run] [--set-exit-if-changed] [--stdin-name=<name>] [--do-not-remove-unused-imports] File1.kt File2.kt ...

Some notes:

0x26res commented 7 months ago

Thanks for the feedback and spending the time to explain everything.

👍

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (23ad93b) 100.00% compared to head (9c2d33a) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #196 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 10 10 Lines 317 333 +16 ========================================= + Hits 317 333 +16 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

0x26res commented 7 months ago

@macisamuele I was trying to test locally and realized I was missing a data file. See my PR: https://github.com/macisamuele/language-formatters-pre-commit-hooks/pull/199