There is a chance that it happens because of line endings are different between commits
e.g. imagine that you got your file with \n, change single line, and commit it back but now with \r\n
diff tools will show you only this one line change, but actually absolutelly every line is changed
this might be a reason for sonar to start checking whole file instead of single line