Skip to content

Commit

Permalink
Gendarme, again
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Dec 29, 2022
1 parent b4016e0 commit 29c7bcf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions AltCover.DotNet/Options.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ open System.Linq

[<RequireQualifiedAccess>]
module Options =
[<AutoSerializable(false)>]
[<SuppressMessage("Gendarme.Rules.Maintainability",
"AvoidLackOfCohesionOfMethodsRule",
Justification = "It's a property bag")>]
Expand All @@ -23,9 +24,7 @@ module Options =
member self.FailFast = self.FailFast
member self.ShowSummary = self.ShowSummary

[<SuppressMessage("Gendarme.Rules.Serialization",
"RelaxedMarkAllNonSerializableFieldsRule",
Justification = "Unlikely to happen")>]
[<AutoSerializable(false)>]
[<SuppressMessage("Gendarme.Rules.Maintainability",
"AvoidLackOfCohesionOfMethodsRule",
Justification = "It's a property bag")>]
Expand Down Expand Up @@ -82,9 +81,7 @@ module Options =
member self.SummaryFormat = self.SummaryFormat
member self.Verbosity = self.Verbosity

[<SuppressMessage("Gendarme.Rules.Serialization",
"RelaxedMarkAllNonSerializableFieldsRule",
Justification = "Unlikely to happen")>]
[<AutoSerializable(false)>]
[<SuppressMessage("Gendarme.Rules.Maintainability",
"AvoidLackOfCohesionOfMethodsRule",
Justification = "It's a property bag")>]
Expand Down Expand Up @@ -194,6 +191,10 @@ module Options =
member self.Trivia = self.Trivia

#if RUNNER
[<AutoSerializable(false)>]
[<SuppressMessage("Gendarme.Rules.Maintainability",
"AvoidLackOfCohesionOfMethodsRule",
Justification = "It's a property bag")>]
type Logging() =
let wl (w: System.IO.TextWriter) (x: string) = w.WriteLine x
member val Info = Action<string>(wl Console.Out) with get, set
Expand Down

0 comments on commit 29c7bcf

Please sign in to comment.