For the Force.com Security Source Scanner, is there a mechanism of the same nature as eslint-disable-line for inhibiting known false-positive reports? With the false positives excluded, future scans could focus on the new issues flagged not on a repeated analysis of the false positives.
What approach have others taken to this problem?
PS
An example where the test code has been written to avoid duplication and make the tests more readable:
@IsTest
private class MyTest {
private class Builder {
...
void assertTotals(...) {
System.assert(...);
}
}
@IsTest
static void case1() {
new Builder().addAbc(...).addDef(...).assertTotals(...);
}
@IsTest
static void case2() {
new Builder().addAbc(...).addDef(...).assertTotals(...);
}
...
}
results in these false positive reports for each @IsTest
method:
Test Methods With No Assert