mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Fixed description for VariableNameRule to reflect new responsibility.
This commit is contained in:
@@ -50,10 +50,11 @@ public struct VariableNameRule: ASTRule, ConfigurationProviderRule {
|
||||
public static let description = RuleDescription(
|
||||
identifier: "variable_name",
|
||||
name: "Variable Name",
|
||||
description: "Variable name should only contain alphanumeric characters and " +
|
||||
description: "Variable names should only contain alphanumeric characters and " +
|
||||
"start with a lowercase character or should only contain capital letters. " +
|
||||
"In an exception to the above, variable names may start with a capital letter " +
|
||||
"when they are declared static and immutable.",
|
||||
"when they are declared static and immutable. Variable names should not be too " +
|
||||
"long or too short.",
|
||||
nonTriggeringExamples: [
|
||||
"let myLet = 0",
|
||||
"var myVar = 0",
|
||||
|
||||
Reference in New Issue
Block a user