RSPEC-2234 creates a secondary location on the function definition. This location can be quite far from the primary location and developers will expect to navigate to it in SonarLint. Thus we need to add a message to this secondary location.
As the secondary location is designed right now I would use the message "Method definition."
If it is possible we can also improve secondary locations a bit and create them directly on parameters which are misplaced, just as it is done for java:
RSPEC-2234 creates a secondary location on the function definition. This location can be quite far from the primary location and developers will expect to navigate to it in SonarLint. Thus we need to add a message to this secondary location.
As the secondary location is designed right now I would use the message "Method definition."
If it is possible we can also improve secondary locations a bit and create them directly on parameters which are misplaced, just as it is done for java: