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
bool report(Source source, uint threshold, uint moduleThreshold, OutputFormat format)

Prints source file metrics to the standard output.

Structs

CognitiveError
struct CognitiveError
Undocumented in source.
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.

VerboseReporter
struct VerboseReporter(alias sink)

Prints the information about the given identifier.

Meta