Skip to content

Commit

Permalink
resolved #10137 - mod checker accepts era for unit type
Browse files Browse the repository at this point in the history
  • Loading branch information
yairm210 committed Sep 18, 2023
1 parent 6585cc0 commit 7de4853
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ enum class UniqueParameterType(
UniqueType.UniqueComplianceErrorSeverity? {
if (parameterText in knownValues) return null
if (ruleset.unitTypes.containsKey(parameterText)) return null
if (ruleset.eras.containsKey(parameterText)) return null
if (ruleset.unitTypes.values.any { it.uniques.contains(parameterText) }) return null
return UniqueType.UniqueComplianceErrorSeverity.WarningOnly
}
Expand Down

0 comments on commit 7de4853

Please sign in to comment.