You are here

public function Check::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.

2 calls to Check::storesFindings()
Check::lastResult in src/Check.php
Returns the last stored result of the check.
Check::storeResult in src/Check.php
Stores a result in the state system.
2 methods override Check::storesFindings()
FilePermissions::storesFindings in src/Checks/FilePermissions.php
Returns whether the findings should be stored or reproduced when needed.
TestNoStore::storesFindings in tests/modules/security_review_test/src/TestNoStore.php
Returns whether the findings should be stored or reproduced when needed.

File

src/Check.php, line 152

Class

Check
Defines a security check.

Namespace

Drupal\security_review

Code

public function storesFindings() {
  return TRUE;
}