There are some general guidelines for writing succinct and meaningful rules to ensure high quality, consistency and better usability of the reported issues.
The following table contains guidelines and examples on how to set the rule property values.
Field |
Guidelines / Explanation |
Example / Clarification |
---|---|---|
ID |
|
hardcodedTextValues |
Async |
Defines if the rule check function will contain asynchronous operations. It can be true or false. The default value is false. |
Make sure you use the resolve function in your rule check function as a 4th parameter. |
Audiences |
|
Choose one. |
Categories |
A list of categories checked that show which aspects of the application are affected by the rule. Examples:
|
Choose one or more, or add your own. |
Min version |
The minimum OpenUI5 version required so that the rule can produce valid results. The Support Assistant considers applicable rules according to their If you have rules in your custom library, keep in mind that the rule |
for example, 1.44 for OpenUI5 version comparison or "*", "-", or whitespace (" ") to avoid version filtering. |
Max version |
The maximum OpenUI5 version required to run the rule. |
(currently not taken into account) |
Title |
|
Page: invalid background design property |
Description |
|
Dialogs with content should have ariaLabelledBy association set |
Resolution |
|
Set property upperCase to false or add icons to IconTabFilters |
Details |
|
Element{0} has no icon but its parent Element{1} has property upperCase set to true. |
URLs |
|
|
Check function |
Check function code |
|
Here are some general guidelines that you should consider when creating a new rule:
-
Create very specific rules
It is important that the rules are as specific as possible. Avoid too generic or unspecific rules that would produce excessive number of issues difficult to digest or follow up. The rules should focus on one issue and provide a resolution for it.
-
Reduce the number of issues generated
Do not overload the user with a large number of issues. When appropriate, produce one issue where multiple texts are concatenated with
\n
delimiter. -
Write clear descriptions and resolutions
Use the guidelines in Create a Ruleset for a Library