-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Last response from @Digi92 in 303:
Hi @zepich and @StrangerGithuber,
for a first/second (sorry for my last late reply) development version, this is really impressive.
I especially like the ability to create rule package from multiple sources.
I took a look at the project and tried it out.
Generally, a lot of things already work very well.
However, I have a few remarks:
- The output folder must be created manually before execution, as it is currently not created automatically. I think it would be useful to implement the automatic creation of the folder if it does not yet exist.
- I think it would not be bad to have the possibility to generate a file in the format filename.yaml.uuidIndex from an existing rule package.
- In the current filename.yaml.uuidIndex format, the name field of the rule is used. Wouldn't it make more sense to use the identifier field instead? (See: src/Context/ContextInterface.php:buildIdentifier).
- For the Web type, I would suggest adding an optional function that allows hash files to be downloaded so that their hash value (e.g. MD5) can be used to check the integrity of the actual file.
- Wouldn't it be better to define a PHP 8 enum for RuleItemContext->Type that contains all valid types? This would not only simplify type validation. It would also prevent incorrect rules from being created in the first place.
Kind regards,
Digi92
Metadata
Metadata
Assignees
Labels
No labels