Open mtyminsky opened 11 months ago
toggleOnOff() switch not skipping code in extendig JpaRepository interface example below, but I changed some details because it is a fragment of code from work project.
should skip fragment of code
not skipping fragment of code
package here.is.a.package import org.springframework.data.jpa.repository.JpaRepository /** repository */ interface CustomRepo : JpaRepository<Custom, EntityId> { /** * some description * * @param param1 * @param param2 * @return boolean */ // spotless:off fun existsByUserIdAndUserProfileId(param1: EntityId, param2: CustomId): Boolean // spotless:on }
spotless { format("misc") { target("*.md", ".gitignore") trimTrailingWhitespace() indentWithTabs() endWithNewline() } kotlin { ktfmt().kotlinlangStyle() diktat().configFile("${projectDir}/diktat-analysis.yml") toggleOffOn() } }
Hi @mtyminsky, thanks for reporting the issue. We will look into it
Describe the bug
toggleOnOff() switch not skipping code in extendig JpaRepository interface
example below, but I changed some details because it is a fragment of code from work project.
Expected behavior
should skip fragment of code
Observed behavior
not skipping fragment of code
Steps to Reproduce
Environment information