Documentation

Attributes

Table of Contents

Classes

BracketSpacingSniff
Requires a configurable number of spaces on the inside of attribute block brackets.
DisallowAttributeParenthesesSniff
Forbid for an attribute instantiation to have parentheses, except when parameters are being passed.
RequireAttributeParenthesesSniff
Require that an attribute instantiation has parentheses, i.e. `#[MyAttribute()]`.
TrailingCommaSniff
Require a trailing comma for multi-line, multi-attribute attribute blocks and forbid trailing commas in single-line attribute blocks and multi-line attributes containing only a single attribute.
On this page

Search results