Sonar complaining about logging and rethrowing the exception

前端 未结 4 1067
闹比i
闹比i 2020-12-06 04:32

I have the following piece of code in my program and I am running SonarQube 5 for code quality check on it after integrating it with Maven.

However, Sonar is complai

4条回答
  •  旧时难觅i
    2020-12-06 05:21

    If you believe that SQLException can be safely ignored, then you can add it to the list of exceptions for squid:S1166 rule.

    1. Go to Rule-> Search squid:S1166.
    2. Edit exceptions in Quality Profile.
    3. Add SQLException to the list.

提交回复
热议问题