Skip to content

Commit

Permalink
chore: add jscpd report
Browse files Browse the repository at this point in the history
  • Loading branch information
haru52 committed May 16, 2024
1 parent 109143e commit c04ff0d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"reporters": ["consoleFull", "markdown", "badge"],
"ignore": ["**/*.test.ts"]
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Mecial

[![Test](https://github.com/haru52/mecial/actions/workflows/test.yml/badge.svg)](https://github.com/haru52/mecial/actions/workflows/test.yml)
[![Copy/Paste](report/jscpd-badge.svg)](report/jscpd-report.md)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](https://haru52.github.io/mecial/CODE_OF_CONDUCT.html)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](https://commitizen.github.io/cz-cli/)

Expand Down
20 changes: 20 additions & 0 deletions report/jscpd-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions report/jscpd-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# Copy/paste detection report

> Duplications detection: Found 13 exact clones with 145(4.48%) duplicated lines in 89 (3 formats) files.
| Format | Files analyzed | Total lines | Total tokens | Clones found | Duplicated lines | Duplicated tokens |
| ---------- | -------------- | ----------- | ------------ | ------------ | ---------------- | ----------------- |
| javascript | 32 | 473 | 4060 | 0 | 0 (0%) | 0 (0%) |
| tsx | 38 | 1655 | 14733 | 11 | 129 (7.79%) | 1268 (8.61%) |
| typescript | 19 | 1112 | 9200 | 2 | 16 (1.44%) | 166 (1.8%) |
| **Total:** | **89** | **3240** | **27993** | **13** | **145 (4.48%)** | **1434 (5.12%)** |

0 comments on commit c04ff0d

Please sign in to comment.