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,8 +73,11 @@ public final class HapiErrorCodeCheck extends AbstractCheck {
} else { } else {
String location = getFilePath() + ":" + instantiation.getLineNo() + ":" String location = getFilePath() + ":" + instantiation.getLineNo() + ":"
+ instantiation.getColumnNo() + "(" + code + ")"; + instantiation.getColumnNo() + "(" + code + ")";
//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); ourCache.put(code, location);
} }
}
} else { } else {
log(theAst.getLineNo(), "Called Msg.code() with a non-integer argument"); log(theAst.getLineNo(), "Called Msg.code() with a non-integer argument");
} }