您好,我将SwiftLint 0.19.0作为pod在xcode 8.3.3中运行。
我在yaml文件中为identifier_name
规则添加了配置:
identifier_name:
min_length: 2
validates_start_with_lowercase: false
min_length
配置有效,但validates_start_with_lowercase
配置无效。
我在版本中看到validates_start_with_lowercase
作为选择加入配置是在 v0.19.0 中作为增强功能添加的。
我的配置有问题吗?
其他人有同样的问题吗?
例如,SwiftLint 在以下位置触发validates_start_with_lowercase
错误:
enum Cache {
case User
case Shared
case Public
}
谢谢
错误,该密钥实际上在实现中是错误的:我们在描述中打印validates_start_with_lowercase
,但使用validates_start_lowercase
进行读取。
您可以尝试使用validates_start_lowercase
来检查这是否是唯一的问题吗?
您好,我已经检查过 v0.20.0,现在可以使用了,感谢您的反应。
@ArthurMaroulier感谢您的反馈!
最有用的评论
您好,我已经检查过 v0.20.0,现在可以使用了,感谢您的反应。