From d9056c160c85f07da48ec507df8fcf99512676e1 Mon Sep 17 00:00:00 2001 From: Alexander Wunschik Date: Mon, 5 Dec 2016 11:05:55 +0100 Subject: [PATCH 1/6] added code-climate configs --- .codeclimate.yml | 26 ++++++++++++++++++++++++++ .csslintrc | 3 +++ .eslintrc | 6 ++++++ .mdlrc | 6 ++++++ 4 files changed, 41 insertions(+) create mode 100644 .codeclimate.yml create mode 100644 .csslintrc create mode 100644 .eslintrc create mode 100644 .mdlrc diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 00000000..abd4ff1c --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,26 @@ +languages: + JavaScript: true +engines: + eslint: + enabled: true + csslint: + enabled: true + markdownlint: + enabled: true + duplication: + enabled: true + config: + languages: + javascript: + mass_threshold: 300 + fixme : + enabled: true +ratings: + paths: + - "**/*.js" + - "**/*.css" + - "**/*.md" +exclude_paths: + - "dist/**/*" + - "docs/**/*" + - "examples/**/*" diff --git a/.csslintrc b/.csslintrc new file mode 100644 index 00000000..4ed5b8c3 --- /dev/null +++ b/.csslintrc @@ -0,0 +1,3 @@ +{ + "box-sizing": false +} diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..00d60a6e --- /dev/null +++ b/.eslintrc @@ -0,0 +1,6 @@ +{ + "rules": { + "complexity": [2, 50], + "max-statements": [2, 100] + } +} diff --git a/.mdlrc b/.mdlrc new file mode 100644 index 00000000..d1fda796 --- /dev/null +++ b/.mdlrc @@ -0,0 +1,6 @@ +// Markdown Lint Rules +// https://github.com/mivok/markdownlint/blob/master/docs/RULES.md + +rules + "~MD012", // alert on multiple consecutive blank lines + "~MD013", // line length should be no more than 80 characters From 8b184393436502f81cdaed93f65d3abee4521c82 Mon Sep 17 00:00:00 2001 From: Alexander Wunschik Date: Mon, 5 Dec 2016 11:21:15 +0100 Subject: [PATCH 2/6] removed TODO; removed trailing spaces --- HISTORY.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 0b7bad0d..e588235e 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -14,7 +14,7 @@ http://visjs.org - Fixed #2170: Improved the contribution docs (#1991, #2158, #2178, #2183, #2213, #2218, #2219) - Implemented #1969: generate individual css files for network and timeline (#1970) - Cleanup bower.json (#1968) -- Removed feature-request page from website (TODO) +- Fixed #2114: Removed feature-request page from website - Distinguish better between `devDependencies` and `dependencies` (#1967) - Typos and minor docs improvements (#1958, #2028, #2050, #2093, #2222, #2223, #2224) - Replaced `gulp-minify-css` with `gulp-clean-css` (#1953) @@ -266,7 +266,7 @@ http://visjs.org ### General - Fixed #1353: Custom bundling with browserify requiring manual installation - of `babelify`. + of `babelify`. ### Network @@ -451,7 +451,7 @@ http://visjs.org - Fixed #1033: Moved item data not updated in DataSet when using an asynchronous `onMove` handler. - Fixed #239: Do not zoom/move the window when the mouse is on the left panel - with group labels. + with group labels. ## 2015-07-03, version 4.4.0 From 69da64972fa212e6a4cca83e61f0b03f65004197 Mon Sep 17 00:00:00 2001 From: Alexander Wunschik Date: Mon, 5 Dec 2016 11:26:40 +0100 Subject: [PATCH 3/6] disabled csslint rule box-model --- .csslintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.csslintrc b/.csslintrc index 4ed5b8c3..7e217fd9 100644 --- a/.csslintrc +++ b/.csslintrc @@ -1,3 +1,4 @@ { + "box-model": false, "box-sizing": false } From de7808885abb3d44bb6393a073c0fc572f0668f0 Mon Sep 17 00:00:00 2001 From: Alexander Wunschik Date: Tue, 6 Dec 2016 11:08:30 +0100 Subject: [PATCH 4/6] csslint deactivated 'order-alphabetical' --- .csslintrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.csslintrc b/.csslintrc index 7e217fd9..b3f05310 100644 --- a/.csslintrc +++ b/.csslintrc @@ -1,4 +1,5 @@ { "box-model": false, - "box-sizing": false + "box-sizing": false, + "order-alphabetical": false } From 008371a26e6b4678b72ad2d5d82bb32690a82d20 Mon Sep 17 00:00:00 2001 From: Alexander Wunschik Date: Tue, 6 Dec 2016 11:26:54 +0100 Subject: [PATCH 5/6] csslint deactivated 'adjoining-classes' --- .csslintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.csslintrc b/.csslintrc index b3f05310..2b014c6a 100644 --- a/.csslintrc +++ b/.csslintrc @@ -1,4 +1,5 @@ { + "adjoining-classes": false, "box-model": false, "box-sizing": false, "order-alphabetical": false From 0b73a13910db55484181536ccafaa416d67abee3 Mon Sep 17 00:00:00 2001 From: Alexander Wunschik Date: Tue, 6 Dec 2016 12:55:28 +0100 Subject: [PATCH 6/6] mdlint: allow dollar signs used before commands without showing output --- .mdlrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.mdlrc b/.mdlrc index d1fda796..bb5535c3 100644 --- a/.mdlrc +++ b/.mdlrc @@ -4,3 +4,4 @@ rules "~MD012", // alert on multiple consecutive blank lines "~MD013", // line length should be no more than 80 characters + "~MD014", // Dollar signs used before commands without showing output