robotcodedev / robotcode

RobotFramework support for Visual Studio Code
https://robotcode.io
Apache License 2.0
184 stars 15 forks source link

[ENHANCEMENT] Support disabling robotcode.namespace(MultipleKeywords) #297

Closed tchudobova-cen69317 closed 1 month ago

tchudobova-cen69317 commented 2 months ago

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! 🦾

gohierf commented 2 months ago

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.

d-biehl commented 2 months ago

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.

tchudobova-cen69317 commented 2 months ago

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 🦾