robotframework-robocop icon indicating copy to clipboard operation
robotframework-robocop copied to clipboard

Add rules for BREAK, CONTINUE

Open bhirsz opened this issue 2 years ago • 0 comments

Handle BREAK and CONTINUE. Possible rules (update old or create new):

  1. Do not name keyword after reserved words (#570)
  2. Do not use BREAK, CONTINUE outside FOR, WHILE or TRY EXCEPT (check how it works - possibly prohibit in finally) (#562)
  3. Recommend to use them inside IF statement (otherwise the code after them will be dead)
  4. Label Exit For Loop, Exit For Loop If, Continue For Loop, Continue For Loop If as deprecated and suggest using BREAK or CONTINUE. (#576)

bhirsz avatar Feb 03 '22 07:02 bhirsz