@@ -19,53 +19,6 @@ initializeContext ()
19
19
open FSharp.Compiler .Diagnostics
20
20
open BasicTasks
21
21
22
- let verifyDocs =
23
- BuildTask.create " VerifyDocs" [ clean; build ] {
24
- let targets =
25
- !! " docs/**.fsx" |> Seq.map ( fun f -> f.ToString())
26
-
27
- let checker =
28
- FSharp.Compiler.CodeAnalysis.FSharpChecker.Create()
29
-
30
- let ignoredDiagnostics = Set.ofList [ 1182 ] // unused variable
31
-
32
- targets
33
- |> Seq.map ( fun target ->
34
- checker.Compile(
35
- [|
36
- " fsc.exe"
37
- " -o"
38
- @" aaaaaaaaaaa.exe"
39
- " -a"
40
- target
41
- |]
42
- )
43
- |> Async.RunSynchronously
44
- |> fst
45
- |> Seq.where ( fun diag ->
46
- match diag.Severity with
47
- | FSharpDiagnosticSeverity.Error
48
- | FSharpDiagnosticSeverity.Warning -> true
49
- | _ -> false ))
50
- |> Seq.collect id
51
- |> Seq.where ( fun c -> not ( ignoredDiagnostics.Contains c.ErrorNumber))
52
- |> Seq.sortBy ( fun diag ->
53
- ( match diag.Severity with
54
- | FSharpDiagnosticSeverity.Error -> 0
55
- | _ -> 1 ),
56
- diag.FileName.[.. 6 (* to only count the numeric part *) ])
57
- |> Seq.map ( fun diag ->
58
- ( match diag.Severity with
59
- | FSharpDiagnosticSeverity.Error -> " --- Error: "
60
- | _ -> " --- Warning: " )
61
- + diag.ToString())
62
- |> String.concat " \n "
63
- |> ( fun errorText ->
64
- match errorText with
65
- | " " -> ()
66
- | text -> raise ( System.Exception $" Errors:\n {text}" ))
67
- }
68
-
69
22
let sourceFiles =
70
23
!! " src/Plotly.NET/**/*.fs"
71
24
++ " src/Plotly.NET.ImageExport/**/*.fs"
@@ -74,33 +27,6 @@ let sourceFiles =
74
27
-- " **/obj/**/*.*"
75
28
-- " **/bin/**/*.*"
76
29
77
- let checkFormat =
78
- BuildTask.create " CheckFormat" [] {
79
- let result =
80
- sourceFiles
81
- |> Seq.map ( sprintf " \" %s \" " )
82
- |> String.concat " "
83
- |> sprintf " %s --check"
84
- |> DotNet.exec id " fantomas"
85
-
86
- if result.ExitCode = 0 then
87
- Trace.log " No files need formatting"
88
- elif result.ExitCode = 99 then
89
- failwith " Some files need formatting, check output for more info"
90
- else
91
- Trace.logf " Errors while formatting: %A " result.Errors
92
- }
93
-
94
- let format =
95
- BuildTask.create " Format" [] {
96
- let result =
97
- sourceFiles |> Seq.map ( sprintf " \" %s \" " ) |> String.concat " " |> DotNet.exec id " fantomas"
98
-
99
- if not result.OK then
100
- printfn " Errors while formatting all files: %A " result.Messages
101
- }
102
-
103
-
104
30
/// Full release of nuget package, git tag, and documentation for the stable version.
105
31
let _release =
106
32
BuildTask.createEmpty
0 commit comments