robotcodedev / robotcode

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

[QUESTION] Support Alternate Robotidy/Robocop Configuration File Name #343

Open martinezlc99 opened 3 days ago

martinezlc99 commented 3 days ago

Please describe. I understand robotcode will use the closest pyproject.toml file to find the robotidy configuration. However, I prefer the .robotidy configuration file name, which is also supported by robotidy.

Similarly, robocop will use the closest .robocop first, but will also accept a pyproject.toml as well, although it doesn't seem like robotcode doesn't support reading from a configurations file.

Can this alternate file name be configured?

Desktop (please complete the following information):

d-biehl commented 3 hours ago

Normally, if a .robocop file is present, Robocop should use it. Is this not happening for you?

I'm not entirely sure how this works with Robocop—whether a pyproject.toml file would cause the .robocop file to be ignored, or vice versa, or if both files are loaded. I’d need to analyze this further.

Currently, there’s no setting in RobotCode to specify which file Robocop should use. However, this could be implemented. Feel free to turn this question into an enhancement request.