mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
lint.fish: fix line number display
This commit is contained in:
parent
adba0550d5
commit
839cd2a1c7
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ if set -q c_files[1]
|
||||||
# The stderr to stdout redirection is because cppcheck, incorrectly IMHO, writes its
|
# The stderr to stdout redirection is because cppcheck, incorrectly IMHO, writes its
|
||||||
# diagnostic messages to stderr. Anyone running this who wants to capture its output will
|
# diagnostic messages to stderr. Anyone running this who wants to capture its output will
|
||||||
# expect those messages to be written to stdout.
|
# expect those messages to be written to stdout.
|
||||||
cppcheck -q --verbose --std=posix --language=c++ --template \[(set_color --bold)(set_color --underline)"{file}"(set_color normal)(set_color --bold)"{line}"(set_color normal)"]:"(set_color brmagenta)" {severity}"(set_color magenta)" ({id}):"\n(set_color normal)" {message}" --suppress=missingIncludeSystem --inline-suppr --enable=$cppchecks --rule-file=.cppcheck.rule $cppcheck_args $c_files 2>&1
|
cppcheck -q --verbose --std=posix --language=c++ --template \[(set_color --bold)(set_color --underline)"{file}"(set_color normal)(set_color --bold)":{line}"(set_color normal)"] "(set_color brmagenta)"{severity}"(set_color magenta)" ({id}):"\n(set_color normal)" {message}" --suppress=missingIncludeSystem --inline-suppr --enable=$cppchecks --rule-file=.cppcheck.rule $cppcheck_args $c_files 2>&1
|
||||||
end
|
end
|
||||||
|
|
||||||
if type -q oclint
|
if type -q oclint
|
||||||
|
|
Loading…
Reference in a new issue