tidy

Module style

Source
Expand description

Tidy check to enforce various stylistic guidelines on the Rust codebase.

Example checks are:

  • No lines over 100 characters (in non-Rust files).
  • No files with over 3000 lines (in non-Rust files).
  • No tabs.
  • No trailing whitespace.
  • No CR characters.
  • No TODO or XXX directives.
  • No unexplained ```ignore or ```rust,ignore doc tests.

Note that some of these rules are excluded from Rust files because we enforce rustfmt. It is preferable to be formatted rather than tidy-clean.

A number of these checks can be opted-out of with various directives of the form: // ignore-tidy-CHECK-NAME.

Macros§

Enums§

Constants§

Statics§

Functions§