> 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/vs-code-extension/source-code-analysis/autofix.md).

# Autofix

## Autofix - Issues

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 and configured [IZ Scan Extension](/product-guides/integral-zone/iz-suite/iz-scan/vs-code-extension/configuration/iz-scan-extension.md).
* Purchased a valid license or generated a trial license for Mule Scanner or API Scanner or both.
  {% endhint %}

### Autofix Issues

1. Navigate to **`IZ Scan`** tab in the panel or use `Ctrl+Shift+P` (Cmd+Shift+P on macOS) and search for **`IZ Scan: Fly Results`** to open the view\
   &#x20;

   <figure><img src="/files/hzdlGaxeEnLkgemZ6AKk" alt=""><figcaption></figcaption></figure>
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 <br>

   <figure><img src="/files/IRAhs8oXPOAeeHQTJH9y" alt=""><figcaption></figcaption></figure>
4. Use the **`Fix`** option to apply the fix to applicable files\
   &#x20;

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

### Autofix - Logs

1. Use `Ctrl+Shift+P` (Cmd+Shift+P on macOS) and search for **`>IZ Scan: Auto Fix Logs`** to open the view
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 <br>

   <figure><img src="/files/1HTcsaqUEmxsMvvagZwb" alt=""><figcaption></figcaption></figure>

### See Also

* [Fly Results](/product-guides/integral-zone/iz-suite/iz-scan/vs-code-extension/source-code-analysis/on-the-fly-results.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/vs-code-extension/source-code-analysis/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.
