Visitar URL original
Is it possible to change "DefocusCommandPlugin" verb? · Issue #1287 · Quick/Quick · GitHub
Skip to content

Is it possible to change "DefocusCommandPlugin" verb? #1287

Description

@tahirmt
  • I have read CONTRIBUTING and have done my best to follow them.

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions