Skip to content

Commit

Permalink
Suppress ktlint issues without automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Jan 18, 2025
1 parent 1586752 commit f53b1f7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ object LdapInjection {
// Characters to escape in search filter queries
private const val FILTER_CHARACTERS = "*()\\\u0000"

@Suppress("ktlint:standard:max-line-length")
@MethodHooks(
// Single object lookup, possible DN injection
MethodHook(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ private fun getPatchedAfterHooksTargetInstance(classWithHooksEnabledField: Class
return patchedClass.getDeclaredConstructor().newInstance() as AfterHooksTargetContract
}

@Suppress("ktlint:standard:property-naming")
class AfterHooksPatchTest {
@Test
fun testOriginal() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ private fun getPatchedBeforeHooksTargetInstance(classWithHooksEnabledField: Clas
return patchedClass.getDeclaredConstructor().newInstance() as BeforeHooksTargetContract
}

@Suppress("ktlint:standard:property-naming")
class BeforeHooksPatchTest {
@Test
fun testOriginal() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ private fun getPatchedReplaceHooksTargetInstance(classWithHooksEnabledField: Cla
return patchedClass.getDeclaredConstructor().newInstance() as ReplaceHooksTargetContract
}

@Suppress("ktlint:standard:property-naming")
class ReplaceHooksPatchTest {
@Test
fun testOriginal() {
Expand Down

0 comments on commit f53b1f7

Please sign in to comment.