inspectcode exclude and include commands

Answered

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?

0
5 comments

Jack Gillespie please try 

--exclude="**\GetSocial\**.*"
--inlcude="**\_Scripts\**.*"
1

Thanks awesome, thanks.

It worked perfectly.

Another question, if I want to include or exclude multiple files, what is the separator?

e.g.

-exclude="**\Generated\**.*","**\GetSocial\**.*"

 

0

Semicolon or just specify it several times

-exclude="**\Generated\**.*" -exclude="**\GetSocial\**.*"
1

You rock Slava :) 

Thanks!

0

Please sign in to leave a comment.