Ignore test for location in checkstyle
This commit is contained in:
parent
5dcbbae8b2
commit
45d1f2c9e2
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue