Skip to content

refactor: Use meaningful variable#654

Merged
richm merged 1 commit intolinux-system-roles:mainfrom
liangwen12year:code_refactor
Dec 1, 2023
Merged

refactor: Use meaningful variable#654
richm merged 1 commit intolinux-system-roles:mainfrom
liangwen12year:code_refactor

Conversation

@liangwen12year
Copy link
Contributor

Enhancement:
refractor: Use meaningful variable

Reason:
Some variables used in the module code are not meaningful at all, which mgiht be hard to read and understand. Therefore, replace them with meaningful variables.

Result:

Issue Tracker Tickets (Jira or BZ if any):

@codecov
Copy link

codecov bot commented Nov 16, 2023

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (11fa80a) 43.31% compared to head (7e7dacf) 43.31%.

Files Patch % Lines
library/network_connections.py 23.52% 13 Missing ⚠️
module_utils/network_lsr/argument_validator.py 71.42% 4 Missing ⚠️
module_utils/network_lsr/utils.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #654   +/-   ##
=======================================
  Coverage   43.31%   43.31%           
=======================================
  Files          13       13           
  Lines        3068     3068           
  Branches      394      394           
=======================================
  Hits         1329     1329           
  Misses       1739     1739           
Flag Coverage Δ
sanity 19.82% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@richm richm changed the title refractor: Use meaningful variable refactor: Use meaningful variable Nov 16, 2023
@liangwen12year
Copy link
Contributor Author

[citest]

@liangwen12year
Copy link
Contributor Author

[citest]

1 similar comment
@liangwen12year
Copy link
Contributor Author

[citest]

@liangwen12year liangwen12year added the blocker Issue to fix for next release label Nov 30, 2023
Some variables used in the module code are not meaningful at all, which
might be hard to read and understand. Therefore, replace them with
meaningful variables.

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
@liangwen12year liangwen12year removed the blocker Issue to fix for next release label Nov 30, 2023
@liangwen12year
Copy link
Contributor Author

[citest]

@richm richm merged commit ed93bed into linux-system-roles:main Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants