mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Change rule to be enabled by default
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user