struct PassiveScan
- PassiveScan
- Struct
- Value
- Object
Defined in:
models/passive_scan.crConstructors
Instance Method Summary
- #category : String
- #category=(category : String)
- #id : String
- #id=(id : String)
- #info : Info
- #info=(info : Info)
- #matchers : Array(Matcher)
- #matchers=(matchers : Array(Matcher))
- #matchers_condition : String
- #matchers_condition=(matchers_condition : String)
- #techs : Array(YAML::Any)
- #techs=(techs : Array(YAML::Any))
-
#valid?
A rule is usable when it has an id, a non-empty info name, and at least one matcher.
Constructor Detail
Instance Method Detail
def valid?
#
A rule is usable when it has an id, a non-empty info name, and at
least one matcher. The earlier @info != "" check compared an
Info struct against a String, which is always true and therefore a
no-op; the rewrite checks @info.name instead so rules with an
empty name (effectively unusable for SARIF / human output) are
dropped during load.