Skip to content

Commit

Permalink
Enable linting globally
Browse files Browse the repository at this point in the history
  • Loading branch information
psrpinto committed Feb 15, 2024
1 parent e198dda commit c264638
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,9 @@
<arg name="colors"/>
<arg name="extensions" value="php"/>

<!--
<file>./includes/</file>
<file>./templates/</file>
<file>./tests/</file>
-->
<file>./includes/class-wporg-gp-translation-events-active-events-cache.php</file>
<file>./includes/class-wporg-gp-translation-events-event.php</file>
<file>./includes/class-wporg-gp-translation-events-route.php</file>
<file>./includes/class-wporg-gp-translation-events-stats-calculator.php</file>
<file>./includes/class-wporg-gp-translation-events-translation-listener.php</file>
<file>./templates/event.php</file>
<file>./templates/events-form.php</file>
<file>./templates/events-header.php</file>
<file>./templates/events-list.php</file>
<file>./templates/events-user-created.php</file>
<file>./wporg-gp-translation-events.php</file>

<rule ref="WordPress">
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Manually load the plugin being tested.
*/
function _manually_load_plugin() {
require dirname( __FILE__, 2 ) . '/wporg-gp-translation-events.php';
require dirname( __DIR__ ) . '/wporg-gp-translation-events.php';
}

tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
Expand Down

0 comments on commit c264638

Please sign in to comment.