I've yet to find a code review process beyond a trivial implementation that scaled. The best results I've had were with a rotating buddy system. (Every week/month) you review someone else's code and they yours.
- cyclomatic complexity
- statement length, function length
- number of singletons / global instances
- dead code
- duplicated code (intelliJ has a good duplicate detector that anonymizes variables and ignores whitespace and comments).
- number of known functions/types per file (coupling)
- number of commits per file (git-effort from git-extras)
Some of them are tricky to obtain. Making a simple script that parses import statements and outputs a DOT file with a digraph is useful to map dependencies, which is good to explain coupling.
Basically competitive people identify their utility function and start working towards maximizing that. You need someone with authority to define their payoff matrix, making it explicit that they are required to collaborate to "win".
That said, I really appreciate your comment. It seems like a lot of other people have faced similar issues with CR, and I'm sure some people are facing a situation where teammates resist reviewing PRs. Also, game theory is a great lens through which to look at the situation. We probably could incentivise communication around CR better.
* There's a group of people, and at least one is needed to review.
* The reviewer has to decide to either make an effort or freeride by letting someone else complete the review.
* If no review is done, then the group cannot benefit from progress.
That in game theory can be represented through a model game: the volunteer's dilemma.
https://en.wikipedia.org/wiki/Volunteer%27s_dilemma
The fact that nobody is reviewing the pull requests reflects that your team members are competing against each other, to the detriment of the group.
What you need to do is to redefine the PR process so there's a main assignee (use the github assignee feature), and that is the person accountable for completing the code review. If you diffuse responsibility among competitive people, the group loses.
The same happens with technical debt. If the group is competitive and managers are non-technical, fixing technical debt is not rewarded, leaving it to volunteering. Technical debt will continue to grow until a person volunteers to fix it. That person will most likely won't be rewarded at all. They will only enable competitors to compete in an easier way.
Unfortunately this also denotes a crappy culture. I don't really recommend you to spend your career in such shit culture.