Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fialsha opened this issue Aug 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@fialsha
Copy link

fialsha commented Aug 15, 2024

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

@fialsha fialsha added the bug Something isn't working label Aug 15, 2024
@bhirsz
Copy link
Member

bhirsz commented Aug 22, 2024

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
Copy link
Member

bhirsz commented Aug 22, 2024

Released Robocop 5.4.0

@fialsha
Copy link
Author

fialsha commented Aug 22, 2024

This issue was fixed in 5.4.0 version. Thank you!

@fialsha fialsha closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants