Open mman opened 1 month ago
Just to add, trying to build from Xcode 16 produces the following error:
internalError("invalid plugin capability command(intent: PackageModel.PluginCommandIntent.custom(verb: \"lint-source-code\", description: \"Lint source code for a specified target.\"), permissions: [])")
Synced to Apple’s issue tracker as rdar://137587533
The warning about CMakeLists.txt should be fixed on main
and thus in the next swift-format release.
error: Plugin is declared with the `buildTool` capability, but doesn't conform to the `BuildToolPlugin` protocol
is very surprising because LintPlugin
is declared as a command plugin, not as a build plugin. Sending the issue to SwiftPM to look at this.
I would like to lint my code during the build process.
Not sure if I'm doing anything wrongly, since the plugin integration seems to be undocumented, but using this simple
Package.swift
:will result in the following error while running
swift build
.Problem 1. swift-format is looking at files it should ignore and there is no way to override
Seeing the problem with deployment target, I change the platforms to
.macOS(.v12)
and try again:Problem 2. swift-format integrated via plugin just does not work.
Is this expected? Anything I can do about it / contribute code?