MarketSquare / robotframework-robocop

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

[Bug] Unjustified W0326 (mixed-task-test-settings) warning when file doesn't contain neither Test Cases nor Tasks #1106

Closed fialsha closed 1 month ago

fialsha commented 1 month ago

What happened?

Robocop throws unjustified W0326 (mixed-task-test-settings) warning on following file:

# __init__.robot
*** Settings ***
Documentation       My task documentation.

Task Tags           common_tag_for_task_suites

What command/code did you try to run?

robocop

What is the full error message?

tasks/init.robot:4:1 [W] 0326 Use test-related setting 'Test Tags' if Test Cases section is used (mixed-task-test-settings)

What did you expect to happen instead?

Task Tags should be allowed for init.robot files which doesn't contain neither Test Cases nor Tasks sections.

Operating System

Linux

Robocop version

5.3.0

bhirsz commented 1 month ago

It sounds like a bug I fixed 2 weeks ago but didn't release it yet (#1101). I will do the release now and you can update the thread later if the issue was fixed or not.

bhirsz commented 1 month ago

Released Robocop 5.4.0

fialsha commented 1 month ago

This issue was fixed in 5.4.0 version. Thank you!