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

programs/suspend/parse: resolve rubocop Metrics/BlockNesting issue #406

Open
rli9 opened this issue Feb 5, 2025 · 0 comments
Open

programs/suspend/parse: resolve rubocop Metrics/BlockNesting issue #406

rli9 opened this issue Feb 5, 2025 · 0 comments

Comments

@rli9
Copy link

rli9 commented Feb 5, 2025

Reproduce

lkp-tests$ rubocop programs/suspend/parse
Inspecting 1 file
C

Offenses:

programs/suspend/parse:34:7: C: Metrics/BlockNesting: Avoid more than 3 levels of block nesting.
      if stage == 'begin' ...
      ^^^^^^^^^^^^^^^^^^^
programs/suspend/parse:41:7: C: Metrics/BlockNesting: Avoid more than 3 levels of block nesting.
      if stage == 'end' ...
      ^^^^^^^^^^^^^^^^^
programs/suspend/parse:47:15: C: Metrics/BlockNesting: Avoid more than 3 levels of block nesting.
      phase = if stage == 'begin' ...
              ^^^^^^^^^^^^^^^^^^^

Reference
https://github.com/intel/lkp-tests/wiki/Coding-Standard#rubocop

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