chore(deps): update dependency jscpd to v5.3.2 - #278
renovate[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
This PR contains the following updates:
5.3.1→5.3.2Release Notes
kucherenko/jscpd (jscpd)
v5.3.2Compare Source
New Features
cargo buildalready prints lines likefunctionreprintis never used, with real name resolution, trait dispatch and macro expansion behind them. The dead-code run now reads that output, from the JSON ofcargo check(orbuild,clippy,test --no-run), and reports it next to everything else, through the same categories, reporters and--min-confidence, at 100% confidence.bastatakes--rust-diagnostics <file>, or-for a pipe:cargo check --all-targets --message-format=json | basta . --rust-diagnostics -.--dead-code,--dashboardand--health, so a Rust project gets its health badge from the check it already runs:cargo check --all-targets --message-format=json | jscpd . --health --rust-diagnostics - --reporters badge. The dead-code section of the config file takes the file asrustDiagnostics.--all-targetsreports twice is counted once. A diagnostic inside a macro expansion, or for a crate outside the scanned paths, is left out.--include-tests, at 85%.manifest_pathin a hand-edited or copied file is resolved from where the file lives.pubitem of a library, and it has no notion of an unused file, so jscpd reports neither for Rust.fixtures/dead-code-demo. (#1089)Bug Fixes
Text around an embedded code block was counted as code. A
tsblock in a markdown file, a<script>in a single-file component: jscpd scans these under the embedded language's own format, and the block keeps the line numbers of the file it lives in. The statistics read those numbers as if the block ran the whole way, which put the markdown prose and the component templates into the embedded language's line counts — both the total and the duplicated lines. On a repository with about 3600 markdown files the typescript row said 51.30% of lines were duplicated where the same code, scanned with-f typescript, said 3.37%. Neither number was a typo and both came from the same run.An embedded source now counts the lines its blocks occupy, and a clone counts the block lines it covers rather than everything its fragment reaches across. The two percentage columns agree again, which is the quickest way to check a run: they measure the same duplication, so when the line column sits far below the token column it is counting text that holds no code. Ordinary files are counted exactly as before. See
fixtures/embedded-stats-demo. (#1091, closes #1090)Every clone was one line short. Duplicated lines came from
end - start, so a clone covering lines 10 through 19 counted nine — while the console printed10 linesfor it, from its own arithmetic. Line counts are inclusive now, and the header and the table come from one place. Expect duplicated-line totals to rise by about one line per clone, and percentages with them. (#1091)Other
bastaon npm, crates.io and GitHub.Published Packages
basta@0.3.0on crates.iocpd-core@0.1.18on crates.iocpd-finder@0.1.18on crates.iocpd-reporter@0.1.19on crates.iocpd-tokenizer@0.1.17on crates.iojscpd@5.3.2on crates.iocpd@5.3.2on npmjscpd@5.3.2on npmjscpd-darwin-arm64@5.3.2on npmjscpd-darwin-x64@5.3.2on npmjscpd-linux-x64-gnu@5.3.2on npmjscpd-linux-arm64-gnu@5.3.2on npmjscpd-linux-x64-musl@5.3.2on npmjscpd-linux-arm64-musl@5.3.2on npmjscpd-windows-x64-msvc@5.3.2on npmjscpd-windows-arm64-msvc@5.3.2on npmjscpd==5.3.2on PyPIVerify
Archives are signed with Sigstore (keyless,
<asset>.sigstore.json)and carry SLSA build provenance. Replace
jscpd-linux-x64-gnu.tar.gzwith your asset:cosign verify-blob \ --bundle jscpd-linux-x64-gnu.tar.gz.sigstore.json \ --certificate-identity-regexp '^https://github\.com/kucherenko/jscpd/' \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ jscpd-linux-x64-gnu.tar.gz gh attestation verify jscpd-linux-x64-gnu.tar.gz --repo kucherenko/jscpd sha256sum --check --ignore-missing checksums.txtConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.