tree: 2ef18a5e697d8dcdc2040b1164a0d1806dd4b5e7 [path history] [tgz]
  1. src/
  2. build.gradle.kts
  3. README.md
ktlint-test-ruleset-provider-v2-deprecated/README.md

IMPORTANT: This module is kept around for future reference in case the current RuleSetProviderV3 is being deprecated.

This module contains a rule set provider based on the deprecated com.pinterest.ktlint.core.api.RuleSetProviderV2 which is already removed from the current code base. It was used to build a custom rule set JAR for testing the ktlint-cli module.

As this module is not meant to be published, you need to build the jar explicitly and copy the jar to the ktlint-cli test resource folder:

cd .. # run from root of ktlint project
./gradlew ktlint-test-ruleset-provider-v2-deprecated:jar && \
cp ktlint-test-ruleset-provider-v2-deprecated/build/libs/ktlint-test-ruleset-provider-v2-deprecated.jar  ktlint-cli/src/test/resources/cli/custom-ruleset/rule-set-provider-v2/