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