You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
Sonar says that they are duplicates. But if I combine function call in one line(which is not acceptable by our style guide) sonar ignore it because in rule "Functions should not have identical implementations" there is an exceptional case "Functions with fewer than 3 lines are ignored."
Question: Can I somehow configure sonar to process function call with line breaks as one line to exclude this case? (Or this is kind of bug, or maybe feature which I do not understand?☺)
The text was updated successfully, but these errors were encountered:
I don't think it's required to adjust this rule to your case. IMO if this is just couple of times you have this problem, then just "won't fix" the issue. If it's regular, I think there is problem in the code quality, that you need to duplicate such long lines that they don't even fit your limit. Try to refactor.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello.
Our code style implies to move parameters in function call to the next lineif it's too long in one line.
Sonar says that they are duplicates. But if I combine function call in one line(which is not acceptable by our style guide) sonar ignore it because in rule "Functions should not have identical implementations" there is an exceptional case "Functions with fewer than 3 lines are ignored."
Question: Can I somehow configure sonar to process function call with line breaks as one line to exclude this case? (Or this is kind of bug, or maybe feature which I do not understand?☺)
The text was updated successfully, but these errors were encountered: