Skip to content

Commit 5091698

Browse files
committed
Adding plugin file with header and conditional WP CLI command loading
1 parent 9437962 commit 5091698

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

phpcs-diff.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
/*
3+
Plugin Name: PHPCS Diff
4+
Plugin URI: https://github.com/Automattic/phpcs-diff
5+
Description: Add WP-CLI command for generating PHP CodeSniffer reports for diff retrieved from version systems
6+
Version: 0.0.1
7+
Author: Automattic
8+
Author URI: https://automattic.com/
9+
License: GPL2
10+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
11+
Text Domain: phpcs_diff
12+
Domain Path: /languages
13+
*/
14+
15+
// Load the command only if we're running WordPress via WP CLI.
16+
if ( defined( 'WP_CLI' ) && WP_CLI ) {
17+
require_once( './wp-cli-command.php' );
18+
}

0 commit comments

Comments
 (0)