Skip to content

Commit

Permalink
Support suppressing backing-property-naming via ObjectPropertyName (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler authored Jul 23, 2024
1 parent 2ac68cd commit c400fa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ internal class SuppressionLocator(
"PackageName" to listOf("standard:package-name"),
"PropertyName" to listOf("standard:property-naming", "standard:backing-property-naming"),
"ConstPropertyName" to listOf("standard:property-naming"),
"ObjectPropertyName" to listOf("standard:property-naming"),
"ObjectPropertyName" to listOf("standard:property-naming", "standard:backing-property-naming"),
"PrivatePropertyName" to listOf("standard:property-naming"),
"UnusedImport" to listOf("standard:no-unused-imports"),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ class BackingPropertyNamingRuleTest {
strings = [
"ktlint:standard:backing-property-naming",
"PropertyName", // IntelliJ IDEA suppression
"ObjectPropertyName", // IntelliJ IDEA suppression
],
)
fun `Given a property with a disallowed name which is suppressed`(suppressionName: String) {
Expand Down

0 comments on commit c400fa3

Please # to comment.