File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/FSharpLint.Core/Application Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -596,7 +596,7 @@ let loadConfig (configPath:string) =
596596let defaultConfiguration =
597597 let assembly = typeof< Rules.Rule>. GetTypeInfo() .Assembly
598598 let resourceName = Assembly.GetExecutingAssembly() .GetManifestResourceNames()
599- |> Seq.find ( fun n -> n.EndsWith( " fsharplint.json " , System.StringComparison.Ordinal))
599+ |> Seq.find ( fun n -> n.EndsWith( SettingsFileName , System.StringComparison.Ordinal))
600600 use stream = assembly.GetManifestResourceStream( resourceName)
601601 match stream with
602602 | null -> failwithf " Resource '%s ' not found in assembly '%s '" resourceName ( assembly.FullName)
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ module Lint =
383383 | ex -> Error ( string ex)
384384 | Default ->
385385 try
386- Configuration.loadConfig " ./fsharplint.json "
386+ Configuration.loadConfig $ " ./{Configuration.SettingsFileName} "
387387 |> Ok
388388 with
389389 | :? System.IO.FileNotFoundException ->
You can’t perform that action at this time.
0 commit comments