Skip to content

Nits - APK installed optimizations#227

Merged
oliverchang merged 1 commit into
google:mainfrom
cmaritan:nits-staticcheck-apk
Feb 20, 2023
Merged

Nits - APK installed optimizations#227
oliverchang merged 1 commit into
google:mainfrom
cmaritan:nits-staticcheck-apk

Conversation

@cmaritan

Copy link
Copy Markdown
Contributor

Hello,

ported to APK installed parser common optimizations already merged for DPKG in #168.
Additionally, a couple of staticcheck linter errors have been corrected (I think!).
I saw the comments here:

//nolint:errname,stylecheck // Would require version bump to change
var NoPackagesFoundErr = errors.New("no packages found in scan")
//nolint:errname,stylecheck // Would require version bump to change
var VulnerabilitiesFoundErr = errors.New("vulnerabilities found")
but after my change both lints and tests are ok so it's not clear to me if comments are now out of date or if I'm missing something!

Comments have been introduced in #149.

Thank you,
Regards.

@G-Rath

G-Rath commented Feb 20, 2023

Copy link
Copy Markdown
Collaborator

after my change both lints and tests are ok so it's not clear to me if comments are now out of date or if I'm missing something!

they're public, so renaming them would be a breaking change - the comments should read "Would require a major version bump"

@cmaritan cmaritan force-pushed the nits-staticcheck-apk branch from e4c5e15 to cd3c357 Compare February 20, 2023 19:30
@cmaritan

Copy link
Copy Markdown
Contributor Author

Thank you for the clarification!
Rolled back the rename part of this PR.

@cmaritan cmaritan changed the title Nits - APK installed optimizations and staticcheck lint Nits - APK installed optimizations Feb 20, 2023
@oliverchang oliverchang merged commit abaf302 into google:main Feb 20, 2023
@cmaritan cmaritan deleted the nits-staticcheck-apk branch February 20, 2023 23:09
hayleycd pushed a commit that referenced this pull request Mar 9, 2023
Hello,

ported to APK installed parser common optimizations already merged for
DPKG in #168.
Additionally, a couple of staticcheck linter errors have been corrected
(I think!).
I saw the comments here:
https://github.com/google/osv-scanner/blob/fb4d2c4d8e4e59961db70121e31870593e045a4e/pkg/osvscanner/osvscanner.go#L39-L43
but after my change both lints and tests are ok so it's not clear to me
if comments are now out of date or if I'm missing something!

Comments have been introduced in #149.

Thank you,
Regards.
julieqiu pushed a commit to julieqiu/osv-scanner that referenced this pull request May 2, 2023
Hello,

ported to APK installed parser common optimizations already merged for
DPKG in google#168.
Additionally, a couple of staticcheck linter errors have been corrected
(I think!).
I saw the comments here:
https://github.com/google/osv-scanner/blob/fb4d2c4d8e4e59961db70121e31870593e045a4e/pkg/osvscanner/osvscanner.go#L39-L43
but after my change both lints and tests are ok so it's not clear to me
if comments are now out of date or if I'm missing something!

Comments have been introduced in google#149.

Thank you,
Regards.
julieqiu pushed a commit to julieqiu/osv-scanner that referenced this pull request May 2, 2023
Hello,

ported to APK installed parser common optimizations already merged for
DPKG in google#168.
Additionally, a couple of staticcheck linter errors have been corrected
(I think!).
I saw the comments here:
https://github.com/google/osv-scanner/blob/fb4d2c4d8e4e59961db70121e31870593e045a4e/pkg/osvscanner/osvscanner.go#L39-L43
but after my change both lints and tests are ok so it's not clear to me
if comments are now out of date or if I'm missing something!

Comments have been introduced in google#149.

Thank you,
Regards.
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

Successfully merging this pull request may close these issues.

3 participants