wazuh / wazuh-indexer-plugins

GNU Affero General Public License v3.0
1 stars 3 forks source link

Implement spotless gradle pre-commit hook #105

Closed QU3B1M closed 1 month ago

QU3B1M commented 1 month ago

Description

Implementation of the spotless tool to lint and format the code and a pre-commit hook to execute a spotlessCheck automatically.

[!IMPORTANT]

The pre-commit hook is applied to our local .git dir on the first run of the ./gradlew build command.

This PR also includes the generation of a root Gradle project to handle generic processes for the plugins avoiding code duplication, for now it only handles the spotless actions.

The formatting options included in this spotless implementations are:

All these format options can be applied by running ./gradlew spotlessApply from the project's root directory.

Issues Resolved