@@ -52,7 +52,10 @@ type internal DocContent
5252 let mutable counter = 0
5353
5454 fun ( url : string ) ->
55- if url.StartsWith( " http" ) || url.StartsWith( " https" ) then
55+ if
56+ url.StartsWith( " http" , StringComparison.Ordinal)
57+ || url.StartsWith( " https" , StringComparison.Ordinal)
58+ then
5659 counter <- counter + 1
5760 let ext = Path.GetExtension( url)
5861
@@ -134,8 +137,8 @@ type internal DocContent
134137 [ let inputFileName = Path.GetFileName( inputFileFullPath)
135138
136139 if
137- not ( inputFileName.StartsWith( " . " ))
138- && not ( inputFileName.StartsWith " _template" )
140+ not ( inputFileName.StartsWith( '.' ))
141+ && not ( inputFileName.StartsWith( " _template" , StringComparison.Ordinal ) )
139142 then
140143 let inputFileFullPath = Path.GetFullPath( inputFileFullPath)
141144
@@ -157,7 +160,7 @@ type internal DocContent
157160
158161 for subInputFolderFullPath in Directory.EnumerateDirectories( inputFolderAsGiven) do
159162 let subInputFolderName = Path.GetFileName( subInputFolderFullPath)
160- let subFolderIsSkipped = subInputFolderName.StartsWith " . "
163+ let subFolderIsSkipped = subInputFolderName.StartsWith '.'
161164 let subFolderIsOutput = subFolderIsOutput subInputFolderFullPath
162165
163166 if not subFolderIsOutput && not subFolderIsSkipped then
@@ -179,9 +182,9 @@ type internal DocContent
179182 =
180183 [ let name = Path.GetFileName( inputFileFullPath)
181184
182- if name.StartsWith( " . " ) then
185+ if name.StartsWith( '.' ) then
183186 printfn " skipping file %s " inputFileFullPath
184- elif not ( name.StartsWith " _template" ) then
187+ elif not ( name.StartsWith( " _template" , StringComparison.Ordinal ) ) then
185188 let isFsx = inputFileFullPath.EndsWith( " .fsx" , true , CultureInfo.InvariantCulture)
186189
187190 let isMd = inputFileFullPath.EndsWith( " .md" , true , CultureInfo.InvariantCulture)
@@ -510,7 +513,7 @@ type internal DocContent
510513
511514 for subInputFolderFullPath in Directory.EnumerateDirectories( inputFolderAsGiven) do
512515 let subInputFolderName = Path.GetFileName( subInputFolderFullPath)
513- let subFolderIsSkipped = subInputFolderName.StartsWith " . "
516+ let subFolderIsSkipped = subInputFolderName.StartsWith '.'
514517 let subFolderIsOutput = subFolderIsOutput subInputFolderFullPath
515518
516519 if subFolderIsOutput || subFolderIsSkipped then
@@ -1457,7 +1460,7 @@ type CoreBuildOptions(watch) =
14571460 let apiDocOtherFlags =
14581461 [ for (_ dllFile, otherFlags, _, _, _, _, _, _, _, _) in crackedProjects do
14591462 for otherFlag in otherFlags do
1460- if otherFlag.StartsWith( " -r:" ) then
1463+ if otherFlag.StartsWith( " -r:" , StringComparison.Ordinal ) then
14611464 if File.Exists( otherFlag.[ 3 ..]) then
14621465 yield otherFlag
14631466 else
@@ -1637,7 +1640,7 @@ type CoreBuildOptions(watch) =
16371640
16381641 // Used to resolve code references in content with respect to the API Docs model
16391642 let resolveInlineCodeReference ( s : string ) =
1640- if s.StartsWith( " cref:" ) then
1643+ if s.StartsWith( " cref:" , StringComparison.Ordinal ) then
16411644 let s = s.[ 5 ..]
16421645
16431646 match model.Resolver.ResolveCref s with
@@ -1775,7 +1778,7 @@ type CoreBuildOptions(watch) =
17751778 File.Delete file |> ignore
17761779
17771780 for subdir in Directory.EnumerateDirectories dir do
1778- if not ( Path.GetFileName( subdir) .StartsWith " . " ) then
1781+ if not ( Path.GetFileName( subdir) .StartsWith '.' ) then
17791782 clean subdir
17801783
17811784 let isOutputPathOK =
0 commit comments