Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuchard committed Aug 21, 2023
1 parent f1a902e commit e3626a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
atom.notifications.addError(
'You are using an unsupported version of puppet-lint!',
{
detail: 'Please upgrade your version of puppet-lint to >= 2.1.0.\n'
detail: 'Please upgrade your version of puppet-lint to >= 2.1.0.\n'
+ 'Check the README for further information.',
},
);
Expand All @@ -32,7 +32,7 @@ export default {
scope: 'file',
lintsOnChange: false,
lint: async (textEditor) => {
// To respect this project's .puppet-lint.rc execute puppet-lint from the root directory of this file's project
// to respect this project's .puppet-lint.rc execute puppet-lint from the root directory of this file's project
const filePath = textEditor.getPath();
const [projectPath, projectRelativeFilePath] = atom.project.relativizePath(filePath);

Expand Down Expand Up @@ -74,8 +74,8 @@ export default {
// Check for proper warnings and errors from stdout
if (info.length > 0) {
info.forEach((issue) => {
const line = Number.parseInt(issue.line) - 1;
const col = Number.parseInt(issue.column) - 1;
const line = Number.parseInt(issue.line, 10) - 1;
const col = Number.parseInt(issue.column, 10) - 1;

toReturn.push({
severity: issue.kind,
Expand Down

0 comments on commit e3626a8

Please sign in to comment.