mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
ci: disallow the sizeof function in linter (#4134)
This commit is contained in:
parent
0eac7a0784
commit
206bebc7bd
8 changed files with 28 additions and 20 deletions
|
@ -35,6 +35,14 @@
|
|||
</properties>
|
||||
</rule>
|
||||
|
||||
<rule ref="Generic.PHP.ForbiddenFunctions">
|
||||
<properties>
|
||||
<property name="forbiddenFunctions" type="array">
|
||||
<element key="sizeof" value="count"/>
|
||||
</property>
|
||||
</properties>
|
||||
</rule>
|
||||
|
||||
<!-- Duplicate class names are not allowed -->
|
||||
<rule ref="Generic.Classes.DuplicateClassName"/>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue