Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AnalysisParams

Represents an object which can be passed to an instance of ProjectAuditor to specify how analysis should be performed and to provide delegates to be called when analysis steps have completed. AnalysisParams defaults to values which instruct ProjectAuditor to analyze everything in the project for the current build target, but instances can be populated with custom data in an object initializer to provide additional constraints.
Read time 1 minuteLast updated 6 days ago

Definition

public class AnalysisParams

Fields

Value

Description

AssemblyNamesAssemblies to analyze. If null, all compiled assemblies will be analyzed.
CategoriesIssue Categories to include in the audit. If null, the analysis will include all categories.
CodeAnalysisFlagsThe Compilation flags to use during code analysis.
CodeOptimizationCode optimization mode. The default is CodeOptimization.Release.
DiagnosticParamsThe DiagnosticParams object which defines the customizable thresholds for reporting certain diagnostics. By default, this makes a copy of ProjectAuditorSettings.
OnCompletedNotifies that all Modules completed their analysis.
OnIncomingIssuesReports a batch of new issues. Note that this be called multiple times per analysis.
OnModuleCompletedNotifies that a Module completed its analysis.
OnStartedNotifies that an analysis has started.

Constructors

Constructor

Description

AnalysisParams(System.Boolean)AnalysisParams constructor.
AnalysisParams(Unity.ProjectAuditor.Editor.AnalysisParams)Copy constructor.

Properties

Property

Description

PlatformAnalysis platform. The default platform is the currently active build target.

Methods

Method

Description

WithAdditionalDiagnosticRulesAdds a list of additional Rules which will be applied during analysis.