Description:
I have developed a custom Python plugin for SonarQube designed to check naming conventions for Python filenames. Specifically, this plugin ensures that all Python function names use snake_case (e.g., my_function_name
) rather than camelCase (e.g., myFunctionName
).
Steps Taken:
- Plugin Development and Testing:
- The plugin was developed and tested locally, and all unit tests are passing.
- The JAR file was built using Maven, following SonarQube’s guidelines for custom plugin development.
- Uploading and Detecting the Plugin:
- I uploaded the JAR file to the
extensions/plugins
directory on the SonarQube server. - After restarting SonarQube, the plugin is successfully detected and listed under Administration > Marketplace.
- Starting Sonar Scanner:
- When running Sonar Scanner to analyze a Python project, the logs indicate that the plugin was loaded without issues.
Problem: Despite being loaded and detected, the plugin does not seem to be applied during analysis. No issues related to function naming are flagged, and the plugin rules do not appear to be activated in the analysis results.
Could someone please provide guidance on additional configuration steps or diagnostic options to ensure the plugin functions as expected during analysis?
Thank you for your assistance.