glinter/annotation

Types

pub type Annotation {
  Annotation(
    rules: List(String),
    comment_line: Int,
    target_line: Int,
    scope: Scope,
  )
}

Constructors

  • Annotation(
      rules: List(String),
      comment_line: Int,
      target_line: Int,
      scope: Scope,
    )
pub type Scope {
  LineScope
  FunctionScope
  Stale
}

Constructors

  • LineScope
  • FunctionScope
  • Stale

Values

pub fn parse(source: String) -> List(Annotation)

Parse source text for // nolint: comments and return annotations.

Search Document