Skip to main content

Module inline_threshold

Module inline_threshold 

Source
Expand description

Inline health threshold override comments. Inline health threshold override comments.

A fallow-override-threshold-next-line comment raises or lowers the health ceilings of the function on the next line:

// fallow-override-threshold-next-line maxCognitive=40 maxCrap=45 -- legacy parser

The keys are the keys of a health.thresholdOverrides entry. The reason after -- is required.

Structs§

InlineThresholdOverride
One inline threshold override comment that parsed without a problem.
InlineThresholdOverrides
The inline threshold override comments of one file.
InlineThresholdProblem
One inline threshold override comment with a problem.

Enums§

InlineThresholdProblemKind
What is wrong with one inline threshold override comment. A comment with a problem has no effect.

Constants§

INLINE_THRESHOLD_KEYS
The threshold keys that an inline threshold override comment accepts.
INLINE_THRESHOLD_MARKER
The comment word of an inline threshold override.

Functions§

parse_inline_threshold_override
Parse the text after the marker word of one inline threshold override comment. targets is the text before --, and reason is the text after it.