Skip to content

Commit

Permalink
Better setup PHPCS rules
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Dec 15, 2024
1 parent a5e2754 commit 8ee41ad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
16 changes: 13 additions & 3 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<?xml version="1.0"?>
<ruleset name="Package Coding Standard">
<ruleset name="IxDF Package Standard">
<!-- Include all rules from the IxDF Coding Standard -->
<rule ref="IxDFCodingStandard"/>
<rule ref="IxDFCodingStandard">
<exclude ref="IxDFCodingStandard.Files.BemCasedFilename.InvalidCharacters"/>
<exclude ref="SlevomatCodingStandard.Classes.RequireAbstractOrFinal.ClassNeitherAbstractNorFinal"/>
</rule>

<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>./tests*</exclude-pattern>
</rule>

<rule ref="Generic.Files.LineLength.TooLong">
<severity>1</severity><!-- Temp hide the warn -->
</rule>

<!-- Paths to check -->
<file>routes</file>
<file>src</file>
<file>tests</file>
</ruleset>
1 change: 0 additions & 1 deletion src/CardServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Support\ServiceProvider;
use Laravel\Nova\Nova;

/** @phpcsSuppress SlevomatCodingStandard.Classes.RequireAbstractOrFinal.ClassNeitherAbstractNorFinal */
class CardServiceProvider extends ServiceProvider
{
/** Bootstrap any application services. */
Expand Down
1 change: 0 additions & 1 deletion src/WorldClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Laravel\Nova\Card;

/** @phpcsSuppress SlevomatCodingStandard.Classes.RequireAbstractOrFinal.ClassNeitherAbstractNorFinal */
class WorldClock extends Card
{
/**
Expand Down

0 comments on commit 8ee41ad

Please sign in to comment.