-
-
Notifications
You must be signed in to change notification settings - Fork 3
Version 3 Migration
Mat Lipe edited this page Feb 13, 2023
·
1 revision
The main changes to consider are:
- The updated
Lipe
ruleset. - New sniffs are part of the
Lipe
namespace.
- In version 2, the
ruleset.xml
was mostly empty and served as a config to allow theLipe
sniffs to exist. - The only included sniffs were
Lipe.JS
.
- In version 3, the
ruleset.xml
is a fully formed configuration which is very opinionated. - The
Lipe
namespaces contains various sniffs. - A new
LipePlugin
namespace andruleset.xml
was introduced.
If you are using <rule ref="Lipe" />
in your phpcs.xml
you'll want to change to using <rule ref="Lipe.JS" />
.
This will prevent all the extra configuration and sniffs you are not prepared for.
You may then add additional namespaces like <rule ref="LipePlugin.CodeAnalysis.SelfInClassSniff" />
or <rule ref="Lipe.DB.CalcFoundRowsSniff" />
as needed.