Hi. I am a first time user of Sonarlint. I am a mentor on a FIRST High School Robotics Competition team. We are a register 501(c)3. And I just came across Sonarlint in the VSCode extension marketplace, so I really knew nothing about it until this week. I really would like the first time programmers on the team to get into the habit of writing good code rather than code that “just works” and static analysis like Lint is a big step in that direction.
So, as it happens, we immediately ran afoul of java:S116, “Field names should comply with a naming convention.” We use underscores in our variables. From the description, it appears that this regex can be changed: “Following parameter values can be set in the SonarLint:Rules user settings. In connected mode, server side configuration overrides local settings. format Regular expression used to check the field names against. (Default value: ^[a-z][a-zA-Z0-9]*$)”
My problem is that I can’t figure out how to change it. When I look for “sonarlint” in the settings page, I get a few options, but they mostly seem to deal with setting up “connected mode”. Does anyone know exactly what I need to do to change this value?
Now, that having been said, we would really like to be able to have any customizations made to these rules be shared by the whole team. Worst case scenario would be to record changes and try to maintain the discipline to have each user manually enter the changes on their laptops. Better would be checking the file used (if any) into the GIT workspace we use. Better still would be to use “connected mode”. The problem with that is we have literally no budget for doing something like that. Is there a free service for that we could use? Does our being a non-profit help with that? If so, how do I get started? We generally have between 10 and 20 software users each season, if that is an issue.
Thank you for any help you can provide.