inspectcode exclude and include commands
Hi all,
I am in the process of setting up inspect code to run as part of our CICD.
The project is a Unity C# project, and while I have the basics running I can't seem to get include or exclude to work.
This code works fine
jb inspectcode $solution --output=$xmlOutput --no-build --profile=$settings --cache-home=$cache
But if I try to exclude files, nothing changes about the output, and if I try include files I get a "No files to inspect were found."
Example of something I would like to exclude
Inspecting <Assembly-CSharp-Editor>\Assets\GetSocial\Editor\Utils\SemanticVersion.cs
How I have tried
--exclude="*GetSocial*"
Example of something I would like to include
Inspecting <Assembly-CSharp>\Assets\_Scripts\Ads\AdModel.cs
How I have tried
--include="*_Scripts*"
I have tried using file names, directory names and a variety of wildcards.
Can someone help me understand what I am doing wrong?
Please sign in to leave a comment.
Inspectcode uses ant wildcard syntax.
Like this https://www.jetbrains.com/help/teamcity/wildcards.html#Antlike+Wildcards
Jack Gillespie please try
Thanks awesome, thanks.
It worked perfectly.
Another question, if I want to include or exclude multiple files, what is the separator?
e.g.
Semicolon or just specify it several times
You rock Slava :)
Thanks!