diff --git a/.cpd.yaml b/.cpd.yaml new file mode 100644 index 0000000..0122648 --- /dev/null +++ b/.cpd.yaml @@ -0,0 +1,18 @@ + +languages: + - javascript +files: + - "test/**/*" +exclude: + - "node_modules/*" +reporter: json + +languages-exts: + coffeescript: + - coffee + javascript: + - js + - es + - es5 + - es6 + - es7 diff --git a/.gitignore b/.gitignore index 6df55b3..c21e177 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ coverage.lcov *.class dependency-check-report.html linter.xml +duplication.json diff --git a/04 Lab 1 Software Quality.md b/04 Lab 1 Software Quality.md new file mode 100644 index 0000000..b870701 --- /dev/null +++ b/04 Lab 1 Software Quality.md @@ -0,0 +1,18 @@ + +# Software Quality + +Resources: + +1. [Lecture slides](https://docs.google.com/presentation/d/1Os28FNScFv2lHLqDfXGMPpSNf-Zbx0ByEGa0Ft8vxhk/edit?usp=sharing) + +This week you are starting the development process. + +Ensure you have private repo(s) in the 340CT-1819OCTJAN organisation. Names should be in the format xxx-yyy where xxx is your university username. + +Set up your .eslintrc file and add a jest section to your package.json + +Configure a range of tests and create aliases in your package.json + +Set up your pre-commit and pre-push hooks to automatically run the tests + +Start coding! diff --git a/exercises/01_nodejs/02_dynamic_website/bookshop/package.json b/exercises/01_nodejs/02_dynamic_website/bookshop/package.json index e603953..20ed145 100644 --- a/exercises/01_nodejs/02_dynamic_website/bookshop/package.json +++ b/exercises/01_nodejs/02_dynamic_website/bookshop/package.json @@ -14,6 +14,7 @@ "sqlite3": "^4.0.2" }, "devDependencies": { - "eslint": "^5.0.1" + "eslint": "^5.0.1", + "jscpd": "^0.6.25" } }