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

Code Review's max acceptable return code shouldn't be hard-coded in the script, and should be < 4, not <= 2 #107

Closed
M-DLB opened this issue Apr 26, 2022 · 2 comments

Comments

@M-DLB
Copy link
Collaborator

M-DLB commented Apr 26, 2022

In https://github.com/IBM/dbb/blob/main/Pipeline/RunIDZCodeReview/RunCodeReview.groovy#L115, the max acceptable return code shouldn't be hard-coded, it should externalized in the codeReview.properties file.

Also, it may be more accurate to set it to 3, as the Code Review's documentation states:

The tool can end with following return codes:                    
-  0: processing completed successfully                          
      there are no code review rule violations                   
      the generated code review output is valid                  
      the (optional) post-processing script executed successfully
-  1: processing completed successfully                          
      the most severe review violation is a recommendation (4)   
      the generated code review output is valid                  
      the (optional) post-processing script executed successfully
-  2: processing completed successfully                          
      the most severe review violation is a warning (8)          
      the generated code review output is valid                  
      the (optional) post-processing script executed successfully
-  3: processing completed successfully                          
      the most severe review violation is a severe violation (12)
      the generated code review output is valid                  
      the (optional) post-processing script executed successfully
-  4: processing did not complete for one or more files          
      the most severe review violation is a syntax error (15)    
      the generated code review output is valid, but excludes    
        results for the file(s) with a syntax error              
      the (optional) post-processing script executed successfully
@dennis-behm
Copy link
Member

@M-DLB I think, this is now resolved ?

@M-DLB
Copy link
Collaborator Author

M-DLB commented May 30, 2022

Indeed, resolved with #109

@M-DLB M-DLB closed this as completed May 30, 2022
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

2 participants