Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/style/require-ordered-traits

Not in any set. Unsafe fix: it can change behaviour.

What it does

Trait use statements must be sorted alphabetically.

Configuration

[lint.rules]
"style/require-ordered-traits" = "error"

To skip it in some files, add an override or a @pun-ignore-file comment.

Options

Name Type Allowed values Default Upstream name
case-sensitive bool Any false case_sensitive

Replaces

More lint/style rules · Edit this page

Last updated on

Was this page helpful?