#[repr(u16)]pub enum Rule {
Show 321 variants
UnusedAssignment = 0,
DynamicSourcePath = 1,
UntrackedSourceFile = 2,
UncheckedDirectoryChange = 3,
SingleQuotedLiteral = 4,
UndefinedVariable = 5,
FindOutputToXargs = 6,
TrapStringExpansion = 7,
QuotedBashRegex = 8,
ChainedTestBranches = 9,
LineOrientedInput = 10,
LeadingGlobArgument = 11,
FindOutputLoop = 12,
LocalTopLevel = 13,
SudoRedirectionOrder = 14,
StrayClosingKeyword = 15,
ConstantComparisonTest = 16,
LoopControlOutsideLoop = 17,
LiteralUnaryStringTest = 18,
TruthyLiteralTest = 19,
ConstantCaseSubject = 20,
EmptyTest = 21,
LeadingZeroArithmetic = 22,
AssignmentSpacing = 23,
MissingBracketSpace = 24,
MissingSpaceBeforeBracketClose = 25,
JammedTestBracket = 26,
IndentedHeredocClose = 27,
PositionalTenBraces = 28,
BareDoneWord = 29,
UnterminatedIf = 30,
MissingFi = 31,
BrokenTestEnd = 32,
BrokenTestParse = 33,
ElseIf = 34,
OpenDoubleQuote = 35,
LinebreakInTest = 36,
CStyleComment = 37,
CPrototypeFragment = 38,
BadRedirectionFdOrder = 39,
BareGlobCommandPath = 40,
DiffMarkerLine = 41,
PipeToKill = 42,
InvalidExitStatus = 43,
CasePatternVar = 44,
TautologyChain = 45,
ArithmeticRedirectionTarget = 46,
DuplicateRedirect = 47,
AssignSpecialZero = 48,
SpaceyAssign = 49,
BareSlashMarker = 50,
PatternWithVariable = 51,
StatusCaptureAfterBranchTest = 52,
SubstWithRedirect = 53,
SubstWithRedirectErr = 54,
RedirectToCommandName = 55,
NonAbsoluteShebang = 56,
TemplateBraceInCommand = 57,
NestedParameterExpansion = 58,
OverwrittenFunction = 59,
IfMissingThen = 60,
ElseWithoutThen = 61,
MissingSemicolonBeforeBrace = 62,
EmptyFunctionBody = 63,
BareClosingBrace = 64,
BackslashBeforeClosingBacktick = 65,
PositionalParamAsOperator = 66,
DoubleParenGrouping = 67,
UnicodeQuoteInString = 68,
IndentedShebang = 69,
SpaceAfterHashBang = 70,
ShebangNotOnFirstLine = 71,
CommentedContinuationLine = 72,
SubshellInArithmetic = 73,
UnquotedGlobsInFind = 74,
GlobInGrepPattern = 75,
GlobInStringComparison = 76,
GlobInFindSubstitution = 77,
UnquotedGrepRegex = 78,
StderrBeforeStdoutRedirect = 79,
RedirectClobbersInput = 80,
EscapedNegationInTest = 81,
GreaterThanInTest = 82,
StringComparisonForVersion = 83,
MixedAndOrInCondition = 84,
QuotedCommandInTest = 85,
GlobInTestComparison = 86,
TildeInStringComparison = 87,
IfDollarCommand = 88,
BacktickInCommandPosition = 89,
AssignmentLooksLikeComparison = 90,
SuspiciousBracketGlob = 91,
FunctionCalledWithoutArgs = 92,
SetFlagsWithoutDashes = 93,
QuotedArraySlice = 94,
QuotedBashSource = 95,
IfsSetToLiteralBackslashN = 96,
GlobInTestDirectory = 97,
FindOrWithoutGrouping = 98,
NonShellSyntaxInScript = 99,
ExportWithPositionalParams = 100,
AppendToArrayAsString = 101,
DollarQuestionAfterCommand = 102,
UnsetAssociativeArrayElement = 103,
MapfileProcessSubstitution = 104,
AtSignInStringCompare = 105,
ArraySliceInComparison = 106,
GlobWithExpansionInLoop = 107,
AssignmentToNumericVariable = 108,
PlusPrefixInAssignment = 109,
MalformedArithmeticInCondition = 110,
RedirectBeforePipe = 111,
ExprSubstrInTest = 112,
StringComparedWithEq = 113,
AFlagInDoubleBracket = 114,
FunctionReferencesUnsetParam = 115,
UnreachableAfterExit = 116,
UnusedHeredoc = 117,
UncheckedDirectoryChangeInFunction = 118,
ContinueOutsideLoopInFunction = 119,
CaseGlobReachability = 120,
CaseDefaultBeforeGlob = 121,
AppendWithEscapedQuotes = 122,
VariableAsCommandName = 123,
EnvPrefixExpansionOnly = 124,
ArrayToStringConversion = 125,
GetoptsOptionNotInCase = 126,
CaseArmNotInGetopts = 127,
LocalCrossReference = 128,
UnicodeSingleQuoteInSingleQuotes = 129,
HeredocMissingEnd = 130,
SpacedAssignment = 131,
BadVarName = 132,
LoopWithoutEnd = 133,
MissingDoneInForLoop = 134,
DanglingElse = 135,
HeredocCloserNotAlone = 136,
MisquotedHeredocClose = 137,
UntilMissingDo = 138,
BrokenAssocKey = 139,
SubshellLocalAssignment = 140,
CommaArrayElements = 141,
SubshellSideEffect = 142,
PossibleVariableMisspelling = 143,
IfBracketGlued = 144,
ImplicitGlobalInFunction = 145,
MutableGlobal = 146,
UnanchoredSourcePath = 147,
FunctionCalledBeforeDefined = 148,
ExprArithmetic = 149,
GrepCountPipeline = 150,
SingleTestSubshell = 151,
SubshellTestGroup = 152,
DoubleBracketInSh = 153,
TestEqualityOperator = 154,
LocalVariableInSh = 155,
FunctionKeyword = 156,
BashCaseFallthrough = 157,
ProcessSubstitution = 158,
AnsiCQuoting = 159,
BraceExpansion = 160,
HereString = 161,
StandaloneArithmetic = 162,
SelectLoop = 163,
Coproc = 164,
AmpersandRedirection = 165,
ArrayAssignment = 166,
LetCommand = 167,
DeclareCommand = 168,
TrapErr = 169,
IndirectExpansion = 170,
ArrayReference = 171,
BraceFdRedirection = 172,
PipefailOption = 173,
WaitOption = 174,
SubstringExpansion = 175,
CaseModificationExpansion = 176,
ReplacementExpansion = 177,
BashFileSlurp = 178,
EchoFlags = 179,
TrLowerRange = 180,
TrUpperRange = 181,
EchoBackslashEscapes = 182,
SourceBuiltinInSh = 183,
PrintfQFormatInSh = 184,
IfElifBashTest = 185,
FunctionParamsInSh = 186,
ExtglobCase = 187,
ExtglobInCasePattern = 188,
ExtglobInSh = 189,
CaretNegationInBracket = 190,
ZshRedirPipe = 191,
ZshBraceIf = 192,
ZshAlwaysBlock = 193,
ArraySubscriptTest = 194,
ArraySubscriptCondition = 195,
SourcedWithArgs = 196,
ZshFlagExpansion = 197,
NestedZshSubstitution = 198,
PlusEqualsAppend = 199,
ZshNestedExpansion = 200,
MultiVarForLoop = 201,
ZshPromptBracket = 202,
CshSyntaxInSh = 203,
ZshAssignmentToZero = 204,
CStyleForInSh = 205,
DollarStringInSh = 206,
LegacyArithmeticInSh = 207,
CStyleForArithmeticInSh = 208,
ArrayKeysInSh = 209,
StarGlobRemovalInSh = 210,
ZshParameterFlag = 211,
NestedDefaultExpansion = 212,
ZshArraySubscriptInCase = 213,
ZshParameterIndexFlag = 214,
ExtglobInTest = 215,
FunctionKeywordInSh = 216,
LexicalComparisonInDoubleBracket = 217,
RegexMatchInSh = 218,
VTestInSh = 219,
ATestInSh = 220,
AmpersandRedirectInSh = 221,
PipeStderrInSh = 222,
HyphenatedFunctionName = 223,
ErrexitTrapInSh = 224,
SignalNameInTrap = 225,
BasePrefixInArithmetic = 226,
UnsetPatternInSh = 227,
OptionTestInSh = 228,
StickyBitTestInSh = 229,
OwnershipTestInSh = 230,
SourceInsideFunctionInSh = 231,
RmGlobOnVariablePath = 232,
SshLocalExpansion = 233,
EvalOnArray = 234,
FindExecDirWithShell = 235,
RmRootishTarget = 236,
ChmodWorldWritableSensitivePath = 237,
ForkBombPattern = 238,
UnquotedExpansion = 239,
ReadWithoutRaw = 240,
LoopFromCommandOutput = 241,
UnquotedCommandSubstitution = 242,
LegacyBackticks = 243,
LegacyArithmeticExpansion = 244,
PrintfFormatVariable = 245,
UnquotedArrayExpansion = 246,
EchoedCommandSubstitution = 247,
ExportCommandSubstitution = 248,
CompoundTestOperator = 249,
PsGrepPipeline = 250,
LsGrepPipeline = 251,
UnquotedDollarStar = 252,
QuotedDollarStarLoop = 253,
UnquotedArraySplit = 254,
CommandOutputArraySplit = 255,
PositionalArgsInString = 256,
SingleIterationLoop = 257,
BareCommandNameAssignment = 258,
BareRead = 259,
RedundantSpacesInEcho = 260,
RedundantReturnStatus = 261,
EchoToSedSubstitution = 262,
UnquotedWordBetweenQuotes = 263,
UnquotedTrClass = 264,
UnquotedVariableInTest = 265,
SuWithoutFlag = 266,
GlobAssignedToVariable = 267,
CommandSubstitutionInAlias = 268,
FunctionInAlias = 269,
UnquotedPathInMkdir = 270,
DeprecatedTempfileCommand = 271,
EgrepDeprecated = 272,
FgrepDeprecated = 273,
DefaultValueInColonAssign = 274,
XargsWithInlineReplace = 275,
XPrefixInTest = 276,
LeadingGlobInGrepPattern = 277,
TrapSignalNumbers = 278,
GetoptsInvalidFlagHandler = 279,
DoubleQuoteNesting = 280,
EnvPrefixCommandOnly = 281,
MixedQuoteWord = 282,
BraceVariableBeforeBracket = 283,
UnquotedTrRange = 284,
LsPipedToXargs = 285,
LsInSubstitution = 286,
EchoInsideCommandSubstitution = 287,
GrepOutputInTest = 288,
AvoidLetBuiltin = 289,
EchoHereDoc = 290,
ArrayIndexArithmetic = 291,
ArithmeticScoreLine = 292,
DollarInArithmetic = 293,
EscapedUnderscore = 294,
SingleQuoteBackslash = 295,
LiteralBackslash = 296,
BackslashBeforeCommand = 297,
SuspectClosingQuote = 298,
LiteralBraces = 299,
HeredocEndSpace = 300,
TrailingDirective = 301,
LiteralBackslashInSingleQuotes = 302,
LiteralControlEscape = 303,
FunctionBodyWithoutBraces = 304,
LocalDeclareCombined = 305,
IfsEqualsAmbiguity = 306,
MissingShebangLine = 307,
DuplicateShebangFlag = 308,
LinebreakBeforeAnd = 309,
SpacedTabstripClose = 310,
AmpersandSemicolon = 311,
CombineAppends = 312,
ShebangShellPolicy = 313,
ShebangFormPolicy = 314,
ScriptSizeThreshold = 315,
MissingFileDescription = 316,
TodoFormat = 317,
MissingFunctionDoc = 318,
FunctionDocContent = 319,
MissingMainEntrypoint = 320,
}Expand description
Rule identifiers, categories, and registry lookup helpers.
Variants§
UnusedAssignment = 0
DynamicSourcePath = 1
UntrackedSourceFile = 2
UncheckedDirectoryChange = 3
SingleQuotedLiteral = 4
UndefinedVariable = 5
FindOutputToXargs = 6
TrapStringExpansion = 7
QuotedBashRegex = 8
ChainedTestBranches = 9
LineOrientedInput = 10
LeadingGlobArgument = 11
FindOutputLoop = 12
LocalTopLevel = 13
SudoRedirectionOrder = 14
StrayClosingKeyword = 15
ConstantComparisonTest = 16
LoopControlOutsideLoop = 17
LiteralUnaryStringTest = 18
TruthyLiteralTest = 19
ConstantCaseSubject = 20
EmptyTest = 21
LeadingZeroArithmetic = 22
AssignmentSpacing = 23
MissingBracketSpace = 24
MissingSpaceBeforeBracketClose = 25
JammedTestBracket = 26
IndentedHeredocClose = 27
PositionalTenBraces = 28
BareDoneWord = 29
UnterminatedIf = 30
MissingFi = 31
BrokenTestEnd = 32
BrokenTestParse = 33
ElseIf = 34
OpenDoubleQuote = 35
LinebreakInTest = 36
CStyleComment = 37
CPrototypeFragment = 38
BadRedirectionFdOrder = 39
BareGlobCommandPath = 40
DiffMarkerLine = 41
PipeToKill = 42
InvalidExitStatus = 43
CasePatternVar = 44
TautologyChain = 45
ArithmeticRedirectionTarget = 46
DuplicateRedirect = 47
AssignSpecialZero = 48
SpaceyAssign = 49
BareSlashMarker = 50
PatternWithVariable = 51
StatusCaptureAfterBranchTest = 52
SubstWithRedirect = 53
SubstWithRedirectErr = 54
RedirectToCommandName = 55
NonAbsoluteShebang = 56
TemplateBraceInCommand = 57
NestedParameterExpansion = 58
OverwrittenFunction = 59
IfMissingThen = 60
ElseWithoutThen = 61
MissingSemicolonBeforeBrace = 62
EmptyFunctionBody = 63
BareClosingBrace = 64
BackslashBeforeClosingBacktick = 65
PositionalParamAsOperator = 66
DoubleParenGrouping = 67
UnicodeQuoteInString = 68
IndentedShebang = 69
SpaceAfterHashBang = 70
ShebangNotOnFirstLine = 71
CommentedContinuationLine = 72
SubshellInArithmetic = 73
UnquotedGlobsInFind = 74
GlobInGrepPattern = 75
GlobInStringComparison = 76
GlobInFindSubstitution = 77
UnquotedGrepRegex = 78
StderrBeforeStdoutRedirect = 79
RedirectClobbersInput = 80
EscapedNegationInTest = 81
GreaterThanInTest = 82
StringComparisonForVersion = 83
MixedAndOrInCondition = 84
QuotedCommandInTest = 85
GlobInTestComparison = 86
TildeInStringComparison = 87
IfDollarCommand = 88
BacktickInCommandPosition = 89
AssignmentLooksLikeComparison = 90
SuspiciousBracketGlob = 91
FunctionCalledWithoutArgs = 92
SetFlagsWithoutDashes = 93
QuotedArraySlice = 94
QuotedBashSource = 95
IfsSetToLiteralBackslashN = 96
GlobInTestDirectory = 97
FindOrWithoutGrouping = 98
NonShellSyntaxInScript = 99
ExportWithPositionalParams = 100
AppendToArrayAsString = 101
DollarQuestionAfterCommand = 102
UnsetAssociativeArrayElement = 103
MapfileProcessSubstitution = 104
AtSignInStringCompare = 105
ArraySliceInComparison = 106
GlobWithExpansionInLoop = 107
AssignmentToNumericVariable = 108
PlusPrefixInAssignment = 109
MalformedArithmeticInCondition = 110
RedirectBeforePipe = 111
ExprSubstrInTest = 112
StringComparedWithEq = 113
AFlagInDoubleBracket = 114
FunctionReferencesUnsetParam = 115
UnreachableAfterExit = 116
UnusedHeredoc = 117
UncheckedDirectoryChangeInFunction = 118
ContinueOutsideLoopInFunction = 119
CaseGlobReachability = 120
CaseDefaultBeforeGlob = 121
AppendWithEscapedQuotes = 122
VariableAsCommandName = 123
EnvPrefixExpansionOnly = 124
ArrayToStringConversion = 125
GetoptsOptionNotInCase = 126
CaseArmNotInGetopts = 127
LocalCrossReference = 128
UnicodeSingleQuoteInSingleQuotes = 129
HeredocMissingEnd = 130
SpacedAssignment = 131
BadVarName = 132
LoopWithoutEnd = 133
MissingDoneInForLoop = 134
DanglingElse = 135
HeredocCloserNotAlone = 136
MisquotedHeredocClose = 137
UntilMissingDo = 138
BrokenAssocKey = 139
SubshellLocalAssignment = 140
CommaArrayElements = 141
SubshellSideEffect = 142
PossibleVariableMisspelling = 143
IfBracketGlued = 144
ImplicitGlobalInFunction = 145
MutableGlobal = 146
UnanchoredSourcePath = 147
FunctionCalledBeforeDefined = 148
ExprArithmetic = 149
GrepCountPipeline = 150
SingleTestSubshell = 151
SubshellTestGroup = 152
DoubleBracketInSh = 153
TestEqualityOperator = 154
LocalVariableInSh = 155
FunctionKeyword = 156
BashCaseFallthrough = 157
ProcessSubstitution = 158
AnsiCQuoting = 159
BraceExpansion = 160
HereString = 161
StandaloneArithmetic = 162
SelectLoop = 163
Coproc = 164
AmpersandRedirection = 165
ArrayAssignment = 166
LetCommand = 167
DeclareCommand = 168
TrapErr = 169
IndirectExpansion = 170
ArrayReference = 171
BraceFdRedirection = 172
PipefailOption = 173
WaitOption = 174
SubstringExpansion = 175
CaseModificationExpansion = 176
ReplacementExpansion = 177
BashFileSlurp = 178
EchoFlags = 179
TrLowerRange = 180
TrUpperRange = 181
EchoBackslashEscapes = 182
SourceBuiltinInSh = 183
PrintfQFormatInSh = 184
IfElifBashTest = 185
FunctionParamsInSh = 186
ExtglobCase = 187
ExtglobInCasePattern = 188
ExtglobInSh = 189
CaretNegationInBracket = 190
ZshRedirPipe = 191
ZshBraceIf = 192
ZshAlwaysBlock = 193
ArraySubscriptTest = 194
ArraySubscriptCondition = 195
SourcedWithArgs = 196
ZshFlagExpansion = 197
NestedZshSubstitution = 198
PlusEqualsAppend = 199
ZshNestedExpansion = 200
MultiVarForLoop = 201
ZshPromptBracket = 202
CshSyntaxInSh = 203
ZshAssignmentToZero = 204
CStyleForInSh = 205
DollarStringInSh = 206
LegacyArithmeticInSh = 207
CStyleForArithmeticInSh = 208
ArrayKeysInSh = 209
StarGlobRemovalInSh = 210
ZshParameterFlag = 211
NestedDefaultExpansion = 212
ZshArraySubscriptInCase = 213
ZshParameterIndexFlag = 214
ExtglobInTest = 215
FunctionKeywordInSh = 216
LexicalComparisonInDoubleBracket = 217
RegexMatchInSh = 218
VTestInSh = 219
ATestInSh = 220
AmpersandRedirectInSh = 221
PipeStderrInSh = 222
HyphenatedFunctionName = 223
ErrexitTrapInSh = 224
SignalNameInTrap = 225
BasePrefixInArithmetic = 226
UnsetPatternInSh = 227
OptionTestInSh = 228
StickyBitTestInSh = 229
OwnershipTestInSh = 230
SourceInsideFunctionInSh = 231
RmGlobOnVariablePath = 232
SshLocalExpansion = 233
EvalOnArray = 234
FindExecDirWithShell = 235
RmRootishTarget = 236
ChmodWorldWritableSensitivePath = 237
ForkBombPattern = 238
UnquotedExpansion = 239
ReadWithoutRaw = 240
LoopFromCommandOutput = 241
UnquotedCommandSubstitution = 242
LegacyBackticks = 243
LegacyArithmeticExpansion = 244
PrintfFormatVariable = 245
UnquotedArrayExpansion = 246
EchoedCommandSubstitution = 247
ExportCommandSubstitution = 248
CompoundTestOperator = 249
PsGrepPipeline = 250
LsGrepPipeline = 251
UnquotedDollarStar = 252
QuotedDollarStarLoop = 253
UnquotedArraySplit = 254
CommandOutputArraySplit = 255
PositionalArgsInString = 256
SingleIterationLoop = 257
BareCommandNameAssignment = 258
BareRead = 259
RedundantSpacesInEcho = 260
RedundantReturnStatus = 261
EchoToSedSubstitution = 262
UnquotedWordBetweenQuotes = 263
UnquotedTrClass = 264
UnquotedVariableInTest = 265
SuWithoutFlag = 266
GlobAssignedToVariable = 267
CommandSubstitutionInAlias = 268
FunctionInAlias = 269
UnquotedPathInMkdir = 270
DeprecatedTempfileCommand = 271
EgrepDeprecated = 272
FgrepDeprecated = 273
DefaultValueInColonAssign = 274
XargsWithInlineReplace = 275
XPrefixInTest = 276
LeadingGlobInGrepPattern = 277
TrapSignalNumbers = 278
GetoptsInvalidFlagHandler = 279
DoubleQuoteNesting = 280
EnvPrefixCommandOnly = 281
MixedQuoteWord = 282
BraceVariableBeforeBracket = 283
UnquotedTrRange = 284
LsPipedToXargs = 285
LsInSubstitution = 286
EchoInsideCommandSubstitution = 287
GrepOutputInTest = 288
AvoidLetBuiltin = 289
EchoHereDoc = 290
ArrayIndexArithmetic = 291
ArithmeticScoreLine = 292
DollarInArithmetic = 293
EscapedUnderscore = 294
SingleQuoteBackslash = 295
LiteralBackslash = 296
BackslashBeforeCommand = 297
SuspectClosingQuote = 298
LiteralBraces = 299
HeredocEndSpace = 300
TrailingDirective = 301
LiteralBackslashInSingleQuotes = 302
LiteralControlEscape = 303
FunctionBodyWithoutBraces = 304
LocalDeclareCombined = 305
IfsEqualsAmbiguity = 306
MissingShebangLine = 307
DuplicateShebangFlag = 308
LinebreakBeforeAnd = 309
SpacedTabstripClose = 310
AmpersandSemicolon = 311
CombineAppends = 312
ShebangShellPolicy = 313
ShebangFormPolicy = 314
ScriptSizeThreshold = 315
MissingFileDescription = 316
TodoFormat = 317
MissingFunctionDoc = 318
FunctionDocContent = 319
MissingMainEntrypoint = 320
Implementations§
Trait Implementations§
impl Copy for Rule
impl Eq for Rule
Source§impl FromIterator<Rule> for RuleSet
impl FromIterator<Rule> for RuleSet
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more