New features:
- Compatible with IntelliJ IDEA 2025.2+ (based on IntelliJ Plugins v2):
- Quick Fixes for CodeNarc violations ported to the new API
- Automated tests reworked to use the new API
- CodeNarc 3.6.0
- Supports Disabling rules from comments
- Groovy 4+
- Gradle 9.2.0
- Default run configuration for debugging the plugin in IDEA
Run all tests:
./gradlew clean test --info --stacktraceRun a single specific test:
./gradlew clean test --tests "*UnnecessaryDotClassInspectionToolSpec" --info --stacktraceTo run the plugin locally in IDEA:
./gradlew runIdeTo build the plugin run ./gradlew clean buildPlugin.
Take the file from build/distributions/codenarc-idea-7.0.4.zip and install it in IDEA.
- Change the CodeNarc version in
build.gradle - Regenerate the IDEA inspection classes from CodeNarc with
./gradlew run- existing inspection classes manual removal from
org.codenarc.idea.inspectionsmight be required
- existing inspection classes manual removal from
- Test
./gradlew test --info --stacktrace - Build
./gradlew buildPlugin - Take the file from
build/distributions/codenarc-idea-7.0.4.zipand install it in IDEA.
This is an update to this project:
https://github.com/seanleblanc/CodeNarc-Updated
which was an update to this project:
https://github.com/melix/CodenarcNG
which was a fork the original project.
CodeNarc-Updated will be replaced with this plugin.
There is a random issue with StackOverflowError which should have no impact on the IDE.
Feel free to join the beta channel here: https://plugins.jetbrains.com/plugins/beta/5925

