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

Refactor the scapval test #10611

Merged
merged 2 commits into from
May 25, 2023
Merged

Conversation

matejak
Copy link
Member

@matejak matejak commented May 23, 2023

Description:

Make the code more explicit/readable. Successor of #10451

Rationale:

Nothing in particular, make the code readable and extensible.

Review Hints:

The functionality should be the same.

@matejak matejak added this to the 0.1.68 milestone May 23, 2023
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@matejak
Copy link
Member Author

matejak commented May 23, 2023

I propose to disregard CodeClimate suggestion, as the current layout allows us to easily add more conditions to the PASS case.

@jan-cerny jan-cerny self-assigned this May 23, 2023
return False


def format_requirement_feedback(req_id, message):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be named print_requirement_feedback as its main goal is to print something, it doesn't return a formatted string.

@Mab879 Mab879 added the Infrastructure Our content build system label May 23, 2023
 - make it explicit that requirement ID refers to scapval
 - unify the print formatting code
@codeclimate
Copy link

codeclimate bot commented May 23, 2023

Code Climate has analyzed commit 48f45ab and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Clarity 1

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 52.5% (0.0% change).

View more on Code Climate.

@marcusburghardt marcusburghardt added the refactoring Improvement which, once completed, will enable the project to progress faster. label May 25, 2023
@marcusburghardt
Copy link
Member

@jan-cerny , I believe it can already be merged, correct?

@jan-cerny
Copy link
Collaborator

@marcusburghardt Yes, it looks like the CI has already finished!

@jan-cerny jan-cerny merged commit f110429 into ComplianceAsCode:master May 25, 2023
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system refactoring Improvement which, once completed, will enable the project to progress faster.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants