title: KtLint check doesn't work locally anymore - it works tho in my docker image build
body: <p>For no reason I am able to understand my <code>gradle ktlintCheck</code> command does not yield any issues anymore and <code>:ktlintFormat</code> is not fixing anything. As soon as I push my changes and my CI pipelines starts to build my Docker Image build process <em>ktlint</em> does work again.</p>
  <p>So to be clear - I have issues and <code>ktlintCheck</code> does not find them.</p>
  <p>The only real delta I did was updating Kotlin to <code>1.4.10</code> and also <code>ktlint</code> to <code>9.4.0</code>. I think it has something to do with that but can't figure out what.</p>
  <p><em>Locally</em></p>
  <pre><code>7:57:41 PM: Executing tasks 'clean ktlintCheck'...
  
  &gt; Task :clean
  &gt; Task :ktlintMainSourceSetCheck
  &gt; Task :ktlintTestSourceSetCheck
  &gt; Task :ktlintKotlinScriptCheck
  &gt; Task :ktlintCheck
  
  Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
  Use '--warning-mode all' to show the individual deprecation warnings.
  See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings
  
  BUILD SUCCESSFUL in 1s
  4 actionable tasks: 4 executed
  7:57:42 PM: Tasks execution finished 'clean ktlintCheck'.
  </code></pre>
  <p><em>CI Pipeline</em></p>
  <pre><code>Step #0 - &quot;Build&quot;: Starting a Gradle Daemon (subsequent builds will be faster)
  Step #0 - &quot;Build&quot;: &gt; Task :clean UP-TO-DATE
  Step #0 - &quot;Build&quot;: &gt; Task :compileKotlin
  Step #0 - &quot;Build&quot;: &gt; Task :compileJava NO-SOURCE
  Step #0 - &quot;Build&quot;: &gt; Task :processResources
  Step #0 - &quot;Build&quot;: &gt; Task :classes
  Step #0 - &quot;Build&quot;: &gt; Task :bootJar
  Step #0 - &quot;Build&quot;: &gt; Task :inspectClassesForKotlinIC
  Step #0 - &quot;Build&quot;: &gt; Task :jar SKIPPED
  Step #0 - &quot;Build&quot;: &gt; Task :assemble
  Step #0 - &quot;Build&quot;: &gt; Task :ktlintKotlinScriptCheck
  Step #0 - &quot;Build&quot;: &gt; Task :ktlintMainSourceSetCheck
  Step #0 - &quot;Build&quot;: 
  Step #0 - &quot;Build&quot;: &gt; Task :ktlintTestSourceSetCheck
  Step #0 - &quot;Build&quot;: [90m/builder/src/test/kotlin/com/mygame/backend/extension/[0mResolverExtensionTest.kt[90m:[0m39[90m:33:[0m Argument should be on a separate line (unless all arguments can fit a single line)
  Step #0 - &quot;Build&quot;: [90m/builder/src/test/kotlin/com/mygame/backend/extension/[0mResolverExtensionTest.kt[90m:[0m40[90m:57:[0m Argument should be on a separate line (unless all arguments can fit a single line)
  Step #0 - &quot;Build&quot;: [91m&quot;plain&quot; report written to /builder/build/reports/ktlint/ktlintTestSourceSetCheck/ktlintTestSourceSetCheck.txt[0m[91m
  Step #0 - &quot;Build&quot;: [0m
  Step #0 - &quot;Build&quot;: &gt; Task :ktlintTestSourceSetCheck FAILED
  Step #0 - &quot;Build&quot;: [91m
  Step #0 - &quot;Build&quot;: [0m[91mFAILURE: [0m[91mBuild failed with an exception.[0m[91m
  Step #0 - &quot;Build&quot;: [0m[91m
  Step #0 - &quot;Build&quot;: [0m[91m* What went wrong:[0m[91m
  Step #0 - &quot;Build&quot;: [0m[91mExecution failed for task ':ktlintTestSourceSetCheck'.[0m[91m
  Step #0 - &quot;Build&quot;: [0m[91m&gt; [0m[91mA failure occurred while executing org.jlleitschuh.gradle.ktlint.KtLintWorkAction[0m[91m
  </code></pre>
  <p><em>Excerpt from build.gradle.kts</em></p>
  <pre><code>buildscript {
      repositories {
          maven(&quot;https://plugins.gradle.org/m2/&quot;)
      }
      dependencies {
          classpath(&quot;org.jlleitschuh.gradle:ktlint-gradle:9.3.0&quot;)
          classpath(&quot;org.springframework.boot:spring-boot-gradle-plugin:2.3.3.RELEASE&quot;)
      }
  }
  plugins {
      id(&quot;java&quot;)
      id(&quot;eclipse&quot;)
      id(&quot;idea&quot;)
      id(&quot;org.jlleitschuh.gradle.ktlint&quot;) version &quot;9.4.0&quot;
      id(&quot;org.springframework.boot&quot;) version &quot;2.3.3.RELEASE&quot;
      id(&quot;io.spring.dependency-management&quot;) version &quot;1.0.10.RELEASE&quot;
      id(&quot;com.adarshr.test-logger&quot;) version &quot;2.1.0&quot;
      kotlin(&quot;jvm&quot;) version &quot;1.4.10&quot;
      kotlin(&quot;plugin.spring&quot;) version &quot;1.4.10&quot;
  }
  </code></pre>
  <p><em>Dockerfile</em>:</p>
  <pre><code>FROM gradle:6.6.1-jdk14 as builder
  USER root
  WORKDIR /builder
  ADD . /builder
  RUN gradle clean build
  
  FROM openjdk:14-slim
  WORKDIR /app
  EXPOSE 8082
  COPY --from=builder /builder/build/libs/alemanni-backend.jar app.jar
  CMD [&quot;java&quot;, &quot;-jar&quot;, &quot;app.jar&quot;]
  </code></pre>
  <p>Any idea why it does not work?</p>
  <p><strong>EDIT</strong>: Maybe related to this issue: <a href="https://github.com/JLLeitschuh/ktlint-gradle/issues/399" rel="nofollow noreferrer">https://github.com/JLLeitschuh/ktlint-gradle/issues/399</a></p>