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

CLI: display severity classification of each issue #222

Open
matiascabello opened this issue Jan 13, 2025 · 0 comments
Open

CLI: display severity classification of each issue #222

matiascabello opened this issue Jan 13, 2025 · 0 comments

Comments

@matiascabello
Copy link
Collaborator

Currently each issue found by Scout is displayed as follows:

warning: Division before multiplication might result in a loss of precision
    --> pallets/dapp-staking/src/lib.rs:1722:41
     |
1722 |                         reward_per_rank.saturating_mul(ranks_sum.into());
     |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: Consider reversing the order of operations to reduce the loss of precision.
     = note: `#[warn(divide_before_multiply)]` on by default

Expected output

Display the severity classification of each issue.

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

No branches or pull requests

1 participant