Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diktat errors. #187

Open
includealex opened this issue Oct 1, 2022 · 0 comments
Open

Diktat errors. #187

includealex opened this issue Oct 1, 2022 · 0 comments

Comments

@includealex
Copy link
Member

A new tool had been added to this project. Running

mvn diktat:check@diktat

will throw an amount of errors.
For running a single program, some binaries should be downloaded:

curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.46.1/ktlint && chmod a+x ktlint
curl -sSLO https://github.com/saveourtool/diKTat/releases/download/v1.2.3/diktat-1.2.3.jar

and then

./ktlint -R diktat-1.2.3.jar --disabled_rules=standard "path/to/your/file"

For instance,

./ktlint -R diktat-1.2.3.jar --disabled_rules=standard "src/main/kotlin/org/polystat/j2eo/translator/Declarations.kt"

We need to add diktat checker to CI, so all conflicts should be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant