cogito.meter

Undocumented in source.

Members

Aliases

Result
alias Result = SumType!(List!CognitiveError, Source)

Result of analysing a source file.

Functions

deinitialize
void deinitialize()

Clean up global variables.

initialize
void initialize()

Initialize global variables.

printErrors
void printErrors(List!CognitiveError errors)

Prints an error list to the standard output.

report
Nullable!(Threshold.Type) report(Source source, Threshold threshold, OutputFormat format)

Prints source file metrics to the standard output.

Structs

CognitiveError
struct CognitiveError
Undocumented in source.
DebugReporter
struct DebugReporter(alias sink)

Prints the information about the given identifier.

FlatReporter
struct FlatReporter(alias sink)

Prints the information about the given identifier.

LocalHandler
struct LocalHandler
Undocumented in source.
Meter
struct Meter

Collects the score from a single declaration, like a function. Can contain nested $(D_SYMBOL Meter) structures with nested declarations.

ScoreScope
struct ScoreScope

Identifier and its location in the source file.

Source
struct Source

Collects the score from a single D module.

Threshold
struct Threshold

Supported threshold values.

Meta