fix: linter fortitude: renamed location key from "row" to "line" (#5161)
CI / Build (push) Canceled after 0s
CI / Lint (push) Canceled after 0s
CI / Lua (push) Canceled after 0s
CI / Neovim 0.10 Linux (push) Canceled after 0s
CI / Neovim 0.12 Linux (push) Canceled after 0s
CI / Vim 8.2 Linux (push) Canceled after 0s
CI / Vim 9.2 Linux (push) Canceled after 0s
CI / Neovim 0.10 Windows (push) Canceled after 0s
CI / Neovim 0.12 Windows (push) Canceled after 0s
CI / Vim 8.2 Windows (push) Canceled after 0s
CI / Vim 9.2 Windows (push) Canceled after 0s

* fix: linter fortitude: renamed location key from "row" to "line"

* fortitude try line first then row

* fortitude add tests with row
This commit is contained in:
Marek Beckmann authored and GitHub committed 2026-10-20 13:09:25 +09:00
1 parent e1789bc544
commit ca4a4dd33c
2 files changed
+60 -2

No files matched your search

+6 -2
View File
@@ -21,9 +21,13 @@ function! ale_linters#fortran#fortitude#Handle(buffer, lines) abort
let l:prefix = matchstr(l:error['code'], '^\a\+')
let l:type = get(s:severity_map, l:prefix, 'I')
" Fortitude renamed `row` to `line` (PlasmaFAIR/fortitude@0eda11975096517b16bf30bf683011f83a24e55e)
let l:line = get(l:error['location'], 'line', get(l:error['location'], 'row'))
let l:end_line = get(l:error['end_location'], 'line', get(l:error['end_location'], 'row'))
call add(l:output, {
\ 'lnum': l:error['location']['row'],
\ 'end_lnum': l:error['end_location']['row'],
\ 'lnum': l:line,
\ 'end_lnum': l:end_line,
\ 'col': l:error['location']['column'],
\ 'end_col': l:error['end_location']['column'],
\ 'text': l:error['message'],