Edit this page | Blame

A linter for gnbug


  • type: feature-request
  • keywords: gnbug, linter, tissue
  • assigned: ??
  • priority: low
  • status: under discussion


Should gnbug have a linter?

For example, If a user forgets to add a tag or some other syntax that we want them to add then the linter reminds them to add more info, tags, etc.

Or, maybe we want to check that the user does not add a tag that we don't want to support.

I am not sure. Pjotr is of the philosophy that we should keep the text as unstructured and unrestrictive as possible, and I agree with this philosophy. Linters are likely to annoy users more than help them. They might discourage casual use of the issue tracker. Especially with tags, we don't really want to restrict the user from coming up with new tags.

WDYT? Am I missing some scenario where the linter could be essential?

Nope, it was just something I thought could be convenient if we wanted to restrict the format for tags, etc...

If we'd like to "keep the text as unstructured and unrestrictive as possible" I'm fine with that too.

I was just worried about using "invalid" tags. Now, I know it's ok :)


I am thinking tissue (formerly gnbug) should deal with a list of tags of the form:

* key: value[, value, ...]

and each instance of the issue tracker can have some config file that defines, among other things:

  • what tags to display
  • colouring of said tags
  • maybe what tags to allow (for those that need to restrict allowed tags)

The tags could be parsed into a hashmap or an associative list, or any other similarly useful datatype, from which the values would be read for display.

Tissue could determine what the context is (CLI, web, etc) and using the config, figure out what tags to display and how


We don't have tag restrictions for now. And, tag restrictions probably go against the "unstructured and unrestrictive" aesthetic that we are aiming for. In the web UI, we can color tags using the provided CSS classes. In the CLI, we have a fixed blue color for all tags. Short of supporting full-fledged CLI color theming, it might be counterproductive to allow changing colors of specific tags in the CLI. If filtering based on tags is the objective, we now also have a powerful xapian-powered search interface.

  • closed
(made with skribilo)