You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project with many internal Swift packages inside of it. The rules are properly applied to files in these packages. They are not applied to the Package.swift files of these packages though.
I am trying to sort the list of dependencies in each Package.swift. Using // swiftformat:sort:begin in both places: It works for code files in the package, but not for the Package.swift.
Am I doing something wrong, or is this expected? Is some additional configuration needed to cover these files?
The text was updated successfully, but these errors were encountered:
Can you share sample code of how you're using the swiftformat:sort:begin directive? The sortDeclaration rule sorts declarations (e.g. properties of types, or top-level global properties) but doesn't support sorting array elements.
I have a project with many internal Swift packages inside of it. The rules are properly applied to files in these packages. They are not applied to the
Package.swift
files of these packages though.I am trying to sort the list of dependencies in each
Package.swift
. Using// swiftformat:sort:begin
in both places: It works for code files in the package, but not for the Package.swift.Am I doing something wrong, or is this expected? Is some additional configuration needed to cover these files?
The text was updated successfully, but these errors were encountered: