Community
Participate
Working Groups
Implement checkers for: - lines of code in functions - nesting block depth - cyclomatic complexity (McCabe + boolean OR/AND expressions) This bug is a holder for CDT Codan patch
Not related to 372722
Created attachment 283650 [details] Patch for ParametersComposite to allow integer checker preference
Created attachment 283652 [details] Add code metrics category Feel free to fix my Engrlish ;-)
Created attachment 283653 [details] Nested Block Depth Checker
Please post the code on Gerrit for review, here it's unlikely the code will be reviewed and merged.
Created attachment 283655 [details] Cyclomatic Complexity Checker (along with prev. Nested Block Depth Checker)
Created attachment 283656 [details] Allow to register checker preferences using annotations This patch includes prev. patch "283652: Add code metrics category"
Created attachment 283657 [details] Cyclomatic Complexity Checker (along with prev. Nested Block Depth Checker)
Marco, is there step-by-step instruction how to post the code on Gerrit?
(In reply to Sergey Vladimirov from comment #9) > Marco, is there step-by-step instruction how to post the code on Gerrit? Yup, here: https://wiki.eclipse.org/CDT/git#Using_Gerrit_for_CDT
Marco, there is a point "Right-click on 'Remotes' and select "Create remote..."", but i see not such link / item on https://git.eclipse.org/r/admin/repos/cdt/org.eclipse.cdt screen.
(In reply to Sergey Vladimirov from comment #11) > Marco, there is a point "Right-click on 'Remotes' and select "Create > remote..."", but i see not such link / item on > https://git.eclipse.org/r/admin/repos/cdt/org.eclipse.cdt screen. This step is meant to be done from within Eclipse (the development instance that you used to write the patches). You can also do equivalent steps using the git command line, though we don't have that written up.
Not in obvious way, but i've done it: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/165660