-
-
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
Liperuleset. - New sniffs are part of the
Lipenamespace.
- In version 2, the
ruleset.xmlwas mostly empty and served as a config to allow theLipesniffs to exist. - The only included sniffs were
Lipe.JS.
- In version 3, the
ruleset.xmlis a fully formed configuration which is very opinionated. - The
Lipenamespaces contains various sniffs. - A new
LipePluginnamespace andruleset.xmlwas 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.