-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Document tags
field
#468
Conversation
ErikSchierboom
commented
Oct 6, 2023
- Add tags to analyzer interface
- More tags
- Add more tag usage
- Add more documentation
- Update linting rules
Closes #467? |
building/configlet/lint.md
Outdated
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`) |
There was a problem hiding this comment.
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', '-', '_', '.'}?
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed
building/configlet/lint.md
Outdated
|
||
- `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]+)*$` |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
c69e1bf
to
def3a37
Compare