Skip to content

Commit 7bfbe3b

Browse files
Make use of unused filename literal
1 parent b866821 commit 7bfbe3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/FSharpLint.Core/Application/Configuration.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ let loadConfig (configPath:string) =
577577
let defaultConfiguration =
578578
let assembly = typeof<Rules.Rule>.GetTypeInfo().Assembly
579579
let resourceName = Assembly.GetExecutingAssembly().GetManifestResourceNames()
580-
|> Seq.find (fun n -> n.EndsWith("fsharplint.json", System.StringComparison.Ordinal))
580+
|> Seq.find (fun n -> n.EndsWith(SettingsFileName, System.StringComparison.Ordinal))
581581
use stream = assembly.GetManifestResourceStream(resourceName)
582582
match stream with
583583
| null -> failwithf "Resource '%s' not found in assembly '%s'" resourceName (assembly.FullName)

src/FSharpLint.Core/Application/Lint.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ module Lint =
384384
| ex -> Error (string ex)
385385
| Default ->
386386
try
387-
Configuration.loadConfig "./fsharplint.json"
387+
Configuration.loadConfig $"./{Configuration.SettingsFileName}"
388388
|> Ok
389389
with
390390
| :? System.IO.FileNotFoundException ->

0 commit comments

Comments
 (0)