C++: Cannot exclude folders from code inspection

Hi

I'm using Visual Studio 2017 and VisualMicro for Arduino development in C++. Currently I'm trying out ReSharper C++.

I use some big external libraries which are included in the solution as shared code projects and then referenced in the main project. Unfortunately these libraries create thousands of found issues when I try to run the Code Inspection feature selectively on my main project (not on the whole solution!).

I already tried to exclude the library projects and later the library folders via the options dialog (Code Inspection --> Ignored code) but the first attempt had no effect and the second one didn't work because the libraries are seen as not part of the project hence cannot be added to the exclusion list. I also tried switching the setting for Solution Model from reading the solution files to COM API. This also didn't help.

What can I do to exclude the library projects from the code analysis?

 

Best Regards

Michael

0
4 comments
Avatar
Permanently deleted user

Hello,

By "shared code projects" do you mean "Shared Items Project" in the terms of the VS "New project" dialog? Have you tried adding these projects to "Elements to skip" in ReSharper | Options | Code Inspection | Settings?

0

Hello

Yes, I meant "Shared Items Project". I confused the name.

These projects are automatically created by VisualMicro in a folder named "Libraries" which is located in the solution folder besides the normal projects of the solution. When I try to add one of these project folders or the whole libraries folder to the list "Elements to skip" ReSharper displays an error message stating that these folders are not part of the solution and does not add them to the list.

0
Avatar
Permanently deleted user

This error is probably displayed because the project is not located under the solution folder. Please try adding a file mask instead (e.g. "SharedItemsProject/**") via the right-hand side panel in "Elements to skip" instead of adding an entry to "Files and folders".

0

Adding "Libraries/**" and "__vm/**" as file masks actually worked. The libraries are now no more displayed in the inspection results and the issues went down from 16000 to 2000.

Thanks for the support.

 

Best Regards

Michael

0

Please sign in to leave a comment.