declint-core 1.3.0

Config and regex linting engine for declint: YAML rule files, message templates, violations. No LSP dependencies.
Documentation
# declint preset: Markdown
#
# Import it:
#
#   import:
#     - preset:markdown

version: 1

rules:
  - id: no-tabs
    pattern: '(?m)^\t+'
    message: "Tab character — use spaces"
    severity: warning

  - id: trailing-whitespace
    pattern: '(?m)[ \t]+\r?$'
    message: "Trailing whitespace"
    severity: hint

  - id: bare-url
    pattern: '(?m)https?://\S+$'
    message: "bare URL — wrap it in angle brackets"
    severity: hint
    tests:
      - name: URL at end of line
        text: "see http://x.com\n"
        violations: 1
      - name: prose after the URL passes
        text: "see http://x.com now\n"
        violations: 0