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

Add support for purl constraints in Cycle checks. Change log level default to Error. Bump default lookahead to 1y #480

Merged
merged 9 commits into from
Feb 5, 2025
Prev Previous commit
Next Next commit
fix formatting
Signed-off-by: Rafael Mestre <rafael@herodevs.com>
  • Loading branch information
rlmestre committed Jan 29, 2025
commit 261fdf7ed8b19cdf5de8f5edea1b01753bbaa0cf
3 changes: 1 addition & 2 deletions xeol/search/purl.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
}

for _, c := range cycles {

// direct match, if it exists
if normalizedVersion == c.ReleaseCycle {
return c, nil
Expand All @@ -123,7 +122,7 @@
matched := cx.Check(v)
if matched {
return c, nil
}else {
} else {

Check failure on line 125 in xeol/search/purl.go

View workflow job for this annotation

GitHub Actions / Static analysis

indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
// if it parsed a constraint but we didn't match, dip out
continue
}
Expand Down
Loading