[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.