Uploaded image for project: 'SonarSlang'
  1. SonarSlang
  2. SONARSLANG-487

[Kotlin] S117: update default regex to not report backticked identifier

    XMLWordPrintable

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8
    • Component/s: Kotlin
    • Labels:

      Description

      In Kotlin to be interoperable with Java some identifiers which are keywords can be backticked. We should not report them as badly named variables.

      override fun isViewFromObject(view: View, `object`: Any) = view == `object`
      

      To do that we could change the default Kotlin value for the parameter.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quentin.jaquier Quentin Jaquier
              Reporter:
              elena.vilchik Elena Vilchik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: