Repository navigation
v1.5.1 — Accurate JSON report version, test suite hardening, and documentation review #48
ericodx
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
A patch release. The JSON report now carries the real tool version, the CLI integration tests are deterministic again, and every document was checked against the code and corrected.
What's new
Bug fix
JSON report
versionreflects the tool version (JSON report hardcodes version as 1.0.0 instead of the tool version #42, fix: report the tool version in the JSON report #43, fix(tests): expect Version.current in the end-to-end JSON test #47): The top-levelversionfield was hardcoded as"1.0.0"in every release. It is now the same stringswift-cpd --versionprints.Test suite hardening
swift-cpdexecutable is found reliably (fix(tests): resolve swift-cpd binary path independently of build architecture #37, fix(tests): resolve swift-cpd from the package root instead of Bundle.allBundles #40): CLI tests resolve the binary from the package root via#filePath, using an architecture-independent.build/debugpath instead ofBundle.allBundles. A missing binary now fails with a clearMissingExecutableError.runSwiftCPDfails after a deadline (ProcessTimeoutError) instead of hanging the suite.Documentation
enabledCloneTypes: [1, 2, 3, 4]), which the YAML parser rejects. It now uses a block list.// swiftcpd:ignorecomment has no effect. The tag must start its own comment line, and it suppresses the next non-blank line, or the whole{…}block when that line opens one.ignoreSameFileandignoreStructuraldefault tofalse. Only theswift-cpd inittemplate sets them totrue.sonar.swift.cpd.reportPathsproperty and abaseline:YAML key that were documented but do not exist..swift-cpd.ymlis read from the build's working directory.inittemplate, the supported YAML syntax, the exceptions to config precedence, and a cache section inDocs/USAGE.mdDocs/BUILDING.mdCONTRIBUTING.mdArgumentParsingError,ConfigurationError, the YAML loader and parser,CTokenizerScanner,CLanguageVocabulary,CompiledPatternandFileTokensChore
Package.resolvedis now tracked, and.gitignoreentries were updated.Requirements
gitonPATHwhen using--source-refInstallation
See the Installation Guide for Homebrew, pre-built binary, SPM plugin, and pre-commit hook setup.
Quality bar
What's Changed
Full Changelog: v1.5.0...v1.5.1
This discussion was created from the release v1.5.1 — Accurate JSON report version, test suite hardening, and documentation review.
All reactions