You are here

public function TestNoStore::storesFindings in Security Review 8

Returns whether the findings should be stored or reproduced when needed.

The only case when this function should return false is if the check can generate a lot of findings (like the File permissions check for example). Turning this off for checks that don't generate findings at all or just a few of them actually means more overhead as the check has to be re-run in order to get its last result.

Return value

bool Boolean indicating whether findings will be stored.

Overrides Check::storesFindings

File

tests/modules/security_review_test/src/TestNoStore.php, line 22

Class

TestNoStore
A test security check for testing extensibility.

Namespace

Drupal\security_review_test

Code

public function storesFindings() {
  return FALSE;
}