Skip to content

Minimal reproducible example for ktlint project bug issue

License

Notifications You must be signed in to change notification settings

santelos/ktlint-mre

Repository files navigation

Minimal reproducible example for ktlint project bug issue

Bug issue reference: JLLeitschuh/ktlint-gradle#399

Steps to reproduce:

  • Get two machines with Windows and Linux based OS.
  • Make sure you have local $JAVA_HOME references the 14 jdk version
  • Run (local check) ./gradlew clean ktlintCheck
  • Run (docker build) docker build -t <image_name> .

Expected result:

  • [Windows OS] Local check failed with "ktlintMainSourceSetCheck" task failure
  • [Windows OS] Local check debug log for "ktlintMainSourceSetCheck" is [DEBUG] <...>ms / 1 file(s) / 1 error(s)
  • [Linux OS] Docker build failed with "ktlintMainSourceSetCheck" task failure
  • [Linux OS] Docker build debug log for "ktlintMainSourceSetCheck" is [DEBUG] <...>ms / 1 file(s) / 1 error(s)

Actual result:

  • [Windows OS] Local check completes successfully
  • [Windows OS] Local check debug log for "ktlintMainSourceSetCheck" is [DEBUG] <...>ms / 0 file(s) / 0 error(s)
  • [Linux OS] works as expected

About

Minimal reproducible example for ktlint project bug issue

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages