Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document tags field #468

Merged
merged 9 commits into from
Oct 6, 2023
Merged

Document tags field #468

merged 9 commits into from
Oct 6, 2023

Conversation

ErikSchierboom
Copy link
Member

  • Add tags to analyzer interface
  • More tags
  • Add more tag usage
  • Add more documentation
  • Update linting rules

@ee7
Copy link
Member

ee7 commented Oct 6, 2023

Closes #467?

building/configlet/lint.md Outdated Show resolved Hide resolved
building/configlet/lint.md Outdated Show resolved Hide resolved
Comment on lines 594 to 599
7. **Valid `tag`**: A non-blank string¹ that is formatted as `<category>:<thing>`, with `<category>` must be one of the following values:

- `paradigm` (e.g. `paradigm:functional`)
- `technique` (e.g. `technique:recursion`)
- `construct` (e.g. `construct:bitwise-and`)
- `uses` (e.g. `uses:DateTime.add_seconds`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a rule for the value of <thing>? For example, length greater than 0, and characters in `{'0'..'9', 'A'..'Z', 'a'..'z', '-', '_', '.'}?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And maybe we could say "analyzer tag" or something, to help disambiguate from the existing tags?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed


- `paradigm` (e.g. `paradigm:functional`)
- `technique` (e.g. `technique:recursion`)
- `construct` (e.g. `construct:bitwise-and`)
- `uses` (e.g. `uses:DateTime.add_seconds`)

The `<thing>` value must a string that contains only characters in the range `[a-z0-9]`, optionally separated by dashes (e.g. `"two-fer"`) or underscores (e.g. `"two_fer"`). It must match the regular expression: `^[a-z0-9]+([-_][a-z0-9]+)*$`
Copy link
Member

@ee7 ee7 Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "by a single dash" and "or by a single underscore"?

And the above example of DateTime.add_seconds does not match that regular expression - there is a ., and a capital letter.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, let's just make it non-blank, as tracks are free to use them how they please

@ErikSchierboom ErikSchierboom merged commit 451f33c into main Oct 6, 2023
1 check passed
@ErikSchierboom ErikSchierboom deleted the add-tags-documentation branch October 6, 2023 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants