1 of 11

Ktlint

By Moro

2 of 11

Captain, I found a way to improve our Code quality…

Explain…

3 of 11

Take a look sir!

4 of 11

Put Ktlint in the CI/CD pipeline,to check their code.

It is an order!

5 of 11

First, I will add Ktlint plugin into the project:

gradle/ -> libs.versions.toml

[versions]

[plugins]

6 of 11

Applying the new plugin for all modules…

build.gradle.kts (project level)

7 of 11

I have permission to send this to the main branch

Yep, you have!

8 of 11

Updating the CI/CD to run ktlint task:

9 of 11

Peralta, your PR is failing!

What?!

It is impossible!

10 of 11

Yep. It is failing Peralta. You need to format your code using ktlint, and send it again!

11 of 11

Ty Sarge!