# CodeAnalysisFlags

> Options for the compilation mode Project Auditor should use when performing code analysis.

## Definition

* **Type:** Enum
* **Namespace:** [Unity.ProjectAuditor.Editor](/engine/6000.6/script-reference/unity/projectauditor/editor.md)
* **Assembly:** UnityEditor

```csharp
[Flags]
public enum CodeAnalysisFlags
```

## Remarks

Setting the compilation mode can affect how long analysis takes, which assemblies are analysed and whether certain scripting define symbols are considered.

## Fields

| Value                                                                                                                               | Description             |
| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
| [All](/engine/6000.6/script-reference/unity/projectauditor/editor/codeanalysisflags/all.md)                                         | All                     |
| [DebugManagedCodeVariant](/engine/6000.6/script-reference/unity/projectauditor/editor/codeanalysisflags/debugmanagedcodevariant.md) | DebugManagedCodeVariant |
| [Editor](/engine/6000.6/script-reference/unity/projectauditor/editor/codeanalysisflags/editor.md)                                   | Editor                  |
| [None](/engine/6000.6/script-reference/unity/projectauditor/editor/codeanalysisflags/none.md)                                       | None                    |
| [Packages](/engine/6000.6/script-reference/unity/projectauditor/editor/codeanalysisflags/packages.md)                               | Packages                |
| [Player](/engine/6000.6/script-reference/unity/projectauditor/editor/codeanalysisflags/player.md)                                   | Player                  |
| [Tests](/engine/6000.6/script-reference/unity/projectauditor/editor/codeanalysisflags/tests.md)                                     | Tests                   |
