> For the complete documentation index, see [llms.txt](https://knowledgebase.autorabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.autorabit.com/product-guides/integral-zone/iz-suite/iz-scan/anypoint-studio/source-code-analysis/anypoint-studio-autofix.md).

# Anypoint Studio - Autofix

Autofix is a feature where static code analysis issues can be fixed automatically with the click of a button.

{% hint style="warning" %}
Make sure you have:

* Installed the latest version of [IZ Scan - Anypoint Studio Studio Plugin](/product-guides/integral-zone/iz-suite/iz-scan/anypoint-studio/installation/install-iz-analyzer-studio.md)
* Configured the plugin with the appropriate connection type, Service URL, and Access Token.
* Valid license with Auto Fix module enabled
  {% endhint %}

### Enable Autofix

1. Go to **`Window`** -> **`Preferences`** -> **`IZ Preferences`**, and **`Sync Metadata`** if not done already
2. Click on **`Enable Auto Fix`**

### Autofix Issues

1. Go to **`Window`** -> **`Show View`** -> **`other`** -> **`IZ Scan`** -> select **`On the Fly Results`**
2. **`Preview`** and **`Fix`** options will be available in **`On the Fly Results`** table against applicable rules
3. Use the **`Preview`** option to view the list of changes that the **`Fix`** would perform. No files will be updated in preview mode.\
   &#x20;

   <figure><img src="/files/zmrSWck5gsTIIGzRgIOj" alt=""><figcaption></figcaption></figure>
4. Use the **`Fix`** option to apply the fix to applicable files <br>

   <figure><img src="/files/a4zpYR35rAg6GHxidAEX" alt=""><figcaption></figcaption></figure>

### Autofix - Logs

1. Go to **`Window`** -> **`Show View`** -> **`other`** -> **`IZ Scan`** -> select **`Auto Fix Logs`**
2. An audit log of the applied fix will be generated in the **`target/izanalyzer/autofix-log.csv`** directory
3. HTML report of the same will be displayed in **`Auto Fix Logs`** view\
   &#x20;

   <figure><img src="/files/CEAs0BuIuQd3y31V28Z5" alt=""><figcaption></figcaption></figure>

#### See Also

* [On The Fly Results](/product-guides/integral-zone/iz-suite/iz-scan/anypoint-studio/source-code-analysis/anypoint-studio-analysis.md)
* [Rules Playground - Custom Rules Editor](/product-guides/integral-zone/iz-suite/iz-scan/anypoint-studio/source-code-analysis/anypoint-studio-rules-playground.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/integral-zone/iz-suite/iz-scan/anypoint-studio/source-code-analysis/anypoint-studio-autofix.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
