Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-2788

S1172: Use actionable message with double quotes (")

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.15
    • Component/s: C, C++
    • Labels:
      None

      Description

      Our implementation of RSPEC-1172 only states a fact that a parameter is not used:

      unused parameter 'Path'

      The message should suggest an action, depending on the context, e.g.:

      Annotate this unused parameter "Path"

      or

      Delete this unused parameter "Path"

      This ticket is to find and implement the most precise actionable message that is feasible and correct.

      Also, to conform with other rules, the message should use double quotes for the name of the parameter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arseniy.zaostrovnykh Arseniy Zaostrovnykh
                Reporter:
                arseniy.zaostrovnykh Arseniy Zaostrovnykh
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: