Skip to main content

Module diagnostics

Module diagnostics 

Source

StructsΒ§

CheckId
Identifies a single step
DiagCtxInner πŸ”’
FinishedCheck
RunningCheck
Represents a single tidy check, identified by its name, running.
StderrForUnitTests πŸ”’
An implementation of io::Write and termcolor::WriteColor that writes to stderr via eprint!, so that the output can be properly captured when running tidy’s unit tests.
TidyCtx
Collects diagnostics from all tidy steps, and contains shared information that determines how should message and logs be presented.
TidyFlags
CLI flags used by tidy.

ConstantsΒ§

COLOR_ERROR
COLOR_SUCCESS
COLOR_WARNING

FunctionsΒ§

error_if_in_ci πŸ”’
find_base_commit πŸ”’
output_message
Output a message to stderr. The message can be optionally scoped to a certain check, and it can also have a certain color.