Rethinking Code Reviews: From Manual Checks to Pre-Reviewed Excellence
Hi, I’m Martin Hinshelwood, and today I want to discuss a topic that often sparks debate: code reviews. Traditionally, code reviews are seen as a way to improve quality and reduce defects by having multiple people review the code before it’s merged. While this has value, as we embrace shift-left practices, there’s a new perspective to consider: pre-reviewed code.
What if your code were effectively “reviewed” before it even reached a pull request? Let’s explore this evolving approach and how it can streamline your development process without sacrificing quality.
The Traditional View of Code Reviews
For years, the primary argument for code reviews has been:
- Improved quality: Multiple eyes on the code can catch errors or highlight better ways to implement a solution.
- Knowledge sharing: Reviews help team members learn from one another, spreading knowledge about codebases and best practices.
These benefits are real, but traditional code reviews can also introduce bottlenecks, especially if they rely too heavily on manual intervention.
Shifting Left: Pre-Reviewed Code
As we move toward modern engineering practices, there’s a growing emphasis on pre-reviewing code. Here’s what that means:
- Automated validation: By the time a developer submits a pull request, the code should already pass a suite of automated checks.
- Streamlined pull requests: With automated checks in place, pull requests become less about catching defects and more about strategic discussions, like architectural decisions or ensuring alignment with business goals.
Why Pre-Reviewed Code Matters
Shifting toward pre-reviewed code delivers several benefits:
1. Faster Delivery
- Automated checks reduce the back-and-forth of manual reviews.
- Pull requests move through the pipeline more quickly, enabling faster delivery of value.
2. Early Defect Detection
- Automated tests and tools catch issues during development, not during the review phase.
- Problems are addressed immediately, saving time and effort.
3. Consistency and Quality
- Automated processes ensure consistent validation across all pull requests.
- Best practices are enforced without relying solely on individual reviewers.
Best Practices for Code Reviews in a Shift-Left World
1. Automate Everything You Can
- Use tools to catch defects, enforce coding standards, and validate functionality before the pull request is even submitted.
- Examples of useful tools:
2. Make Pull Requests Mandatory
- No code should be merged into the mainline branch without going through a pull request process.
- Ensure that all pull requests pass automated checks before being eligible for review.
3. Focus Manual Reviews on Strategy
- Use code reviews to discuss architecture, business alignment, and other high-level considerations.
- Minimize the focus on defects or style issues, as these should already be handled by automation.
4. Use Validated Checks
- Require that all pull requests pass:
- Unit tests
- Integration tests
- Static code analysis
- Security checks
- These checks should run automatically and provide immediate feedback to developers.
How Naked Agility Can Help
At Naked Agility, we’ve helped teams implement automated validation and streamlined code review processes. Here’s how we can support you:
- Designing automated pipelines: Build automated checks into your CI/CD pipeline to catch defects early.
- Establishing best practices: Create guidelines for pre-reviewed code and shift-left strategies tailored to your organization.
- Tool selection and integration: Help you choose and implement the right tools for your development environment.
Our goal is to help you deliver high-quality code faster while reducing manual effort and bottlenecks.
The Future of Code Reviews
As engineering practices evolve, code reviews are becoming less about catching defects and more about fostering collaboration and alignment. By automating validation and shifting left, you can:
- Accelerate delivery without compromising quality.
- Empower developers with the tools and processes they need to write great code.
- Focus manual reviews on what really matters, building better products.
Smart Classifications
Each classification [Concepts, Categories, & Tags] was assigned using AI-powered semantic analysis and scored across relevance, depth, and alignment. Final decisions? Still human. Always traceable. Hover to see how it applies.
What to read next
Shifting Left. Quality from the Start
Explores code review practices for quality assurance, highlighting automation, pull requests, and early defect detection to ensure …
Security by Design Building Secure Software
Explains how integrating security and quality early in software development, using practices like TDD, pair programming, and continuous …
The Hidden Costs of Poor Quality Code, and How to Turn It Into a Superpower
Explores the financial, productivity, and reputational impacts of poor-quality code, and offers practical steps to turn code quality into a …
Unlocking the Superpower of Software Development: How Shifting Left Transforms Quality Assurance
Explains how adopting a shift-left approach in software development improves quality, speeds up delivery, reduces costs, and fosters …
Building a culture of Quality
Explores how fostering a culture of quality and engineering excellence across teams leads to better, safer products, highlighting the impact …
Getting started with a modern source control system and DevOps
Learn key practices for adopting modern source control and DevOps, including automation, release pipelines, and team collaboration to …
Detecting agile theatre with real delivery signals
Why Most Companies Operating Models Fail in Dynamic Markets
A concise comparison of Predictive and Adaptive Operating Models, explaining why traditional structures fail in dynamic markets and how …
Don’t Manage Dependencies, Remove Them
Explains why dependencies are a sign of poor system design and outlines steps to eliminate them by aligning teams, clarifying ownership, and …
The Estimation Trap: How Tracking Accuracy Undermines Trust, Flow, and Value in Software Delivery
Tracking estimation accuracy in software delivery leads to mistrust, fear, and distorted behaviours. Focus on customer value, flow, and …
Flow of Value vs Flow of Work – Misnomer or Useful Shorthand?
Compares “flow of value” and “flow of work” in Kanban, explaining why only validated outcomes count as value and stressing the need for …
Why Outsourcing DevOps Fails, and How Real Engineering Excellence Starts With Your Team
Avoid DevOps vendor lock-in, discover how true engineering excellence starts with partnership, not outsourcing. Ready to transform your …
Detecting agile theatre with real delivery signals
Don’t Manage Dependencies, Remove Them
Explains why dependencies are a sign of poor system design and outlines steps to eliminate them by aligning teams, clarifying ownership, and …
The Estimation Trap: How Tracking Accuracy Undermines Trust, Flow, and Value in Software Delivery
Tracking estimation accuracy in software delivery leads to mistrust, fear, and distorted behaviours. Focus on customer value, flow, and …
Flow of Value vs Flow of Work – Misnomer or Useful Shorthand?
Compares “flow of value” and “flow of work” in Kanban, explaining why only validated outcomes count as value and stressing the need for …
Why Outsourcing DevOps Fails, and How Real Engineering Excellence Starts With Your Team
Avoid DevOps vendor lock-in, discover how true engineering excellence starts with partnership, not outsourcing. Ready to transform your …
Estimating Better in an Overloaded System Is a Poor Man’s Strategy
High work in progress (WIP) causes delays and unpredictability; improving estimates won’t help. Limiting WIP and focusing on flow is key to …
Why Outsourcing DevOps Fails, and How Real Engineering Excellence Starts With Your Team
Avoid DevOps vendor lock-in, discover how true engineering excellence starts with partnership, not outsourcing. Ready to transform your …
Why Big Bang Rewrites Fail: How Sustainable Change and Engineering Excellence Transform Legacy Systems
Ditch the Big Bang rewrite. Discover why sustainable, in-place change drives true engineering excellence and lasting transformation in your …
Are We Still Pretending Coding Was the Bottleneck?
AI exposes that coding was never the main bottleneck in software delivery; real constraints are in system flow, team practices, and …
Why Azure DevOps Wins for Governance, Security, and Scale, Right Out of the Box
Unlock seamless governance, security, and scale with Azure DevOps, integrated tooling that lets you deliver value, not just manage …
Should You Use One Project to Rule Them All in Azure DevOps?
Explores when to use a single Azure DevOps project versus multiple projects, detailing impacts on flow, visibility, governance, and team …
Stop Guessing: How to Make Work Visible and Drive Real Improvement with Azure DevOps Flow Metrics
Stop guessing, start making data-driven decisions in Azure DevOps. Discover tools, tips, and insights to make your work visible and your …