{"id":16923243,"url":"https://github.com/kucherenko/basta","last_synced_at":"2025-04-11T17:01:50.530Z","repository":{"id":66225051,"uuid":"101784860","full_name":"kucherenko/basta","owner":"kucherenko","description":"Duplication detection tool (copy-paste detector), support over 150 programming languages","archived":false,"fork":false,"pushed_at":"2017-11-06T10:27:28.000Z","size":1133,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T13:02:24.987Z","etag":null,"topics":["code-quality","copy-paste","cpd","duplication","quality","quality-measures"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kucherenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-29T16:50:58.000Z","updated_at":"2023-06-14T12:12:35.000Z","dependencies_parsed_at":"2023-03-10T23:44:05.518Z","dependency_job_id":null,"html_url":"https://github.com/kucherenko/basta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kucherenko%2Fbasta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kucherenko%2Fbasta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kucherenko%2Fbasta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kucherenko%2Fbasta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kucherenko","download_url":"https://codeload.github.com/kucherenko/basta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248446653,"owners_count":21105130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-quality","copy-paste","cpd","duplication","quality","quality-measures"],"created_at":"2024-10-13T19:58:25.657Z","updated_at":"2025-04-11T17:01:50.521Z","avatar_url":"https://github.com/kucherenko.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basta\n[![npm](https://img.shields.io/npm/v/basta.svg?style=flat-square)](https://www.npmjs.com/package/basta)\n[![npm](https://img.shields.io/npm/l/basta.svg?style=flat-square)](https://www.npmjs.com/package/basta)\n\nDuplication 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...](docs/FORMATS.md)\n\n\n## Installation\n\n```\nnpm install -g basta\n```\nor \n\n```\nyarn global add basta\n```\n\n## Usage\n\n```\n  Usage: basta [options] \u003cpath\u003e\n\n  Basta is clone detection tool (copy/paste detector), support 100+ programming languages. Developed by Andrey Kucherenko.\n  Example usage: basta -t 10 /path/to/code\n\n\n  Options:\n\n    -V, --version             output the version number\n    -l, --min-lines [number]  min size of duplication in code lines (Default is 5)\n    -t, --threshold [number]  threshold for duplication, in case duplications \u003e= threshold basta will exit with error\n    -c, --config [string]     path to config file (Default is .basta.json in \u003cpath\u003e)\n    -e, --exclude [string]    glob pattern for files what should be excluded from duplication detection\n    -r, --reporter [string]   reporter to use (Default is console)\n    -o, --output [string]     reporter to use (Default is ./report/)\n    -b, --blame               blame authors of duplications (get information about authors from git)\n    -s, --silent              Do not write detection progress and result to a console\n    -d, --debug               show debug information(options list and selected files)\n    --list                    show list of all supported formats\n    --dontSkipComments        don't skip comments\n    -h, --help                output usage information\n```\n\nIf file `.basta.json` located in the root of project, values from the file will be used as defaults.\n`.basta.json` should be correct json file:\n```json\n{\n  \"exclude\": [\n    \"**/node_modules/**\",\n    \"**/*.min.js\",\n    \"**/*.!(vue|html)\"\n  ],\n  \"path\": \"./fixtures/\",\n  \"threshold\": 10,\n  \"silent\": true\n}\n```\n\n## TODO\n\nBasta tool is continuously improved, all plans are [here](TODO.md). Please feel free to add new feature requests.\n\n## License\n\n[The MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkucherenko%2Fbasta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkucherenko%2Fbasta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkucherenko%2Fbasta/lists"}