suricata_check.checkers.styleguide.order
OrderChecker.
Classes
The OrderChecker contains several checks on the ordering Suricata options. |
Module Contents
- class suricata_check.checkers.styleguide.order.OrderChecker(include: collections.abc.Iterable[str] | None = None)[source]
Bases:
suricata_check.checkers.interface.CheckerInterface
The OrderChecker contains several checks on the ordering Suricata options.
- Note that the correct ordering of detection options is as follows:
Buffer
Size
Transformation
Coontent
Pointer movement
Fast pattern
Nocase
Other payload options
Codes S200-S209 report on the non-standard ordering of common options.
Codes S210-S219 report on the non-standard ordering of content matches.
Codes S220-S229 report on the non-standard ordering of flow options.
Codes S230-S239 report on the non-standard ordering of detection options.
Codes S240-S249 report on the non-standard ordering of threshold options.
Initializes the checker given a list of issue codes to emit.
- codes
A Mapping of issue codes emitted by the checker to metadata for those issue types. The metadata is structured in the form of a Mapping from attribute name to attribute value. The one mandatory metadata attribute is severity, which must be one of the levels provided by the logging module