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

Proposed rule: Literal string concatenation should not happen inside of a comma separated initialization

    XMLWordPrintable

    Details

      Description

      Related to this https://thedailywtf.com/articles/stringing-your-date-along

      One idea might be to detect a string literal made-up of several fragments, when the literal is inside a list of comma separated values.

      We're not sure of the FP rate of this rule, so it's probably worth checking it is worth it.

      An alternative to creating a new rule would be to just change the definition of RSPEC-3728 to report this case.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              loic.joly Loïc Joly
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: