Skip to content

Draft: GTK linter

Sonny Piers requested to merge blueprint-linter into main

Not ready for review.

This is just a proof of concept for now to play around with the Blueprint AST.

The main goals of a GTK linters are

  • Catch and educate developers about accessibility issues; example: Gtk.Image without a11y label
  • Prevent logical errors that currently fail silently; example: children in Gtk.Label
  • Enforce good practices; example: Mark user visible strings as translatable

It needs to support CLI for CI and diagnostics on the language server for editor support (Builder, Workbench, …)

Hopefully fixes #124 eventually

It only supports .blp files at the moment, but I'd like to consider adding support for .ui files by adding a parser that generates a Blueprint AST.

See

Edited by Sonny Piers

Merge request reports