Within the Code Analysis view you can toggle analyzing for the available types of files (C#, VisualBasic.NET, XAML, etc).
In the Exclude file filters and Exclude project filters input fields you can specify files and projects that should not be analyzed from JustCode. That's really useful for designer generated files. Once you have excluded a file or a project, no errors or warnings will be reported. By default .designer.cs and .designer.vb are excluded. Provide a list of file/project names separated by semicolon (;).
Wildcards usage has been introduced into file filters. Allowed wildcard symbols are *, %, ?. Each filter must contain a file name definition but the directory definition can be omitted.
* - extends zero or more symbols only in file names. Asterisk usage for directory names is not allowed
Tip |
|---|
Examples \* - matches all files foo* - matches all files with file name starting with foo Matched file paths: C:\foot.cs D:\MyFooFolder\foo.js
Unmatched file paths: C:\ffoo.cs D:\foo\myfile.cs
*designer* - matches all files with a file name containing designer Matched file paths: Unmatched file paths: C:\designer\foo.cs D:\Foo\foodesigNNer.vb
MyFolder\* - matches all files contained in MyFolder Matched file paths: C:\MyFolder\foo.cs C:\MyFolder\boo.js
Unmatched file paths: C:\FooMyFolder\foo.cs C:\MyFolder\Foo\foo.js
|
? - extends one and only one symbol in either file names or directory names
Tip |
|---|
Examples My?older\file.cs - matches all C# files named file and contained in a folder which can be extended by My?older where ‘?’ presents a single symbol Matched file paths: C:\MyFolder\file.cs C:\MyHolder\file.cs
Unmatched file paths: C:\MyFolder\file1.cs C:\MySholder\file.cs
\*.?s - matches all files with extension ".?s" (".js", ".cs", ".ps" and so on) Matched file paths: Unmatched file paths: C:\Foo\file.css E:\file.ps1
|
% - extends zero or more directory names
Tip |
|---|
Examples MyFolder\%\* - matches all files contained in MyFolder or its subdirectories Matched file paths: Unmatched file paths: C:\FooMyFolder\foo.cs C:\MyFolderFoo\foo.js
|
A percent symbol can be escaped by preceding it with a pipe symbol ('|')
Tip |
|---|
Examples |%folder\* - matches all files contained in directory named %folder Matched file paths: C:\Foo\%folder\foo.cs C:\%folder\foo.js
Unmatched file paths: C:\foo%folder\foo.cs C:\%folder\Foo\foo.js
|
Percent usage for file names or using two percent symbols in a filter will not work.
Tip |
|---|
Invalid filters \%\ - matches nothing because file name definition is missing \folder\%\folder\%\* - matches nothing because two percent symbols are used in the filter |
There is also a submenu Warnings that enables you to toggle specific analysis inspections that JustCode performs while analyzing your solution. It is strongly recommended to keep all toggles checked to have a clean code, free of unused or obsolete statements.
Code analysis refresh interval - Code analysis will delay its refresh by the amount of the time entered. Increasing the delay improves performance while typing and decreasing the delay will provide faster Code Analysis results.
Show solution analysis report notification - Show a report with the count of errors/warnings in the lower left corner of Visual Studio when the solution analysis is complete.
See Also