FSharpLint
FSharpLint copied to clipboard
Enable #nowarn to disable FSharpLint warnings
Description
Enable #nowarn to disable FSharpLint warnings
Repro steps
#nowarn "FL0038"
type lowercase = class end
Expected behavior
Lint warning is disabled for file.
Actual behavior
Lint warning continues to exist.
Known workarounds
Use the provided json settings - Not standard and not local to the file.
Related information
- Operating system Windows
- Branch master
- .NET Runtime, CoreCLR or Mono Version 5.0.400
- Performance information, links to performance testing scripts None
Thank you for the suggestion, does seem worth implementing as StyleCop supports similar on the C# side via #pragma warning disable SA1401
.
In terms of the workarounds we do support similar syntax in comments: https://fsprojects.github.io/FSharpLint/how-tos/rule-suppression.html