Skip to content

Commit

Permalink
Add ib_segue_action to default configuration (#5956)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny authored Jan 14, 2025
1 parent 079c52d commit 9b22cda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
[riley-williams](https://github.com/riley-williams)
[#5958](https://github.com/realm/SwiftLint/issues/5958)

* Add `ib_segue_action` to default configuration of `type_contents_order` rule on the same level as `ib_action` to define and document a standard position.
[SimplyDanny](https://github.com/SimplyDanny)
[#5524](https://github.com/realm/SwiftLint/issues/5524)

## 0.58.0: New Year’s Fresh Fold

#### Breaking
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct TypeContentsOrderConfiguration: SeverityBasedRuleConfiguration {
[.initializer],
[.typeMethod],
[.viewLifeCycleMethod],
[.ibAction],
[.ibAction, .ibSegueAction],
[.otherMethod],
[.subscript],
[.deinitializer],
Expand Down
2 changes: 1 addition & 1 deletion Tests/IntegrationTests/default_rule_configurations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ type_body_length:
opt-in: false
type_contents_order:
severity: warning
order: [[case], [type_alias, associated_type], [subtype], [type_property], [instance_property], [ib_inspectable], [ib_outlet], [initializer], [type_method], [view_life_cycle_method], [ib_action], [other_method], [subscript], [deinitializer]]
order: [[case], [type_alias, associated_type], [subtype], [type_property], [instance_property], [ib_inspectable], [ib_outlet], [initializer], [type_method], [view_life_cycle_method], [ib_action, ib_segue_action], [other_method], [subscript], [deinitializer]]
meta:
opt-in: true
type_name:
Expand Down

0 comments on commit 9b22cda

Please sign in to comment.