You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if OptionalLintParameters record type has a Default property (providing minimally useful config) so that we could just use Lint.lintParsedFile OptionalLintParameters.Default ....
Any customization can be easily done with { OptionalLintParameters.Default with ... }.
The same thing could be applied for FSharpLint.Framework.Configuration.Configuration record type. At a first glance, it's hard for clients to figure out what should be passed in.
The text was updated successfully, but these errors were encountered:
Thanks that's a good suggestion. I've added a Default property.
Configuration = None will use Configuration.defaultConfiguration when linting (I've just added this to the xml doc for the record) so there is no need to pass in a config unless it's custom (custom configs can be loaded using the functions in FSharpLint.Application.ConfigurationManagement in lint.fsi)
We currently use:
It would be great if
OptionalLintParameters
record type has aDefault
property (providing minimally useful config) so that we could just useLint.lintParsedFile OptionalLintParameters.Default ...
.Any customization can be easily done with
{ OptionalLintParameters.Default with ... }
.The same thing could be applied for
FSharpLint.Framework.Configuration.Configuration
record type. At a first glance, it's hard for clients to figure out what should be passed in.The text was updated successfully, but these errors were encountered: