Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
edjeavons committed Sep 20, 2023
2 parents 9be5069 + 22e3b81 commit bbe24ab
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 34 deletions.
46 changes: 20 additions & 26 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
{
"name": "eighteen73/orbit",
"name": "eighteen73/orbit",
"description": "Opinionated WordPress behaviour overrides",
"type": "wordpress-muplugin",
"license": "MIT",
"autoload": {
"psr-4": {
"Eighteen73\\Orbit\\": "includes/classes/"
}
},
"minimum-stability": "stable",
"require": {
"php": ">=7.4"
},
"require-dev": {
"eighteen73/phpcs-composer": "^1.0.0"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true
}
},
"scripts": {
"test": [
"phpcs"
]
}
"type": "wordpress-muplugin",
"license": "MIT",
"minimum-stability": "stable",
"require": {
"php": ">=8.0"
},
"autoload": {
"psr-4": {
"Eighteen73\\Orbit\\": "includes/classes/"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"eighteen73/wordpress-coding-standards": "^2.0.0"
}
}
1 change: 0 additions & 1 deletion includes/classes/Admin/HideUpdates.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,4 @@ public function block_admin_pages(): void {
public function enqueue_plugin_styles(): void {
wp_enqueue_style( 'hide_updates_css', WPMU_PLUGIN_URL . '/orbit/css/hide-updates.css' );
}

}
1 change: 0 additions & 1 deletion includes/classes/DisallowIndexing/DisallowIndexing.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,4 @@ public function show_notice() {
]
);
}

}
26 changes: 20 additions & 6 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
<?xml version="1.0"?>
<ruleset name="Project Rules">
<rule ref="Eighteen73-WordPress-Default" />
<ruleset name="Eighteen73-Orbit">
<description>Eighteen73 Orbit</description>

<!-- Scan all files in directory -->
<file>.</file>
<exclude-pattern>dist/</exclude-pattern>
<exclude-pattern>lib/packages/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>tests/</exclude-pattern>
<exclude-pattern type="relative">lib/packages/*</exclude-pattern>

<!-- Scan only PHP files -->
<arg name="extensions" value="php"/>

<!-- Show colors in console -->
<arg value="-colors"/>

<!-- Show sniff codes in all reports -->
<arg value="ns"/>

<rule ref="Squiz.PHP.EmbeddedPhp">
<exclude name="Squiz.Commenting.FileComment.Missing"/>
</rule>

<rule ref="Eighteen73-WordPress-Default" />
</ruleset>

0 comments on commit bbe24ab

Please sign in to comment.