Add edge cases for require-line-break-after-variable-assignment

* use end position rather than start of last declaration

Fixes: #540