no-swea causes the dotSettings applied

Hi,

I have configured the naming rule for constant as AA_BB in my local computer, then I saved the configuration as the team shared via Resharper menu in Visual Studio IDE -> Save To -> Solution xxx Team Shared. Then I put the MyProject.sln.dotSettings to the same directory with the solution (.sln) file.

This works If I run Find Code Issues from Visual Studio IDE.

Then I push .dotSettings file to the source repository, and launch a build in the Jenkins. Below command is used to inspect code issue

inspectcode.exe MyProject.sln -o=RSharper-InspectCode.xml --toolset-path="C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe" 

But it reports name inconsistence issues for the constant variable which should be false positive based on the dotSettings file. It looks like the configuration in .dotSettings are not applied (there are also some files/projet filters in dotSettings and they are not applied either)

After I applied --no-swea at the end of the above command, then the dotSettings seems to be applied, because naming inconsistence issues gone, and files filter are also applied.

Is this a bug for InspectCode tool or is it by design? Can I applied the dotSettings without the --no-swea option?

Thanks,

Carlos

0
1 comment
Official comment

Hi Carlos.

It's not by design - you can apply dotSettings file with SWEA enabled.
Please, file an issue with small repro-project and your custom settings attached at https://youtrack.jetbrains.com/issues/RSRP

Thanks in advance.
bye.

Please sign in to leave a comment.