0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00
Commit Graph

5 Commits

Author SHA1 Message Date
Tharun K
e27213356d
chore(lint, javascript): added prettier check (#10500)
* feat(prettier-check): added .prettierrc + workflow
* feat(prettier-check): ran prettier + .prettierignore
* feat(prettier-check): check if npx is installed

pre-commit now skips Prettier check if `npx` is not present.
2022-03-14 15:09:16 -05:00
Piyush Goel
6b8565f597 Optimizing pre-commit hook. 2021-10-23 15:21:16 -05:00
Shridhar Goel
9c502641a8 Prevent Ktlint pre-commit hook failure in case of deleted files 2021-10-18 09:20:18 -05:00
David Allison
aa062db4e0 fix: Remove noise from ktLintformat output
A user would struggle to determine what the error was if `ktLintFormat`
failed

`-q` (error only) is overkill as it removes useful output,
but there is a large amount of warnings in the current
version of the ktLint plugin

GitHub ref: JLLeitschuh/ktlint-gradle/issues/457

This can be converted to `-w` (warnings only) afterwards

A typical error is:

```
 KtLint found code style violations. Please see the following reports:
     - C:\\...\ktlintTestSourceSetFormat\ktlintTestSourceSetFormat.txt
```

After adding `-w`, we'd also get the more useful:

```
CriticalExceptionTest.kt:19:1 Wildcard import (cannot be auto-corrected)
```

https://docs.gradle.org/current/userguide/command_line_interface.html#sec:command_line_logging

Fixes #9093
2021-06-11 10:53:48 -05:00
Shridhar
37074421a0 Add Ktlint pre-commit hook 2021-06-01 11:19:32 -05:00