Skip to content

Commit

Permalink
Merge pull request #4 from smortexa/fix_rules
Browse files Browse the repository at this point in the history
Exclude Horizon service provider
  • Loading branch information
smortexa committed Aug 10, 2022
2 parents d874eb9 + e000bfd commit e201367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/Extending/ProvidersExtending.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ProvidersExtending extends BaseRule implements RuleContract
public static function rule(): ArchRule
{
return Rule::allClasses()
->except('App\Providers\(Auth|Event|Route)ServiceProvider')
->except('App\Providers\(Auth|Event|Route|Horizon)ServiceProvider')
->that(new ResideInOneOfTheseNamespaces('App\Providers'))
->should(new Extend('Illuminate\Support\ServiceProvider'))
->because('we use Laravel framework!');
Expand Down

0 comments on commit e201367

Please sign in to comment.