-
Notifications
You must be signed in to change notification settings - Fork 123
create script to update infos/status #913
Comments
Can it be the
It is new to me that the "tags" must be in an order and in the commit you mentioned some "tags" are out of order btw. Should the script do the job for all plugins or should the pluginname be specified? |
Yes, sorry, I mean doc/CONTRACT.ini. Yes, they are out-of-order now, I thought it takes less time to write such a tool than to order it once by hand. Bascially any consistent order would be okay, I would use it as it is placed in the file (for the case that numbers occur twice). Synopsis could be something like:
Without tags or plugins it would only validate and order all tags of all plugins. So it would be nice if wrong tags are rejected. In long term, the script should also do some basic checks, e.g. look into the CMakeLists.txt if unit tests or dependencies are present and automatically update the tags accordingly. It is enough if the script works in-source (so you can assume that the files are located relative to the script). You can also modify doc/CONTRACT.ini if it makes the writing of the script easier. |
alright |
Should the |
Yes, my synopsis was only a suggestion, I like your proposal! Maybe we should go more for fixing/updating, less for validation. So simply remove obsolete tags (which are not in CONTRACT.ini). So instead of "validation error, tag X not present" something like "tag X not present, thus it was removed". |
Any progress here? We have plenty of new See #666 |
Can you add some documentation to it? The configparser dep also seems to be problematic. I have installed:
|
Where should I write the documentation? |
Add some information with --help seems to be best. (Thus it only operates within source code we won't install it and thus a man page is not needed). |
fix status for template (confuses parser) see #913
Thank you, the parsing is now a bit buggy (if ìnfos/status occurs somewhere else), but it should be enough for an internal tool. Thank you! |
Missing points:
Its easy to check
infos/status
(e.g. withgrep -rH "^- infos/status" */README.md | grep -v nodep
), but its not so easy to add tags if you want them inserted in the order given indoc/CONTRACT.ini
.It would be nice to have a script to edit metadata for many plugins, e.g. like it is done in a37581f
The text was updated successfully, but these errors were encountered: