@@ -112,7 +112,7 @@ module Lint =
112112 { CancellationToken: CancellationToken option
113113 ErrorReceived: Suggestion .LintWarning -> unit
114114 ReportLinterProgress: ProjectProgress -> unit
115- Configuration : Configuration .Configuration }
115+ Rules : Configuration .LoadedRules }
116116
117117 type Context =
118118 { IndentationRuleContext: Map < int , bool * int >
@@ -206,7 +206,7 @@ module Lint =
206206 | Some( x) -> not x.IsCancellationRequested
207207 | None -> true
208208
209- let enabledRules = Configuration.flattenConfig lintInfo.Configuration
209+ let enabledRules = lintInfo.Rules
210210
211211 let lines = String.toLines fileInfo.Text |> Array.map ( fun ( line , _ , _ ) -> line)
212212 let allRuleNames =
@@ -410,7 +410,7 @@ module Lint =
410410
411411 let parseFilesInProject files projectOptions =
412412 let lintInformation =
413- { Configuration = config
413+ { Rules = Configuration.flattenConfig config
414414 CancellationToken = optionalParams.CancellationToken
415415 ErrorReceived = warningReceived
416416 ReportLinterProgress = projectProgress }
@@ -511,7 +511,7 @@ module Lint =
511511
512512 optionalParams.ReceivedWarning |> Option.iter ( fun func -> func warning)
513513 let lintInformation =
514- { Configuration = config
514+ { Rules = Configuration.flattenConfig config
515515 CancellationToken = optionalParams.CancellationToken
516516 ErrorReceived = warningReceived
517517 ReportLinterProgress = Option.defaultValue ignore optionalParams.ReportLinterProgress }
@@ -554,7 +554,7 @@ module Lint =
554554 optionalParams.ReceivedWarning |> Option.iter ( fun func -> func warning)
555555
556556 let lintInformation =
557- { Configuration = config
557+ { Rules = Configuration.flattenConfig config
558558 CancellationToken = optionalParams.CancellationToken
559559 ErrorReceived = warningReceived
560560 ReportLinterProgress = Option.defaultValue ignore optionalParams.ReportLinterProgress }
0 commit comments