# AnalysisContext

> Base class for a context object passed by a Module to an Analyzer's Analyze() method.

## Definition

* **Type:** Class
* **Namespace:** [Unity.ProjectAuditor.Editor.Core](/engine/6000.5/script-reference/unity/projectauditor/editor/core.md)
* **Assembly:** UnityEditor

```csharp
public class AnalysisContext
```

## Remarks

AnalysisContext provides information to the Analyze() method which is used to decide which issues to report. It also provides helper methods to build Issues or Insights.

## Fields

| Value                                                                                                | Description                                                                                       |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| [Params](/engine/6000.5/script-reference/unity/projectauditor/editor/core/analysiscontext/params.md) | The AnalysisParams object that was passed to (or created by) the ProjectAuditor's Audit() method. |

## Methods

| Method                                                                                                                         | Description                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
| [CreateInsight](/engine/6000.5/script-reference/unity/projectauditor/editor/core/analysiscontext/createinsight.md)             | Create a ReportItemBuilder for an Insight: A ReportItem collected for informational purposes.                                 |
| [CreateIssue](/engine/6000.5/script-reference/unity/projectauditor/editor/core/analysiscontext/createissue.md)                 | Create a ReportItemBuilder for an Issue: a potential problem in the project, with an actionable recommendation to resolve it. |
| [IsDescriptorEnabled](/engine/6000.5/script-reference/unity/projectauditor/editor/core/analysiscontext/isdescriptorenabled.md) | Checks whether a given Descriptor is enabled for the current analysis.                                                        |
