🔏
starhackit
  • README
  • Getting started
    • Requirements
    • Quick Start
  • Frontend
    • The Frontend
      • Npm scripts
    • Unit testing
    • End 2 End Testing
    • Multi Application
    • Production Build
    • Internationalization
    • Configuration
    • Cut and Paste detector
    • Webpack
  • Backend
    • Node Backend
      • Npm scripts
    • Development Enviromnent with docker-compose
    • Testing
      • Code Coverage
    • Configuration
    • Debugging
    • Database
    • Http Server
      • CORS
    • Authentication
      • Social Authentication
      • Local Authentication with JWT
    • Email
    • Redis
    • Api Model
      • Api Mocking
  • Deployment
    • Build, Tag and Push Docker Images
    • Releasing
    • Deploy Infrastructure with GruCloud
    • Deploy with Ansible
Powered by GitBook
On this page

Was this helpful?

  1. Frontend

Cut and Paste detector

PreviousConfigurationNextWebpack

Last updated 5 years ago

Was this helpful?

is used for the copy and paste detection.

client $ npm run cpd
> jscpd -r console --format 'javascript,typescript' ./src


┌────────────┬────────────────┬─────────────┬──────────────┬──────────────────┬───────┐
│ Format     │ Files analyzed │ Total lines │ Clones found │ Duplicated lines │ %     │
├────────────┼────────────────┼─────────────┼──────────────┼──────────────────┼───────┤
│ javascript │ 89             │ 4016        │ 5            │ 60               │ 1.49% │
├────────────┼────────────────┼─────────────┼──────────────┼──────────────────┼───────┤
│ typescript │ 3              │ 31          │ 0            │ 0                │ 0%    │
├────────────┼────────────────┼─────────────┼──────────────┼──────────────────┼───────┤
│ Total:     │ 92             │ 4047        │ 5            │ 60               │ 1.48% │
└────────────┴────────────────┴─────────────┴──────────────┴──────────────────┴───────┘
jspcd