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

Does it provide an average final grade or Score? #80

Open
leandromoreira opened this issue Aug 21, 2019 · 2 comments
Open

Does it provide an average final grade or Score? #80

leandromoreira opened this issue Aug 21, 2019 · 2 comments

Comments

@leandromoreira
Copy link

leandromoreira commented Aug 21, 2019

I want to use it to fail the build pipeline, for instance let's say the "quality".

@leandromoreira leandromoreira changed the title Does it provide a average final grade? Does it provide an average final grade? Aug 21, 2019
@leandromoreira leandromoreira changed the title Does it provide an average final grade? Does it provide an average final grade or Score? Aug 22, 2019
@leandromoreira
Copy link
Author

I found Score at the text format (it's absent from json format) and then I use gnu/linux:

# if the score is lower than 65 it's going to return 1 otherwise it'll return 0
goreporter -p . -f text | grep Score | awk -F':' '$2 < 65 {print; err = 1} END {exit err}'

Is there any easier way?

@leandromoreira
Copy link
Author

There are:

Quality and Score, what's the difference?

Does the score follows the rule:

//    +--------------------------------------------------+
//    |   issues    |               score                |
//    +==================================================+
//    | 5           | 100-issues*2                       |
//    +--------------------------------------------------+
//    | [5,10)      | 100 - 10 - (issues-5)*4            |
//    +--------------------------------------------------+
//    | [10,20)     | 100 - 10 - 20 - (issues-10)*5      |
//    +--------------------------------------------------+
//    | [20,40)     | 100 - 10 - 20 - 50 - (issues-20)*1 |
//    +--------------------------------------------------+
//    | [40,*)      | 0                                  |
//    +--------------------------------------------------+

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

No branches or pull requests

1 participant