Closed LaurentDardenne closed 5 years ago
The 'keyword' Synopsis is not documented and the alias 'Description' is also a property of a PSRule instance. We have twice the same information.
I just read the change log for version 0.6
@LaurentDardenne Thanks. Yes so Synopsis:
is the preferred usage going forward so that it aligns to rule help.
Capturing a synopsis from a rule above is a bug.
The 'keyword' Synopsis is not documented and the alias 'Description' is also a property of a PSRule instance. We have twice the same information.
And the last statement of this 'keyword' is duplicated on the rules that does not specify this 'keyword'.
To define 'Synopsis' as a keyword would allow to declare this information in the body of the rule and not outside as a comment. This would also allow to find all the information via the AST. Or to declare on the keyword 'Rule' a parameter 'Synopsis' with an alias 'Description'.