From 95fb25c087e0b42cd1ea008fd410a8f30f23a173 Mon Sep 17 00:00:00 2001 From: dungpa Date: Thu, 16 Jul 2015 23:57:28 +0200 Subject: [PATCH] Default value should be a static property Fix #105. --- src/FSharpLint.Application/AssemblyInfo.fs | 24 +++++++++---------- src/FSharpLint.Application/Lint.fs | 3 +-- src/FSharpLint.Application/Lint.fsi | 2 +- src/FSharpLint.Console/AssemblyInfo.fs | 24 +++++++++---------- src/FSharpLint.FAKE/AssemblyInfo.fs | 24 +++++++++---------- src/FSharpLint.Framework/AssemblyInfo.fs | 24 +++++++++---------- .../AssemblyInfo.fs | 24 +++++++++---------- src/FSharpLint.Rules/AssemblyInfo.fs | 24 +++++++++---------- 8 files changed, 74 insertions(+), 75 deletions(-) diff --git a/src/FSharpLint.Application/AssemblyInfo.fs b/src/FSharpLint.Application/AssemblyInfo.fs index 19e30e715..0ae4d298a 100644 --- a/src/FSharpLint.Application/AssemblyInfo.fs +++ b/src/FSharpLint.Application/AssemblyInfo.fs @@ -1,12 +1,12 @@ -namespace System -open System.Reflection - -[] -[] -[] -[] -[] -do () - -module internal AssemblyVersionInformation = - let [] Version = "0.2.5" +namespace System +open System.Reflection + +[] +[] +[] +[] +[] +do () + +module internal AssemblyVersionInformation = + let [] Version = "0.2.5" diff --git a/src/FSharpLint.Application/Lint.fs b/src/FSharpLint.Application/Lint.fs index 50493d44f..6bc1f8dde 100644 --- a/src/FSharpLint.Application/Lint.fs +++ b/src/FSharpLint.Application/Lint.fs @@ -309,8 +309,7 @@ module Lint = ReceivedWarning: (LintWarning.Warning -> unit) option } - member this.Default - with get() = { FinishEarly = None; Configuration = None; ReceivedWarning = None } + static member Default = { FinishEarly = None; Configuration = None; ReceivedWarning = None } /// If your application has already parsed the F# source files using `FSharp.Compiler.Services` /// you want to lint then this can be used to provide the parsed information to prevent the diff --git a/src/FSharpLint.Application/Lint.fsi b/src/FSharpLint.Application/Lint.fsi index 00ce21f58..5cd1254c3 100644 --- a/src/FSharpLint.Application/Lint.fsi +++ b/src/FSharpLint.Application/Lint.fsi @@ -92,7 +92,7 @@ module Lint = ReceivedWarning: (LintWarning.Warning -> unit) option } - member Default: OptionalLintParameters + static member Default: OptionalLintParameters /// If your application has already parsed the F# source files using `FSharp.Compiler.Services` /// you want to lint then this can be used to provide the parsed information to prevent the diff --git a/src/FSharpLint.Console/AssemblyInfo.fs b/src/FSharpLint.Console/AssemblyInfo.fs index 19e30e715..0ae4d298a 100644 --- a/src/FSharpLint.Console/AssemblyInfo.fs +++ b/src/FSharpLint.Console/AssemblyInfo.fs @@ -1,12 +1,12 @@ -namespace System -open System.Reflection - -[] -[] -[] -[] -[] -do () - -module internal AssemblyVersionInformation = - let [] Version = "0.2.5" +namespace System +open System.Reflection + +[] +[] +[] +[] +[] +do () + +module internal AssemblyVersionInformation = + let [] Version = "0.2.5" diff --git a/src/FSharpLint.FAKE/AssemblyInfo.fs b/src/FSharpLint.FAKE/AssemblyInfo.fs index 19e30e715..0ae4d298a 100644 --- a/src/FSharpLint.FAKE/AssemblyInfo.fs +++ b/src/FSharpLint.FAKE/AssemblyInfo.fs @@ -1,12 +1,12 @@ -namespace System -open System.Reflection - -[] -[] -[] -[] -[] -do () - -module internal AssemblyVersionInformation = - let [] Version = "0.2.5" +namespace System +open System.Reflection + +[] +[] +[] +[] +[] +do () + +module internal AssemblyVersionInformation = + let [] Version = "0.2.5" diff --git a/src/FSharpLint.Framework/AssemblyInfo.fs b/src/FSharpLint.Framework/AssemblyInfo.fs index 19e30e715..0ae4d298a 100644 --- a/src/FSharpLint.Framework/AssemblyInfo.fs +++ b/src/FSharpLint.Framework/AssemblyInfo.fs @@ -1,12 +1,12 @@ -namespace System -open System.Reflection - -[] -[] -[] -[] -[] -do () - -module internal AssemblyVersionInformation = - let [] Version = "0.2.5" +namespace System +open System.Reflection + +[] +[] +[] +[] +[] +do () + +module internal AssemblyVersionInformation = + let [] Version = "0.2.5" diff --git a/src/FSharpLint.MSBuildIntegration/AssemblyInfo.fs b/src/FSharpLint.MSBuildIntegration/AssemblyInfo.fs index 19e30e715..0ae4d298a 100644 --- a/src/FSharpLint.MSBuildIntegration/AssemblyInfo.fs +++ b/src/FSharpLint.MSBuildIntegration/AssemblyInfo.fs @@ -1,12 +1,12 @@ -namespace System -open System.Reflection - -[] -[] -[] -[] -[] -do () - -module internal AssemblyVersionInformation = - let [] Version = "0.2.5" +namespace System +open System.Reflection + +[] +[] +[] +[] +[] +do () + +module internal AssemblyVersionInformation = + let [] Version = "0.2.5" diff --git a/src/FSharpLint.Rules/AssemblyInfo.fs b/src/FSharpLint.Rules/AssemblyInfo.fs index 19e30e715..0ae4d298a 100644 --- a/src/FSharpLint.Rules/AssemblyInfo.fs +++ b/src/FSharpLint.Rules/AssemblyInfo.fs @@ -1,12 +1,12 @@ -namespace System -open System.Reflection - -[] -[] -[] -[] -[] -do () - -module internal AssemblyVersionInformation = - let [] Version = "0.2.5" +namespace System +open System.Reflection + +[] +[] +[] +[] +[] +do () + +module internal AssemblyVersionInformation = + let [] Version = "0.2.5"