-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...verifier-test/mock-plugin/src/main/kotlin/mock/plugin/property/ConstBasedKeyNameLinter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@file:Suppress("unused") | ||
|
||
package mock.plugin.property | ||
|
||
import org.jetbrains.annotations.PropertyKey | ||
import mock.plugin.property.QUIET as Q | ||
import mock.plugin.property.VERBOSE as V | ||
|
||
enum class ConstBasedKeyNameLinter(@PropertyKey(resourceBundle = "mock.plugin.property.linter") val titleKey: String) { | ||
QUIET("$PREFIX.$Q"), | ||
VERBOSE("$PREFIX.$V") | ||
} | ||
|
||
private const val PREFIX = "mock.plugin.linter" | ||
private const val QUIET = "quiet" | ||
private const val VERBOSE = "verbose" |
14 changes: 14 additions & 0 deletions
14
...verifier/verifier-test/mock-plugin/src/main/kotlin/mock/plugin/property/DynamicKeyName.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@file:Suppress("unused") | ||
|
||
package mock.plugin.property | ||
|
||
import org.jetbrains.annotations.PropertyKey | ||
|
||
enum class DynamicKeyName(@PropertyKey(resourceBundle = "mock.plugin.property.linter") val titleKey: String) { | ||
QUIET(prefix() + "." + quiet()), | ||
VERBOSE(prefix() + "." + verbose()) | ||
} | ||
|
||
private fun prefix() = "mock.plugin.linter" | ||
private fun quiet() = "quiet" | ||
private fun verbose() = "verbose" |
2 changes: 2 additions & 0 deletions
2
...-plugin-verifier/verifier-test/mock-plugin/src/main/kotlin/mock/plugin/property/Linter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@file:Suppress("unused") | ||
|
||
package mock.plugin.property | ||
|
||
import org.jetbrains.annotations.PropertyKey | ||
|