Rumdl
module Rumdl| Assembly | Nacara.Plugin.Linter.Rumdl |
| Attributes | [<RequireQualifiedAccess>] |
Lints the site's markdown with rumdl.
The pages of the build are what it reads - the files a collection actually publishes - so a note kept beside your content is not linted, and a generated page has nothing to lint.
What it finds becomes ordinary diagnostics, with a position an editor can jump to. A linter that cannot run is reported as a warning, not a failure.
Declared inside
Finding | What a finding is: rumdl's own JSON, which says everything a diagnostic needs |
Functions and values
Defaults: string list
Defaults: string listWhat this plugin asks of rumdl before you say anything.
Two of these turn a rule off because the engine answers the same question and knows more while doing it - which pages exist, and what a directive is. The others are the settings a prose file wants rather than a source file.
binaryPath (value: string option) (options: RumdlOptions) : RumdlOptions
binaryPath (value: string option) (options: RumdlOptions) : RumdlOptionsPath of an existing rumdl binary.
| Parameter | |
|---|---|
value | The value to use. |
options | The options so far. |
configPath (value: string option) (options: RumdlOptions) : RumdlOptions
configPath (value: string option) (options: RumdlOptions) : RumdlOptionsA rumdl.toml to read, when it is not the one rumdl would find itself.
| Parameter | |
|---|---|
value | The value to use. |
options | The options so far. |
create () : IPlugin
create () : IPluginLint the site's markdown, with the default options.
createWith (configure: RumdlOptions -> RumdlOptions) : IPlugin
createWith (configure: RumdlOptions -> RumdlOptions) : IPluginLint the site's markdown, configured.
| Parameter | |
|---|---|
configure | Given the defaults, the options to use. Anything it leaves alone keeps its default. |
defaults: RumdlOptionsdisable (value: string list) (options: RumdlOptions) : RumdlOptions
disable (value: string list) (options: RumdlOptions) : RumdlOptionsRules to switch off by name - [ "MD033" ].
| Parameter | |
|---|---|
value | The value to use. |
options | The options so far. |
isolated (value: bool) (options: RumdlOptions) : RumdlOptions
isolated (value: bool) (options: RumdlOptions) : RumdlOptionsIgnore any configuration file, so only what is said here applies.
| Parameter | |
|---|---|
value | The value to use. |
options | The options so far. |
lintWhileWatching (value: bool) (options: RumdlOptions) : RumdlOptions
lintWhileWatching (value: bool) (options: RumdlOptions) : RumdlOptionsLint while watching too.
| Parameter | |
|---|---|
value | The value to use. |
options | The options so far. |
readFindings (json: string) : Finding list
readFindings (json: string) : Finding listReads what rumdl said, which is a JSON array of findings.
| Parameter | |
|---|---|
json | The output of rumdl check --output-format json. |
Returns. One finding per element, with what a diagnostic needs from it.
registerWith (configure: RumdlOptions -> RumdlOptions) (site: Site) : Site
registerWith (configure: RumdlOptions -> RumdlOptions) (site: Site) : SiteLint the site's markdown, configured.
| Parameter | |
|---|---|
configure | Given the defaults, the options to use. |
site | The site being described. |
settings (value: string list) (options: RumdlOptions) : RumdlOptions
settings (value: string list) (options: RumdlOptions) : RumdlOptionsRule settings, as inline TOML: "MD013.line-length = 100".
| Parameter | |
|---|---|
value | The value to use. |
options | The options so far. |
severity (value: LintSeverity) (options: RumdlOptions) : RumdlOptions
severity (value: LintSeverity) (options: RumdlOptions) : RumdlOptionsWhether a finding is a warning or an error.
| Parameter | |
|---|---|
value | The value to use. |
options | The options so far. |
source (value: string) (options: RumdlOptions) : RumdlOptions
source (value: string) (options: RumdlOptions) : RumdlOptionsWhere that release is published, with {version} and {target} in it.
| Parameter | |
|---|---|
value | The value to use. |
options | The options so far. |
useDefaults (value: bool) (options: RumdlOptions) : RumdlOptions
useDefaults (value: bool) (options: RumdlOptions) : RumdlOptionsShip the defaults this plugin was written with.
| Parameter | |
|---|---|
value | The value to use. |
options | The options so far. |