Skip to content

Releases: MarketSquare/robotframework-robocop

1.5.0

15 Mar 19:36
a52d584
Compare
Choose a tag to compare

This release brings few small improvements and fixes critical issues that occur when using Robot Framework 4.0.

New rules

  • E0311 (else-not-upper-case) checks if ELSE and ELSE IF branches in IF block are upper case #278

Fixes

  • W1006 (mixed-tabs-and-spaces) should be able to report more than one rule violation per run #274
  • W1007 (uneven-indent) should now support IF blocks #274
  • E0303 (keyword-name-is-reserved-word) will not throw exception when there is only comment in the line #274

Other

  • New report file_stats can display overall statistics about number of processed files #262
  • You can now use # noqa as alternative to # robocop: disable #269
  • 10% performance improvement thanks to #129

1.4.1

01 Mar 13:38
ce92f66
Compare
Choose a tag to compare

Fixes

  • W1002 (missing-trailing-blank-line) - Fix rule and add tests to increase coverage (#270)

1.4.0

01 Mar 07:07
30f3217
Compare
Choose a tag to compare

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 If and Run Keyword Unless can 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 .robocop file #253
  • New command line option --list-reports that displays all available reports #263
  • Two rules are disabled when using RF4.0: nested-for-loop and invalid-comment

Acknowledgements

1.3.2

20 Jan 12:38
Compare
Choose a tag to compare
  • fixed W0302 (keyword-not-capitalized) rule being raised on words with apostrophes (for example Item's) #248

1.3.1

03 Dec 12:21
63bf952
Compare
Choose a tag to compare
  • fixed regression where robot files from different root tree caused exception #247

1.3.0

25 Nov 10:04
8ed6a75
Compare
Choose a tag to compare

Another rule joined our justice department! And two small improvements.

  • ignored-data rule - check if there is data before first section #243
  • mixed-tabs-and-spaces is now approx. 8 times faster #236
  • new report scan_timer that prints how much time it took for scan to complete

Acknowledgements

1.2.1

25 Nov 09:53
Compare
Choose a tag to compare
  • Fix embedded variables with underscore in name reported as 'not-capitalized-keyword-name' #240

1.2.0

17 Nov 17:55
dc2d876
Compare
Choose a tag to compare

Release 1.2.0 resolves mostly about improving quality (by introducing acceptance tests for the rules) but it also adds many fixes and one small feature.

New rules

  • W1009 (empty-line-after-section) - check if there are empty lines after section header and before any other line (#198)

Fixes

  • Fix empty-section unnecessary raised for *** Comments *** section (#234)
  • Fix rule for invalid syntax for [Teardown]
  • Fix duplicated name rule for Variables import (it never ran due to typo)
  • Reword too-many-arguments warning text (remove sentence suggesting splitting arguments to new lines) (#224)
  • Fix not-capitalized-keyword-name to ignore special characters (#226)
  • Fix not-capitalized-keyword-name to ignore possible library imports (#214)

Other

  • Robocop now supports printing relative paths in rule message with {source_rel} (#222)
  • Rules are now ordered in the docs (#217 and #228)
  • Added acceptance testing for all rules (#46)

Acknowledgements

Robocop 1.1.0

25 Sep 12:14
2c91026
Compare
Choose a tag to compare

Robocop 1.1.0 introduces new rule, moves existing rule to another group and enhances --list feature. Details:

Changes to rules

  • Added "mixed-tabs-and-spaces" rule for verifying if file does not contain both tabs and spaces
  • Renamed "ineven-indent" rule to "uneven-indent". Moved "uneven-indent" and "bad-indent" rules from misc to spacing group.
    This is not backwards compatible change - the rule IDs change from "0904" and "0905" to "1007" and "1008" respectively

Enhanced --list CLI option

  • Added option to pass glob pattern to --list
robocop --list some-rule*
  • Added --list-configurables option to list rules with their configurable parameters

Other

  • Updated examples in external-checkers.rst

Acknowledgements

  • Szabolcs Tóth who created "mixed-tabs-and-spaces" rule and updated our docs

Robocop 1.0.1

16 Sep 06:40
Compare
Choose a tag to compare

This release fixes the issue with circular imports when using Robocop installed from PyPi.