Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jscpd url fixes #4352

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/descriptors/copypaste_jscpd.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description: How to use jscpd (configure, ignore files, ignore errors, help & ve

JSCPD browses all files of your repository to detect excessive copy-pastes

If you need to ignore folders,files or file extensions, use glob expressions `ignore` property of local `.jscpd.json` file
If you need to ignore folders, files or file extensions, use glob expressions `ignore` property of local `.jscpd.json` file

Example:

Expand All @@ -35,10 +35,10 @@ Example:
## jscpd documentation

- Version in MegaLinter: **4.0.5**
- Visit [Official Web Site](https://github.com/kucherenko/jscpd/tree/master/packages/jscpd#readme){target=_blank}
- See [How to configure jscpd rules](https://github.com/kucherenko/jscpd/tree/master/packages/jscpd#config-file){target=_blank}
- Visit [Official Web Site](https://github.com/kucherenko/jscpd/tree/master/apps/jscpd#readme){target=_blank}
- See [How to configure jscpd rules](https://github.com/kucherenko/jscpd/tree/master/apps/jscpd#config-file){target=_blank}
- If custom `.jscpd.json` config file isn't found, [.jscpd.json](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/.jscpd.json){target=_blank} will be used
- See [How to disable jscpd rules in files](https://github.com/kucherenko/jscpd/tree/master/packages/jscpd#ignored-blocks){target=_blank}
- See [How to disable jscpd rules in files](https://github.com/kucherenko/jscpd/tree/master/apps/jscpd#ignored-blocks){target=_blank}

[![jscpd - GitHub](https://gh-card.dev/repos/kucherenko/jscpd.svg?fullname=)](https://github.com/kucherenko/jscpd){target=_blank}

Expand Down
8 changes: 4 additions & 4 deletions megalinter/descriptors/copypaste.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ linters:
# JSCPD
- class: JsCpdLinter
linter_name: jscpd
linter_url: https://github.com/kucherenko/jscpd/tree/master/packages/jscpd
linter_url: https://github.com/kucherenko/jscpd/tree/master/apps/jscpd
linter_repo: https://github.com/kucherenko/jscpd
linter_speed: 1
linter_text: |
JSCPD browses all files of your repository to detect excessive copy-pastes

If you need to ignore folders,files or file extensions, use glob expressions `ignore` property of local `.jscpd.json` file
If you need to ignore folders, files or file extensions, use glob expressions `ignore` property of local `.jscpd.json` file

Example:

Expand All @@ -32,8 +32,8 @@ linters:
}
```
linter_banner_image_url: https://raw.githubusercontent.com/kucherenko/jscpd/master/assets/logo.svg?sanitize=true
linter_rules_configuration_url: https://github.com/kucherenko/jscpd/tree/master/packages/jscpd#config-file
linter_rules_inline_disable_url: https://github.com/kucherenko/jscpd/tree/master/packages/jscpd#ignored-blocks
linter_rules_configuration_url: https://github.com/kucherenko/jscpd/tree/master/apps/jscpd#config-file
linter_rules_inline_disable_url: https://github.com/kucherenko/jscpd/tree/master/apps/jscpd#ignored-blocks
linter_megalinter_ref_url: https://github.com/kucherenko/jscpd#who-uses-jscpd
config_file_name: .jscpd.json
cli_lint_mode: project
Expand Down
Loading