SEC004#

class src.ansys.pre_commit_hooks.quality_rules.security.SEC004#

Bases: Security

SECURITY.md discourages public issue reporting.

Overview#

check

Check that the security policy steers reporters away from issues.

Import detail#

from src.ansys.pre_commit_hooks.quality_rules.security import SEC004

Method detail#

static SEC004.check(repository_root: pathlib.Path, readme_file: str | None) → ansys.pre_commit_hooks.quality_rules.common.RuleCheckResult#

Check that the security policy steers reporters away from issues.

Returns:
bool or str

True when the root SECURITY.md is the only policy file and tells reporters not to use (public) issues, otherwise an error.