Skip to content

Commit

Permalink
fix(Windows): All tests pass with team whitespace rules (hapi-swagger…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan BROOKS committed Dec 28, 2016
1 parent 5468b13 commit 05b9bc7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.js eol=lf
*.json eol=lf
*.sh eol=lf
*.md eol=lf
*.conf eol=lf
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 05b9bc7

Please sign in to comment.