-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and promote function to a class
The code has many issues that are triggering CodeClimate problems. We tried to address them by simple refactoring, but then we realized that more refactoring would make the code more readable and understandable. There are 2 branches of the code logic: 1. processing OVAL checks from benchmark directories (eg. /linux_os/guide) 2. processing OVAL checks from shared directories (eg. /shared/checks) These 2 logic branches have similar code and it's possible to unify them. However, I found the unification easier when I change the code to a class.
- Loading branch information
Showing
2 changed files
with
159 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters