This release brings new rules and features that help to uphold the law.
It also prepares Robocop for new Robot Framework 4.0 release which will help fighting with new hordes of evil.
New rules
- W1010 (too-many-trailing-blank-lines) - Checks if there are too many blank lines at the end of the file #250
- W0906 (redundant-equal-sign) - Detects redundant equal sign in variable section #265
- W0308 (not-capitalized-test-case-title) - Checks if test case title starts with capital letter #267
- W0309 (section-variable-not-uppercase) - Variables in variable section should be uppercase #268
- W0310 (non-local-variables-should-be-uppercase) - Test, suite and global variables should be uppercased #268
- I0908 (if-can-be-used) - Suggests that
Run Keyword IfandRun Keyword Unlesscan be now changed to new IF statements #259
Fixes
- W0302 (not-capitalized-keyword-name) now supports numbers inside keyword names #249
- W0306 (setting-name-not-capitalized) can detect all not capitalized settings for keyword and test case #266
Other
- Robocop now supports Robot Framework 4.0 #258 #254
- Robocop can now export results to JSON using new
JsonReport#251 - Command line arguments can now be loaded from
.robocopfile #253 - New command line option
--list-reportsthat displays all available reports #263 - Two rules are disabled when using RF4.0: nested-for-loop and invalid-comment
Acknowledgements
- Thanks to @andreagubellini for help with exporting rules #251