From 8d249c207a912c66df17290abedc2b7a36a3ea75 Mon Sep 17 00:00:00 2001 From: webwarrior Date: Tue, 9 Jan 2024 14:20:04 +0100 Subject: [PATCH] Core.Application: make inline source filepath less confusing When linting source provided directly as command line argument, change displayed file name to "" so it's clear that inline source is being linted, rather than confusing "/home/user/Dog.Test.fsx". --- src/FSharpLint.Core/Application/Lint.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FSharpLint.Core/Application/Lint.fs b/src/FSharpLint.Core/Application/Lint.fs index 2c08685b0..8a29a6eed 100644 --- a/src/FSharpLint.Core/Application/Lint.fs +++ b/src/FSharpLint.Core/Application/Lint.fs @@ -519,7 +519,7 @@ module Lint = { ParseFile.Text = parsedFileInfo.Source ParseFile.Ast = parsedFileInfo.Ast ParseFile.TypeCheckResults = parsedFileInfo.TypeCheckResults - ParseFile.File = "/home/user/Dog.Test.fsx" } + ParseFile.File = "" } lint lintInformation parsedFileInfo