Change rule to be enabled by default

This commit is contained in:
Marcelo Fabri
2017-09-11 02:26:26 -03:00
parent 3132c884f3
commit b95a9d6f3d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
##### Enhancements
* Add `fallthrough` opt-in rule that flags usage of `fallthrough`.
* Add `fallthrough` rule that flags usage of `fallthrough`.
[Marcelo Fabri](https://github.com/marcelofabri)
[#1834](https://github.com/realm/SwiftLint/issues/1834)
+1 -1
View File
@@ -2496,7 +2496,7 @@ public extension Foo {
Identifier | Enabled by default | Supports autocorrection | Kind
--- | --- | --- | ---
`fallthrough` | Disabled | No | idiomatic
`fallthrough` | Enabled | No | idiomatic
Fallthrough should be avoided.
@@ -8,7 +8,7 @@
import SourceKittenFramework
public struct FallthroughRule: ConfigurationProviderRule, OptInRule {
public struct FallthroughRule: ConfigurationProviderRule {
public var configuration = SeverityConfiguration(.warning)