Transformers
- New `ReplaceReturns` transformer that replaces return statements (such as `[Return]` setting or `Return From Keyword` keyword) with `RETURN` statement ([231](https://github.com/MarketSquare/robotframework-tidy/issues/231))
- New `ReplaceBreakContinue` transformer that replaces `Continue For Loop` and `Exit For Loop` keyword variants with CONTINUE and BREAK statements ([241](https://github.com/MarketSquare/robotframework-tidy/issues/241))
- New `InlineIf` transformer that replaces IF blocks with inline IF ([230](https://github.com/MarketSquare/robotframework-tidy/issues/230))
- Add `min_width` parameter to `AlignSettingsSection` transformer. It allows to set minimal width of data column ([242](https://github.com/MarketSquare/robotframework-tidy/issues/242))
- Add `min_width` parameter to `AlignVariablesSection` transformer. It allows to set minimal width of data column ([242](https://github.com/MarketSquare/robotframework-tidy/issues/242))
- Add `min_width` parameter to `AlignTestCases` transformer. It allows to set minimal width of data column ([242](https://github.com/MarketSquare/robotframework-tidy/issues/242))
- Changed behaviour of `DiscardEmptySections` transformer. Now by default section with only comments are not considered empty.
Configure `allow_only_comments` to `False` if you want to remove those sections ([235](https://github.com/MarketSquare/robotframework-tidy/issues/235))
- Add `skip_types` parameter to `AlignVariablesSection` which allows to not align variables of particular type ([225](https://github.com/MarketSquare/robotframework-tidy/issues/225))
- Library names are now ignored by default by `RenameKeywords` transformer. Previously, it could result in an unexpected behaviour ([269](https://github.com/MarketSquare/robotframework-tidy/issues/269)).
If you want to transform library names, pass `ignore_library=False` to the transformer.
Other
- Change exceptions to be more user-friendly. Robotidy will try to recognize common mistakes. For unknown issues there is extra message with link to our bug board ([250](https://github.com/MarketSquare/robotframework-tidy/issues/250))
- Refactored Robotidy acceptance tests ([248](https://github.com/MarketSquare/robotframework-tidy/issues/248))
- It is now possible to force overwrite with ``--check`` and ``--overwrite`` flags ([239](https://github.com/MarketSquare/robotframework-tidy/issues/239)).
Going over possible options:
Transform the files and return 0 even if there were files transformed.
commandline
robotidy src
Don't transform the files and return 0 even if there would be files transformed
commandline
robotidy --no-overwrite src
Don't transform the files and return 1 if there would be files transformed
commandline
robotidy --check src
Transform the files and return 1 if there are files transformed
commandline
robotidy --check --overwrite src
Fixes
- Unmodified files are now not saved to the disk ([237](https://github.com/MarketSquare/robotframework-tidy/issues/237))