Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3470

Add more exceptions to S107

    XMLWordPrintable

    Details

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

      Description

      The following annotations should be added to the list of exceptions for S107 as the number of arguments may be outside of the programmer's control when using these annotations:

      • javax.ws.rs.GET
      • javax.ws.rs.POST
      • javax.ws.rs.PUT
      • javax.ws.rs.PATCH
      • org.springframework.beans.factory.annotation.Autowired
      • javax.inject.Inject

      A parameter should also be added to allow users to add additional exceptions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              margarita.nedzelska Margarita Nedzelska
              Reporter:
              sebastian.hungerecker Sebastian Hungerecker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: