Extending Qodana: Adding Custom Code Inspections | The JetBrains Platform Blog
Blog post from JetBrains
Qodana, a static code analysis tool from JetBrains, extends the functionality of its IDEs to continuous integration environments by allowing users to add custom code inspections. This process is demonstrated through a practical example where a custom inspection ensures that Kotlin classes in a "service" package have a "Service" suffix, which is enforced via a plugin developed using the IntelliJ Platform Plugin Template. The guide provides detailed steps on initializing the project, adjusting properties, declaring dependencies, creating the inspection in Kotlin, and packaging the plugin. It also covers the integration of the custom inspection into CI/CD pipelines using Qodana and how to run it in different environments, including locally via Docker, in the JetBrains IDE, and through the JetBrains Marketplace. The process highlights how Qodana enhances code quality and adherence to coding conventions by producing comprehensive analysis reports.