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

Add minimum and maximum implementation for the Nexit metric #712

Merged
merged 3 commits into from
Nov 29, 2021

Conversation

giovannitangredi
Copy link
Contributor

This PR adds minimum and maximum value for the Nexit metric, the method used is similar to min and max for cyclomatic metric, Tests were modified accordingly.
Partly resolving Issue #410 .

@@ -32,7 +32,7 @@ impl Serialize for Stats {
where
S: Serializer,
{
let mut st = serializer.serialize_struct("cyclomatic", 2)?;
let mut st = serializer.serialize_struct("cyclomatic", 4)?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch

Copy link
Collaborator

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

With a green CI, r=me.

@Luni-4 Luni-4 merged commit 11cbb2b into mozilla:master Nov 29, 2021
@Luni-4 Luni-4 deleted the min-max-metrics branch November 29, 2021 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants