✅
Phecks
  • User Guide
    • Getting Started
    • Configuration
    • Command-line interface
    • The Baseline
    • Continuous Integration (CI)
  • About phecks
    • The idea behind it
    • What is a check?
  • Writting checks
    • Making a Check
    • Check Sources
    • Pipes
  • Examples
    • Check inspirations
    • Spatie checks
  • Advanced
    • Making sources
    • Making Pipes
    • Formatters
Powered by GitBook
On this page
  • Generating the baseline
  • Ignoring the baseline
  1. User Guide

The Baseline

PreviousCommand-line interfaceNextContinuous Integration (CI)

Last updated 2 years ago

The baseline allows teams to use Phecks as an ideal codebase, and not be restricted by legacy code that is awaiting a refactor.

It provides a fresh start so the new code is introduced using the agreed standard, and it still allows you to ignore it in case you want to address already ignored violations.

Generating the baseline

If you want to export the current list of errors and use it as the baseline, run Phecks with --generate-baseline option:

php artisan phecks:run --generate-baseline

You can change the location of the baseline file by .

Ignoring the baseline

The baseline will always be applied if present. In order to skip it, run Phecks with --ignore-baseline option:

php artisan phecks:run --ignore-baseline
editing the configuration