Skip to content

Commit

Permalink
serialVersionUID is not a reserved name for parameters or functions
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisGabin committed Feb 21, 2023
1 parent 3f81e91 commit ece4148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class UnusedParameter(config: Config = Config.empty) : Rule(config) {
)

@Configuration("unused parameter names matching this regex are ignored")
private val allowedNames: Regex by config("(_|ignored|expected|serialVersionUID)", String::toRegex)
private val allowedNames: Regex by config("(_|ignored|expected)", String::toRegex)

override fun visit(root: KtFile) {
super.visit(root)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class UnusedPrivateMember(config: Config = Config.empty) : Rule(config) {
)

@Configuration("unused private function names matching this regex are ignored")
private val allowedNames: Regex by config("(ignored|expected|serialVersionUID)", String::toRegex)
private val allowedNames: Regex by config("(ignored|expected)", String::toRegex)

override fun visit(root: KtFile) {
super.visit(root)
Expand Down

0 comments on commit ece4148

Please sign in to comment.