pkgcore / pkgcheck

pkgcore-based QA utility for ebuild repos
https://pkgcore.github.io/pkgcheck
BSD 3-Clause "New" or "Revised" License
35 stars 29 forks source link

"UnquotedVariable" warning should be reporting the offending line in "lineno" #442

Closed xgqt closed 2 years ago

xgqt commented 2 years ago

Modification of an ebuild file:

insinto ${S}/asdf

Result from the checker:

/usr/bin/pkgcheck scan --exit\= --reporter\=FlycheckReporter --scopes\=-git --verbose /home/xy/source/public/gentoo.org/repo/gentoo/app-emacs/geiser/geiser-0.26.ebuild
geiser-0.26.ebuild:0:warning:UnquotedVariable: unquoted variable S on line: 31 

Compilation finished at Sat Sep  3 04:31:13

image

arthurzam commented 2 years ago

Just FYI, there are multiple results which collect the lines list in single ebuild to show one result instead of multiple of the same, and UnquotedVariable is one of them.

But what I should do is to fix the FlycheckReporter so those results which are line collection, split them into multiple results only on that. It will still list in the description all the lines, but you will get multiple reports.

xgqt commented 2 years ago

I think listing all offending lines in description is a bad idea - in this case if the cursor would be on offending line (or on hover) other unrelated lines would appear in description.

On September 3, 2022 7:27:47 AM GMT+02:00, Arthur Zamarin @.***> wrote:

Just FYI, there are multiple results which collect the lines list in single ebuild to show one result instead of multiple of the same, and UnquotedVariable is one of them.

But what I should do is to fix the FlycheckReporter so those results which are line collection, split them into multiple results only on that. It will still list in the description all the lines, but you will get multiple reports.

-- Have a great day! ~ Maciej XGQT Barć