Procházet zdrojové kódy

Qual Ease the use of phpcs with configuration file at root

# Qual Add .phpcs.xml.dist

This configuration file at the root still references the configuration
file used in the CI flows, but it allows running 'phpcs' from the root
without having to specify anything else than the files you want to check.
MDW před 1 rokem
rodič
revize
c0145d7958
1 změnil soubory, kde provedl 13 přidání a 0 odebrání
  1. 13 0
      .phpcs.xml.dist

+ 13 - 0
.phpcs.xml.dist

@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
+    <!--
+      Documentation:
+      https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset
+      -->
+
+    <rule ref="dev/setup/codesniffer/ruleset.xml"/>
+
+    <arg value="p"/>
+    <arg name="colors"/>
+    <arg name="extensions" value="php,inc" />
+</ruleset>