{"action":"closed","issue":{"url":"https://api.github.com/repos/fsprojects/FSharpLint/issues/105","labels_url":"https://api.github.com/repos/fsprojects/FSharpLint/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/FSharpLint/issues/105/comments","events_url":"https://api.github.com/repos/fsprojects/FSharpLint/issues/105/events","html_url":"https://github.com/fsprojects/FSharpLint/issues/105","id":93145073,"number":105,"title":"Provide default record values for Lint API","user":{"login":"dungpa","id":941060,"avatar_url":"https://avatars.githubusercontent.com/u/941060?v=3","gravatar_id":"","url":"https://api.github.com/users/dungpa","html_url":"https://github.com/dungpa","followers_url":"https://api.github.com/users/dungpa/followers","following_url":"https://api.github.com/users/dungpa/following{/other_user}","gists_url":"https://api.github.com/users/dungpa/gists{/gist_id}","starred_url":"https://api.github.com/users/dungpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dungpa/subscriptions","organizations_url":"https://api.github.com/users/dungpa/orgs","repos_url":"https://api.github.com/users/dungpa/repos","events_url":"https://api.github.com/users/dungpa/events{/privacy}","received_events_url":"https://api.github.com/users/dungpa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fsprojects/FSharpLint/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-05T20:31:57Z","updated_at":"2015-07-17T12:30:14Z","closed_at":"2015-07-17T12:30:14Z","body":"We currently use:\r\n\r\n```fsharp\r\nLint.lintParsedFile \r\n                    { FinishEarly = None\r\n                      Configuration = None //Configuration.defaultConfiguration\r\n                      ReceivedWarning = None }\r\n                    { Ast = ast\r\n                      Source = source\r\n                      TypeCheckResults = checkResults.GetCheckResults() }\r\n```\r\n\r\nIt 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 ...`.\r\n\r\nAny customization can be easily done with `{ OptionalLintParameters.Default with ... }`.\r\n\r\nThe 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."}}