{"name":"jscpd-sarif-reporter","version":"4.2.5","private":false,"description":"Reporter for jscpd. Generate a report in SARIF format (https://github.com/oasis-tcs/sarif-spec).","keywords":["jscpd","cpd","reporter","jscpd-reporter","sarif"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com"},"homepage":"https://github.com/kucherenko/jscpd#readme","license":"MIT","main":"dist/index.js","module":"dist/index.mjs","typings":"dist/index.d.mts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./README.md":"./README.md"},"publishConfig":{"access":"public"},"directories":{"src":"src","test":"__tests__"},"repository":{"type":"git","url":"git+ssh://git@github.com/kucherenko/jscpd.git"},"bugs":{"url":"https://github.com/kucherenko/jscpd/issues"},"dependencies":{"colors":"^1.4.0","fs-extra":"^11.2.0","node-sarif-builder":"^4.1.0"},"devDependencies":{"@types/fs-extra":"^11.0.4","@types/node":"^22.5.2","nodemon":"^3.1.14","tsup":"^8.5.1","typescript":"^5.5.4","vitest":"^4.1.0","@jscpd/core":"4.2.5","@jscpd/finder":"4.2.5","@jscpd/tsconfig":"5.2.4"},"scripts":{"build":"tsup-node --dts","dev":"nodemon","test:dev":"vitest","typecheck":"tsc","cleanup":"rimraf ./dist .turbo"},"_id":"jscpd-sarif-reporter@4.2.5","_integrity":"sha512-O8LcM9grAS5yO5x1Q0yegYaYcUX//IEBEyvzGFSYCeo1YzHbMnAI6EK7oTrwD+7Csjvfg9m8B8G7OOxzcSlr9w==","_resolved":"/tmp/5afcce96998661b61bc919af4841fa1a/jscpd-sarif-reporter-4.2.5.tgz","_from":"file:jscpd-sarif-reporter-4.2.5.tgz","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-O8LcM9grAS5yO5x1Q0yegYaYcUX//IEBEyvzGFSYCeo1YzHbMnAI6EK7oTrwD+7Csjvfg9m8B8G7OOxzcSlr9w==","shasum":"2033c83df99459a64d41c1a19ffeccb28ab7f19d","tarball":"http://registry-npm.ywwl.com/jscpd-sarif-reporter/download/jscpd-sarif-reporter-4.2.5.tgz","fileCount":9,"unpackedSize":23604,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDVlbt+tQAsXb/73VNzcHA5hjjZ0iCLJZqLyYU3LKJvNAIgR1x3NIpdb7zUDXhdchZs1heqNOpHNFevcCZKadmJfqA="}],"size":5550,"noattachment":false,"key":"/jscpd-sarif-reporter/-/jscpd-sarif-reporter-4.2.5.tgz"},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jscpd-sarif-reporter_4.2.5_1780853266877_0.3927487514392076"},"_hasShrinkwrap":false,"readme":"# `@jscpd/sarif-reporter`\n\n> SARIF reporter for [jscpd](https://github.com/kucherenko/jscpd) — generates Static Analysis Results Interchange Format output for integration with GitHub Code Scanning and other SARIF-compatible tools.\n\nEach detected clone is reported as a `warning`-level SARIF result with precise file locations (line and column). If the overall duplication percentage exceeds the configured `--threshold`, an additional `error`-level result is emitted under the `duplications-threshold` rule.\n\nOutput file: `<output-dir>/jscpd-sarif.json`\n\n## Installation\n\n```bash\nnpm install @jscpd/sarif-reporter\n```\n\n## Usage\n\n```bash\njscpd --reporters sarif --output ./reports /path/to/source\n```\n\n## GitHub Code Scanning integration\n\nUpload the SARIF output to GitHub to surface duplication findings inline in pull requests:\n\n```yaml\n# .github/workflows/jscpd.yml\nname: Code duplication check\non: [push, pull_request]\n\njobs:\n  jscpd:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Run jscpd\n        run: npx jscpd --reporters sarif --output ./reports .\n\n      - name: Upload SARIF to GitHub Code Scanning\n        uses: github/codeql-action/upload-sarif@v3\n        with:\n          sarif_file: ./reports/jscpd-sarif.json\n```\n\nResults appear in the **Security → Code scanning** tab of your repository and as inline annotations on pull request diffs.\n\n## License\n\n[MIT](LICENSE) © Andrey Kucherenko\n","publish_time":1780853267046,"_cnpm_publish_time":1780853267046,"dist-tags":{"latest":"4.2.5"}}