Class AnalysisParams
Represents an object which can be passed to an instance of Project
Inherited Members
Namespace: Unity.ProjectAuditor .Editor
Assembly: Unity.ProjectAuditor.Editor.dll
Syntax
[Serializable]
public class AnalysisParams
Constructors
AnalysisParams(bool)
AnalysisParams constructor.
Declaration
public AnalysisParams(bool copyParamsFromGlobal = true)
Parameters
Type | Name | Description |
---|---|---|
bool | copyParamsFromGlobal | If true, the global ProjectSettings will register DiagnosticParams defaults, save any changes and copy the data into this object. This is usually the desired behaviour, but is not allowed during serialization. |
AnalysisParams(AnalysisParams)
Copy constructor.
Declaration
public AnalysisParams(AnalysisParams original)
Parameters
Type | Name | Description |
---|---|---|
Analysis |
original | The AnalysisParams object to copy from. |
Fields
AssemblyNames
Assemblies to analyze. If null, all compiled assemblies will be analyzed.
Declaration
public string[] AssemblyNames
Field Value
Type | Description |
---|---|
string[] |
Categories
Issue Categories to include in the audit. If null, the analysis will include all categories.
Declaration
[SerializeField]
public IssueCategory[] Categories
Field Value
Type | Description |
---|---|
Issue |
CodeOptimization
Code optimization mode. The default is Release.
Declaration
public CodeOptimization CodeOptimization
Field Value
Type | Description |
---|---|
Code |
CompilationMode
The Compilation mode to use during code analysis. The default is Player.
Declaration
public CompilationMode CompilationMode
Field Value
Type | Description |
---|---|
Compilation |
DiagnosticParams
The DiagnosticParams object which defines the customizable thresholds for reporting certain diagnostics.
By default, this makes a copy of Project
Declaration
public DiagnosticParams DiagnosticParams
Field Value
Type | Description |
---|---|
Diagnostic |
OnCompleted
Notifies that all Modules completed their analysis.
Declaration
[JsonIgnore]
public Action<Report> OnCompleted
Field Value
OnIncomingIssues
Reports a batch of new issues. Note that this be called multiple times per analysis.
Declaration
[JsonIgnore]
public Action<IEnumerable<ReportItem>> OnIncomingIssues
Field Value
Type | Description |
---|---|
Action<IEnumerable<Report |
OnModuleCompleted
Notifies that a Module completed its analysis.
Declaration
[JsonIgnore]
public Action<AnalysisResult> OnModuleCompleted
Field Value
Type | Description |
---|---|
Action<Analysis |
Properties
Platform
Analysis platform. The default platform is the currently active build target.
Declaration
[JsonConverter(typeof(BuildTargetJsonConverter))]
public BuildTarget Platform { get; set; }
Property Value
Type | Description |
---|---|
Build |
Methods
WithAdditionalDiagnosticRules(List<Rule>)
Adds a list of additional Rules which will be applied during analysis.
Declaration
public AnalysisParams WithAdditionalDiagnosticRules(List<Rule> rules)
Parameters
Returns
Type | Description |
---|---|
Analysis |
This AnalysisParams object, after adding the additional Rules. |