Ignore test for location in checkstyle

This commit is contained in:
Tadgh 2023-12-12 14:05:16 -08:00
parent 5dcbbae8b2
commit 45d1f2c9e2
1 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,10 @@ public final class HapiErrorCodeCheck extends AbstractCheck {
} else {
String location = getFilePath() + ":" + instantiation.getLineNo() + ":"
+ instantiation.getColumnNo() + "(" + code + ")";
ourCache.put(code, location);
//Ignore errors thrown in test for duplicates, as some fake implementations are throwing the same codes for test purpsoes.
if (!location.contains("/test/")) {
ourCache.put(code, location);
}
}
} else {
log(theAst.getLineNo(), "Called Msg.code() with a non-integer argument");