language-formatters-pre-commit-hooks icon indicating copy to clipboard operation
language-formatters-pre-commit-hooks copied to clipboard

Collection of custom pre-commit hooks.

Results 16 language-formatters-pre-commit-hooks issues
Sort by recently updated
recently updated
newest added

Bump KTLint and/or Google Java Formatter *Auto-generated* by [bump-releases](https://github.com/macisamuele/language-formatters-pre-commit-hooks/actions/workflows/bump-releases.yaml)

Ktlint is quite verbose currently, and its non-changeable. Fix this by adding a "--verbose" argument to the pre-commit hook.

Hi @macisamuele Appreciate your great work! I wonder if there is a way to format arrays in .toml using `pretty-format-toml`. ``` [array] array1 = [1, 2, 3, 4, 5, 6,...

So I have for example this file: ```yaml val1: adsf val2: [ 1, 2, # comment 3, 4, ] ``` but when the formatter runs, I get this output: ```yaml...

**Reasoning** Some of the companies have strict rules in terms of downloading binaries from external storages. In this case `jar` file is downloaded from external storage which is prohibited in...

When reformatting a list setting like ```toml load-plugins = [ "pylint.extensions.bad_builtin", # "pylint.extensions.docparams", "pylint.extensions.set_membership" # "pylint.extensions.typing" ] ``` , the first comment is retained, but the second one is removed....

`cargo fmt` has support to `--manifest-path` argument, that can be used for passing `Config.toml` location. It can be used in this way: `cargo fmt --manifest-path my/subdir/Cargo.toml -- --check`. It is...

Based on your https://github.com/macisamuele/language-formatters-pre-commit-hooks/issues/185#issuecomment-1751803889 I have now created a pull request to add this option. What is the reason for the flag: I use the [Even Better TOML](https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml) VSCode extension...

When using the lib with nested tables, the script (`pretty-format-toml`) incorrectly overrides keys of adjacent tables. E.g. (this was in a `Cargo.toml`), see `>>` for effected entries ## preformatted ```toml...

At the moment the `pretty-format-kotlin` hook uses ktlint. ktfmt is another popular code formatter for koltin. It would be good if there was an extra hook in this repo (eg...