[Fix #1219] Avoid reporting }/end sharing line with something

For block ends that follow something else on the same line,
there's no correct or incorrect alignment.
Merge pull request #1221 from jonas054/1219_block_end_align

[Fix #1219] Avoid reporting }/end sharing line with something