Skip to content

Conversation

@dipanshuhappy
Copy link
Contributor

Resolves #12635

Motivation

Solution

I made the severity by default to be low

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Contributor

@0xrusowsky 0xrusowsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

besides the lint-related comment that i left, why are you modifying cast?

please remove all of that

Comment on lines -106 to +110
.with_severity(if severity.is_empty() { None } else { Some(severity) })
.with_severity(if severity.is_empty() {
Some(vec![Severity::Low])
} else {
Some(severity)
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is incorrect, what we should do is that when no severity is informed we exclude the Severity::Gas lints

additionally forge lint is also invoked via forge build, so rather than changing the mulitple entry points, it may be better to change the behavior in the lint crate

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah Got it. On it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

forge lint: reduce verbosity

2 participants