Page MenuHomeDevCentral

No OneTemporary

diff --git a/_templates/phpcs.xml.in b/_templates/phpcs.xml.in
index 884f4e3..524bf2c 100644
--- a/_templates/phpcs.xml.in
+++ b/_templates/phpcs.xml.in
@@ -1,35 +1,43 @@
<?xml version="1.0"?>
<!--
=============================================================
PHP_CodeSniffer configuration
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Project: Keruald
License: Trivial work, not eligible to copyright
Source file: _templates/phpcs.xml.in
=============================================================
<auto-generated>
This file is automatically generated from a template.
Changes to this file may cause incorrect behavior
and will be lost if the state is redeployed.
</auto-generated>
-->
<ruleset name="Nasqueron">
<rule ref="vendor/nasqueron/codestyle/CodeSniffer/ruleset.xml" />
<!--
OmniTools exception
Allow dprint_r() and dieprint_r() legacy debug function names
-->
<rule ref="Generic.NamingConventions.CamelCapsFunctionName.NotCamelCaps">
<exclude-pattern>*/_register_to_global_space.php</exclude-pattern>
</rule>
- {% for package in packages %}
+
+ <!--
+ Database exception
+ Allow unused parameters
+ -->
+ <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
+ <exclude-pattern>database/src/*</exclude-pattern>
+ </rule>
+{% for package in packages %}
<file>{{ package }}/src</file>
<file>{{ package }}/tests</file>
- {% endfor %}
+{% endfor %}
</ruleset>
diff --git a/phpcs.xml b/phpcs.xml
index b6b08c2..d14c444 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -1,52 +1,55 @@
<?xml version="1.0"?>
<!--
=============================================================
PHP_CodeSniffer configuration
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Project: Keruald
License: Trivial work, not eligible to copyright
Source file: _templates/phpcs.xml.in
=============================================================
<auto-generated>
This file is automatically generated from a template.
Changes to this file may cause incorrect behavior
and will be lost if the state is redeployed.
</auto-generated>
-->
<ruleset name="Nasqueron">
<rule ref="vendor/nasqueron/codestyle/CodeSniffer/ruleset.xml" />
<!--
OmniTools exception
Allow dprint_r() and dieprint_r() legacy debug function names
-->
<rule ref="Generic.NamingConventions.CamelCapsFunctionName.NotCamelCaps">
<exclude-pattern>*/_register_to_global_space.php</exclude-pattern>
</rule>
<!--
Database exception
Allow unused parameters
-->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
- <exclude-pattern>database/src/*</exclude-pattern>
+ <exclude-pattern>database/src/*</exclude-pattern>
</rule>
+ <file>cache/src</file>
+ <file>cache/tests</file>
+
<file>commands/src</file>
<file>commands/tests</file>
-
+
<file>database/src</file>
<file>database/tests</file>
-
+
<file>omnitools/src</file>
<file>omnitools/tests</file>
-
+
<file>report/src</file>
<file>report/tests</file>
-
+
</ruleset>
diff --git a/phpunit.xml b/phpunit.xml
index 278cfb9..7860a2e 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,54 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
=============================================================
PHPUnit configuration
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Project: Keruald
License: Trivial work, not eligible to copyright
Source file: _templates/phpunit.xml.in
=============================================================
<auto-generated>
This file is automatically generated from a template.
Changes to this file may cause incorrect behavior
and will be lost if the state is redeployed.
</auto-generated>
-->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
stopOnFailure="false">
<php>
<ini name="display_errors" value="On" />
<ini name="display_startup_errors" value="On" />
<ini name="error_reporting" value="On" />
</php>
<testsuites>
+ <testsuite name="Unit tests for keruald/cache">
+ <directory suffix="Test.php">./cache/tests</directory>
+ </testsuite>
<testsuite name="Unit tests for keruald/commands">
<directory suffix="Test.php">./commands/tests</directory>
</testsuite>
<testsuite name="Unit tests for keruald/database">
<directory suffix="Test.php">./database/tests</directory>
</testsuite>
<testsuite name="Unit tests for keruald/omnitools">
<directory suffix="Test.php">./omnitools/tests</directory>
</testsuite>
<testsuite name="Unit tests for keruald/report">
<directory suffix="Test.php">./report/tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">cache/src/</directory>
<directory suffix=".php">commands/src/</directory>
<directory suffix=".php">database/src/</directory>
<directory suffix=".php">omnitools/src/</directory>
<directory suffix=".php">report/src/</directory>
</include>
</source>
</phpunit>

File Metadata

Mime Type
text/x-diff
Expires
Thu, Apr 9, 02:32 (4 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3603834
Default Alt Text
(5 KB)

Event Timeline