-
Notifications
You must be signed in to change notification settings - Fork 3
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
legacy-stats extension vs Online verificator for Homie 4 #7
Comments
True. Extensions are not supported by the verification tool. We could allow extension writers to also write a javascript function |
Hi David, |
I would somehow consider the As for the other extensions I currently see no easy way to include them into the validator. |
@EPNW , that is OK. The point I'm trying to raise is the fact that the validator rejects correct code. If extensions are present, they should at least not be marked as errors. I understand this can be hard when they can spread their topics everywhere. One thing that comes to my mind is to (for example) build a table of base topics for each known extension id. This way, whatever is below the base topic can be easily ignored. Entries in this table can be registered when the extension is registered. Sort of:
Beyond that, also checking for correct posting for stats and firmware is a bonus. |
Hm. The base topic idea is nice but basically disables the validator for certain topic branches. I suggest to make it mandatory for an extension author to create a js validation method (API to be defined). The hard part is already done (parsing the input into a tree structure with context data). A lazy author could just go with a loop, a condition and a regex expression. If no js routine can be found for an extension, that extension is not considered for the validator (like it is now). |
Hi,
according to my understanding and the example, this is correct:
However, verification fails:
The text was updated successfully, but these errors were encountered: