abacus-develop icon indicating copy to clipboard operation
abacus-develop copied to clipboard

Use PARAM instead of GlobalV

Open A-006 opened this issue 1 year ago • 0 comments

Describe the Code Quality Issue

The GlobalV is a set of external variables. It can be used throughout the program, but it can be modified from anywhere, making it less safe. On the other hand, PARAM contains constant variable sets that can only be modified in unit test files or ReadIO files, making it safer and easier to use. Therefore, modify GlobalV to PARAM. #5040 #5042 #5053 #5065 #5070 #5097 #5104 #5115 #5129

Additional Context

No response

Task list for Issue attackers (only for developers)

  • [ ] Identify the specific code file or section with the code quality issue.
  • [ ] Investigate the issue and determine the root cause.
  • [X] Research best practices and potential solutions for the identified issue.
  • [X] Refactor the code to improve code quality, following the suggested solution.
  • [ ] Ensure the refactored code adheres to the project's coding standards.
  • [X] Test the refactored code to ensure it functions as expected.
  • [ ] Update any relevant documentation, if necessary.
  • [X] Submit a pull request with the refactored code and a description of the changes made.

A-006 avatar Sep 19 '24 10:09 A-006