Take into account deprecated rules from SonarQube.