From 05b9bc7b75b5aff3c181f9f11cc33ad9c93b5bf0 Mon Sep 17 00:00:00 2001 From: Dan BROOKS Date: Tue, 27 Dec 2016 14:39:44 -0800 Subject: [PATCH] fix(Windows): All tests pass with team whitespace rules (#381) --- .editorconfig | 21 +++++++++++++++++++++ .gitattributes | 5 +++++ lib/index.js | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..efa2ce21 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +[*.md] +indent_style = space +indent_size = 4 + +[*.{js,json}] +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true +max_line_length = 120 + +[package.json] +insert_final_newline = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..44917357 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +*.js eol=lf +*.json eol=lf +*.sh eol=lf +*.md eol=lf +*.conf eol=lf diff --git a/lib/index.js b/lib/index.js index 600d333d..df5fda9d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -190,7 +190,7 @@ exports.register = function (plugin, options, next) { if (settings.debug === true) { pluginWithDependencies.route([{ method: 'GET', - path: settings.documentationPath + Path.sep + 'debug', + path: Path.join(settings.documentationPath, Path.sep, 'debug').split(Path.sep).join('/'), config: { auth: settings.auth },