MarketSquare / robotframework-robocop

Tool for static code analysis of Robot Framework language
Apache License 2.0
182 stars 39 forks source link

Always load reports/rules #1114

Open bhirsz opened 1 week ago

bhirsz commented 1 week ago

Robocop uses plugin-like architecture where rules and reports act as plugins. They are dynamically discovered on start and loaded. If rule or report is not enabled it is not loaded at all (it could be changed recently for rules only - need to verify). That means if someone tries to configure report that is not enabled, it will fail with 'report does not exist' exception:

robocop --configure sarif:output_dir:src .

It should not affect the performance to have everything loaded - rules/reports can be filtered in runtime depending on the enabled status. Additional advantage is that it could make it possible to have multiple configuration files (depending on the dir) same as robotidy.