-
Notifications
You must be signed in to change notification settings - Fork 73
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
feature: Improving Analyzer Failure State #2697
feature: Improving Analyzer Failure State #2697
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect!
@@ -45,36 +43,3 @@ func (l Linter) HasID() bool { | |||
func (l Linter) GetID() id.ID { | |||
return l.ID | |||
} | |||
|
|||
func (l Linter) ValidateResult(result model.LinterResult) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed, clients will check score vs minimum score to validate it
@@ -10,6 +10,8 @@ | |||
package openapi | |||
|
|||
type LinterResult struct { | |||
MinimumScore int32 `json:"minimumScore,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are now going to persis the minimum score that was used during the execution, not using the global
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -25,6 +25,7 @@ export const theme: DefaultTheme = { | |||
md: '14px', | |||
lg: '16px', | |||
xl: '18px', | |||
xxxl: '24px', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xxxl
? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know man, 20 should be xxl si I just went for it 😂
This PR improves the way we handle error states for the analyzer. Instead of stopping the test execution, now clients will be reading the linter results to validate if there was a failure or not, and show the proper results.
Changes
Fixes
Checklist
https://www.loom.com/share/6624b56c915b4c41a07f52179bbbdbf7