I have some header and cpp files here that don't pass the source processor's style check. Since it's source code that would be very cumbersome to adjust, and since it's code written by somebody else, I wonder if I can simply exclude a folder (or certain files) from the style check.
Hi @fwilleke80 unfortunately there is no option to do it, you can either disable the stylecheck or enable it.
One question raised, and you probably have your own reason, but why don't you put these files outside of your source and thread them as an external library?
I usually do use external libraries. However, if I just want to try out some open source code I found somewhere, especially if it's just one or two files, I don't want to create a whole library project for it. Especially since I usually use external libraries as GIT submodules, so the library folder with its source and project files would be in a subfolder of my plugin, and the Project Tool always puts everything in one project.
Yeah, so, long story short, I just want to add a file that's absolutely not in Cinema 4D code style to my project. I guess I'll have to deactivate the whole style checking then. Pity. I usually like it.
Hi @fwilleke80 here are the possibilities:
Unfortunately, it doesn't work for all kinds of warnings described in ProjectTool - Style Check. And you can't use stylecheck=false.
Here a list of style check you can redefine:
Some others may work I don't have a clear list.
While it's not the best way, you can use pragma to disable error, for more information see MSDN - Pragma Warning.
Hope this helps.
Oh, cool! I didn't know it was possible to deactivate those via comments.
Perfect, that should do it, thank you!