@@ -69,8 +69,10 @@ let releaseBranch = "main"
6969let readme = " README.md"
7070let changelogFile = " CHANGELOG.md"
7171
72+ // fsharplint:disable FL0046
7273let READMElink = Uri ( Uri ( gitHubRepoUrl), $" blob/{releaseBranch}/{readme}" )
7374let CHANGELOGlink = Uri ( Uri ( gitHubRepoUrl), $" blob/{releaseBranch}/{changelogFile}" )
75+ // fsharplint:enable FL0046
7476
7577let changelogPath = rootDirectory </> changelogFile
7678
@@ -155,12 +157,14 @@ module dotnet =
155157 let fantomas args = DotNet.exec id " fantomas" args
156158
157159module FSharpAnalyzers =
160+ // fsharplint:disable FL0041
158161 type Arguments =
159162 | Project of string
160163 | Analyzers_ Path of string
161164 | Fail_ On_ Warnings of string list
162165 | Ignore_ Files of string list
163166 | Verbose
167+ // fsharplint:enable FL0041
164168
165169 interface IArgParserTemplate with
166170 member s.Usage = " "
@@ -563,6 +567,16 @@ let watchDocs ctx =
563567 let configuration = configuration ( ctx.Context.AllExecutingTargets)
564568 DocsTool.watch ( string configuration)
565569
570+ let selfCheck _ =
571+ let srcDir = rootDirectory </> " src"
572+ let consoleProj = srcDir </> " FSharpLint.Console"
573+ let sol = sln
574+
575+ DotNet.exec
576+ ( fun opts -> { opts with WorkingDirectory = consoleProj })
577+ " run"
578+ $" lint %s {sol}"
579+ |> failOnBadExitAndPrint
566580
567581let initTargets ( ctx : Context.FakeExecutionContext ) =
568582 BuildServer.install [ GitHubActions.Installer ]
@@ -614,6 +628,7 @@ let initTargets (ctx : Context.FakeExecutionContext) =
614628 Target.create " CleanDocsCache" cleanDocsCache
615629 Target.create " BuildDocs" buildDocs
616630 Target.create " WatchDocs" watchDocs
631+ Target.create " SelfCheck" selfCheck
617632
618633 //-----------------------------------------------------------------------------
619634 // Target Dependencies
0 commit comments