Provides an API for running FSharpLint from within another application.
Type | Description |
---|---|
BuildFailure | |
ConfigurationParam | |
Context | |
LintFailure |
Reason for the linter failing. |
LintResult |
Result of running the linter. |
OptionalLintParameters |
Optional parameters that can be provided to the linter. |
ParsedFileInformation |
If your application has already parsed the F# source files using |
ProjectProgress |
Provides information on what the linter is currently doing. |
Name | Description |
---|---|
runAstNodeRules
Signature: RuleMetadata |
Runs all rules which take a node of the AST as input. |
runLineRules
Signature: LineRules -> GlobalRuleConfig -> string -> string -> string [] -> Context -> LintWarning [] |
Runs all rules which take a line of text as input. |
lintSolution
Signature: optionalParams:OptionalLintParameters -> solutionFilePath:string -> toolsPath:ToolsPath -> LintResult |
Lints an entire F# solution by linting all projects specified in the |
lintProject
Signature: optionalParams:OptionalLintParameters -> projectFilePath:string -> toolsPath:ToolsPath -> LintResult |
Lints an entire F# project by retrieving the files from a given
path to the |
lintSource
Signature: optionalParams:OptionalLintParameters -> source:string -> LintResult |
Lints F# source code. |
lintParsedSource
Signature: optionalParams:OptionalLintParameters -> parsedFileInfo:ParsedFileInformation -> LintResult |
Lints F# source code that has already been parsed using
|
lintFile
Signature: optionalParams:OptionalLintParameters -> filePath:string -> LintResult |
Lints an F# file from a given path to the |
lintParsedFile
Signature: optionalParams:OptionalLintParameters -> parsedFileInfo:ParsedFileInformation -> filePath:string -> LintResult |
Lints an F# file that has already been parsed using
|