robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[ENHANCEMENT] Support disabling robotcode.namespace(MultipleKeywords)

Open tchudobova-cen69317 opened this issue 1 year ago • 3 comments

Is your enhancement request related to a problem? Please describe. In Robot Framework Language Server there is an option to disable multiple keyword definitions in the project with { "robot.lint.keywordResolvesToMultipleKeywords": false } in settings.json. While disabling rules can be tricky, we use this (experimental) approach in projects with both mobile and web test automation. Bypassing this rule would allow us to convert to RobotCode.

Describe the solution you'd like Have an option to bypass robotcode.namespace(MultipleKeywords) rule in settings.json or robot.toml.

Describe alternatives you've considered Only viable alternative (for now) seems to be using Robot Framework Language Server.

Additional context Thank you for looking into this! 🦾

tchudobova-cen69317 avatar Aug 28 '24 13:08 tchudobova-cen69317

There as been some update to disabling diagnostic in a release 0.84.0

You can now disable rule by rule for the whole suite file, rather than disabling all diagnostics.

Yet I guess in your case it would be interesting to be able to configure this for the whole project rather than for each test suite.

gohierf avatar Aug 28 '24 13:08 gohierf

thanks @gohierf I was just about to write that too ;-)

@tchudobova-cen69317 have a little patience, I'm currently working on making it work project-wide via the robot.toml.

d-biehl avatar Aug 28 '24 13:08 d-biehl

Thanks @gohierf for the hint, as for now, I am able to at least disable it in each file with # robotcode: ignore[MultipleKeywords] in the Settings section. Not pretty but works!

@d-biehl thanks for an immediate reply, amazing news! Looking forward to that 🦾

tchudobova-cen69317 avatar Aug 28 '24 14:08 tchudobova-cen69317