Skip to content

Diktat errors. #187

@includealex

Description

@includealex

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions