如何防止 ktlint 检查 maven 项目中的生成源?Ktlint 检查 openapi-generator 生成的 /target 文件夹
以下不起作用:
<plugin>
<groupId>com.github.gantsign.maven</groupId>
<artifactId>ktlint-maven-plugin</artifactId>
<version>${ktlint.version}</version>
<executions>
<execution>
<id>format-and-check</id>
<configuration>
<sourcesExcludes>
<sourcesExclude>**/target/**</sourcesExclude>
</sourcesExcludes>
</configuration>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>