What did you do?
I ran swift package plugin --allow-writing-to-package-directory format-source-code. The plugin DefocusCommandPlugin uses sourceCodeFormatting as intent (
|
capability: .command(intent: .sourceCodeFormatting(), permissions: [.writeToPackageDirectory(reason: "Remove focus from Quick tests")]), |
) which does not correctly align with the purpose of the command plugin. Can we change the intent to be a custom intent that is more descriptive and has less potential to conflict with anyone else's code formatting plugins?
What did you expect to happen?
I would like the verb to be changed to something descriptive and unique
What actually happened instead?
N/A
Environment
List the software versions you're using:
- Quick: 7.6.0
- Nimble: 13.3.0
- Xcode Version: 15.3 (15E5202a) (Open Xcode; In menubar: Xcode > About Xcode)
- Swift Version: * Xcode Default* (Open Xcode Preferences; Components > Toolchains. If none, use
Xcode Default.)
Please also mention which package manager you used and its version. Delete the
other package managers in this list:
- CocoaPods: ?.?.? (Use
pod --version in Terminal)
- Carthage: ?.? (Use
carthage version in Terminal)
- Swift Package Manager 5.9.0 (swiftpm-???) (Use
swift build --version in Terminal)
Project that demonstrates the issue
Please link to a project we can download that reproduces the issue. Feel free
to delete this section if it's not relevant to the issue (eg - feature request).
The project should be short, self-contained, and correct example.
What did you do?
I ran
swift package plugin --allow-writing-to-package-directory format-source-code. The pluginDefocusCommandPluginusessourceCodeFormattingas intent (Quick/Package@swift-5.9.swift
Line 28 in d26dda0
What did you expect to happen?
I would like the verb to be changed to something descriptive and unique
What actually happened instead?
N/A
Environment
List the software versions you're using:
Xcode Default.)Please also mention which package manager you used and its version. Delete the
other package managers in this list:
pod --versionin Terminal)carthage versionin Terminal)swift build --versionin Terminal)Project that demonstrates the issue
Please link to a project we can download that reproduces the issue. Feel free
to delete this section if it's not relevant to the issue (eg - feature request).
The project should be short, self-contained, and correct example.