Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Basta is clone detection tool (copy/paste detector), support 100+ programming languages. Developed by Andrey Kucherenko. Example use: basta -t 10 /path/to/code
Duplication detection tool (copy-paste detector) for programming languages, support different type of programming languages like javascript, jsx, typescript, html, java, c, swift, php, go, python and other 150 languages...
npm install -g basta
or
yarn global add basta
Usage: basta [options] <path>
Basta is clone detection tool (copy/paste detector), support 100+ programming languages. Developed by Andrey Kucherenko.
Example usage: basta -t 10 /path/to/code
Options:
-V, --version output the version number
-l, --min-lines [number] min size of duplication in code lines (Default is 5)
-t, --threshold [number] threshold for duplication, in case duplications >= threshold basta will exit with error
-c, --config [string] path to config file (Default is .basta.json in <path>)
-e, --exclude [string] glob pattern for files what should be excluded from duplication detection
-r, --reporter [string] reporter to use (Default is console)
-o, --output [string] reporter to use (Default is ./report/)
-b, --blame blame authors of duplications (get information about authors from git)
-s, --silent Do not write detection progress and result to a console
-d, --debug show debug information(options list and selected files)
--list show list of all supported formats
--dontSkipComments don't skip comments
-h, --help output usage information
If file .basta.json
located in the root of project, values from the file will be used as defaults.
.basta.json
should be correct json file:
{
"exclude": [
"**/node_modules/**",
"**/*.min.js",
"**/*.!(vue|html)"
],
"path": "./fixtures/",
"threshold": 10,
"silent": true
}
Basta tool is continuously improved, all plans are here. Please feel free to add new feature requests.
FAQs
Basta is clone detection tool (copy/paste detector), support 100+ programming languages. Developed by Andrey Kucherenko. Example use: basta -t 10 /path/to/code
The npm package basta receives a total of 0 weekly downloads. As such, basta popularity was classified as not popular.
We found that basta demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.