Skip to content

Commit

Permalink
style: clean up whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmecham committed Apr 8, 2022
1 parent a7d09fe commit d8a5499
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[*]
end_of_line = lf
insert_final_newline = true
; trim_trailing_whitespace = true
trim_trailing_whitespace = true

[*.{js,json}]
charset = utf-8
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ module.exports = {
"quotes": [ "error", "double" ],
"semi": [ "error", "always" ]
}
};
};
2 changes: 1 addition & 1 deletion .nova/Configuration.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"workspace.name" : "RuboCop Extension"
}
}
2 changes: 1 addition & 1 deletion .nova/Template.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"variables" : [

]
}
}
6 changes: 3 additions & 3 deletions Source/Scripts/RuboCopProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ class RuboCopProcess {
async execute(content, uri) {
let workspaceOverlap = uri.indexOf(nova.workspace.path);
let relativePath = '';

if (workspaceOverlap != -1) {
relativePath = uri.substring(workspaceOverlap + nova.workspace.path.length + 1);
} else {
relativePath = uri;
}

const defaultArguments = [
"rubocop",
"--format=json",
Expand Down Expand Up @@ -148,7 +148,7 @@ class RuboCopProcess {
const jsonOutput = extractJSON(output);
const parsedOutput = JSON.parse(jsonOutput);
const offenses = parsedOutput["files"][0]["offenses"];

// TODO: Enable a "Debug" Preference
// console.info(JSON.stringify(offenses, null, " "));

Expand Down

0 comments on commit d8a5499

Please sign in to comment.