flycheck / flycheck-inline

Display Flycheck errors inline
GNU General Public License v3.0
137 stars 10 forks source link

Handle related errors that are out of view #1

Open fmdkdd opened 6 years ago

fmdkdd commented 6 years ago

If a related error is in a part of the buffer that's not currently visible, we should rather report it under the current error, alongside with the code line that triggered it. Something like this:

let z = x;
------------------------------------------
    use of moved value: `x`
let y = x;              (line 13)
    value moved here
------------------------------------------