Repository navigation
Detect Objective-C++ and Swift Package Manager files - #39
Merged
Merged
Conversation
The Click floor moves from >=8.3.1 to >=8.3.3 so an install can no longer resolve to a vulnerable Click release. CLAUDE.md quoted the old floor. The package author email is now peter@kospex.io. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
.mm now reports as Objective-C++, a new language. It was missing from EXT_FILETYPES and reported Unknown. Package.swift is tagged build, dependencies, Swift and SwiftPM. Its lock file Package.resolved is tagged dependencies, Swift and SwiftPM and reports as JSON. A Swift package previously looked like it declared no dependencies. Package.resolved is mapped by basename because Carthage's Cartfile.resolved shares the extension and is plain text. The docs site carried vocabulary counts and a version from 0.0.19. They now match the code: 121 tags, 87 filetypes, 33 languages. Closes #38 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #38.
Summary
.mmnow reports asObjective-C++, a new language. It was missing fromEXT_FILETYPESand reportedUnknown.Package.swiftis taggedbuild,dependencies,SwiftandSwiftPM. A Swift package previously looked like it declared no dependencies.Package.resolvedis taggeddependencies,SwiftandSwiftPM, and reports asJSONinstead ofUnknown.>=8.3.1to>=8.3.3so an install can no longer resolve to a vulnerable Click release, and the package author email changes. These are in their own commit.Before and after
Design notes
SwiftPMis the tool's own short name: the official documentation is titled Package Manager (SwiftPM).Package.resolvedgets its filetype by basename, not extension. Carthage'sCartfile.resolvedshares.resolvedand is plain text; a test guards that it is not claimed.build, matchinguv.lockandpnpm-lock.yaml.Things to note
SwiftandSwiftPMare new tags andObjective-C++is a new language name. All additive, so kospex is unaffected until a re-sync.Testing
pytest: 721 passed. The twelve new tests were written first; the seven covering new behaviour failed before the change, and the rest are guards against over-claiming.src/tests/:file.mm,Package.swift,Package.resolved.panopticas assessshows each with the expected language and tags.🤖 Generated with Claude Code