AnalyzerConfig Class

Definition

Represents a single EditorConfig file, see https://editorconfig.org for details about the format.

public sealed class AnalyzerConfig
type AnalyzerConfig = class
Public NotInheritable Class AnalyzerConfig
Inheritance
AnalyzerConfig

Properties

GlobalSection
IsRoot

Gets whether this editorconfig is a topmost editorconfig.

NamedSections
NormalizedDirectory

The directory the editorconfig was contained in, with all directory separators replaced with '/'.

PathToFile

The path passed to Parse(String, String) during construction.

ReservedKeys

A set of keys that are reserved for special interpretation for the editorconfig specification. All values corresponding to reserved keys in a (key,value) property pair are always lowercased during parsing.

ReservedValues

A set of values that are reserved for special use for the editorconfig specification and will always be lower-cased by the parser.

Methods

Parse(SourceText, String)

Parses an editor config file text located at the given path. No parsing errors are reported. If any line contains a parse error, it is dropped.

Parse(String, String)

Parses an editor config file text located at the given path. No parsing errors are reported. If any line contains a parse error, it is dropped.

TryCreateSectionNameMatcher(String)

Takes a Name and creates a matcher that matches the the given language. Returns null if the section name is invalid.

Applies to