NamingConventions change Max Length #271
-
Hello, How can I change the Inspection Options in the qodana.yaml file for PhpClassNamingConventionInspection to be Max Lenght 32 instead of default 16. The link to the available options (GitHub) goes to 404: https://www.jetbrains.com/help/qodana/2024.2/custom-profiles.html#custom-profiles-examples-inspection-options |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, The option ID for the max length is |
Beta Was this translation helpful? Give feedback.
Hello,
The option ID for the max length is
m_maxLength
. I think the link in the documentation is not relevant anymore, because profiles in that repo useyaml
profiles that don't have options there.Although, it's inconvenient, if you have PhpStorm or a JetBrains IDE, you can edit your inspection profile options there and then go to
./.idea/inspectionProfiles/your-profile.xml
to see the option ID in the changed inspection.We have Inspectopedia that lists all IntelliJ inspections, and I think that it could be the place to store option IDs. I'll suggest this idea to the responsible team. It should make editing inspection options in Qodana much easier.