Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False-positive in file attribute detection #265

Open
rossburton opened this issue Jul 2, 2024 · 0 comments
Open

False-positive in file attribute detection #265

rossburton opened this issue Jul 2, 2024 · 0 comments

Comments

@rossburton
Copy link

Not sure if there's a way to detect this, but thought I'd file it anyway.

Clone https://git.openembedded.org/openembedded-core and run vermin:

$ vermin --target=3.8 --lint -vvv meta/lib/oeqa/selftest/cases/manifest.py
Detecting python files..
Analyzing using 128 processes..
2.7, !3      /home/rosbur01/Yocto/openembedded-core/meta/lib/oeqa/selftest/cases/manifest.py
  L124: 'file' member requires 2.0, !3

Line 124:

msg = '{}: {} Error has the following missing entries'.format(self.classname, m_entry[k].file)

Note that m_entry[k] is a ManifestEntry instance, which has an explicit file member.

Can vermin detect this, or should we annotate the accesses (or rename the member).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant