From 7b9cbd09de7ac6e3a25aadfec704ed43ef3e170e Mon Sep 17 00:00:00 2001 From: Margret Riegert Date: Mon, 2 Dec 2024 13:07:51 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sijawusz Pur Rahnama --- src/ameba.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ameba.ts b/src/ameba.ts index 9c2c085..d420436 100644 --- a/src/ameba.ts +++ b/src/ameba.ts @@ -44,7 +44,7 @@ export class Ameba { args.push('-'); // Disabling these as they're common when typing - args.push('--except', 'Lint/Formatting,Layout/TrailingBlankLines,Layout/TrailingWhitespace,Naming/Filename'); + args.push('--except', 'Lint/Formatting,Layout/TrailingBlankLines,Layout/TrailingWhitespace'); } const configFile = path.join(dir, this.config.configFileName); @@ -169,8 +169,6 @@ export class Ameba { diagnosticUri = document.uri; } else if (path.isAbsolute(source.path)) { diagnosticUri = Uri.parse(source.path) - } else if (document.isUntitled) { - diagnosticUri = document.uri; } else { diagnosticUri = Uri.parse(path.join(dir, source.path)); }