# Lombok: False Quality Risks

### Problem <a href="#problem" id="problem"></a>

When working with Lombok, SeaLights reports quality risks on its generated code.

### Solution <a href="#solution" id="solution"></a>

SeaLights has the ability to ignore Lombok code if Lombok annotations are added to the generated code.\
In order to do so, you need to have Lombok generate the needed annotations, by setting the flag `lombok.addLombokGeneratedAnnotation` to `true` in the Lombok configuration itself.<br>

This can be done by updating the `lombok.config` file with the following entry:

{% code overflow="wrap" lineNumbers="true" %}

```
lombok.addLombokGeneratedAnnotation = true
```

{% endcode %}

Please refer to <https://projectlombok.org/features/configuration> for more details

### Related articles <a href="#related-articles" id="related-articles"></a>

* [Running Tests](/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/go-agent/go-agent-v1/running-tests.md) (Go)
* [Setting up a windows service](/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/.net-core-agent/capturing-coverage-from-the-application/ms-windows-specific-configurations/setting-up-a-windows-service.md) (.Net)
* [Setting up IIS Listener](/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/.net-core-agent/capturing-coverage-from-the-application/ms-windows-specific-configurations/setting-up-iis-listener.md) (.Net)
* [Cloud Foundry Integration](/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/python-agent/capturing-coverage-from-runtime-application/cloud-foundry-integration.md) (Python)
* [Pivotal Cloud Foundry (PCF) Support](/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-agent/pivotal-cloud-foundry-pcf-support.md) (Java)


---

# Agent Instructions: 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:

```
GET https://docs.sealights.io/knowledgebase/setup-and-configuration/troubleshooting-faq/java/lombok-false-quality-risks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
