This repository was archived by the owner on Apr 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from skaut/lint
Lint
- Loading branch information
Showing
53 changed files
with
11,292 additions
and
7,592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"env": { | ||
"browser": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["compat"], | ||
"extends": "wordpress", | ||
"rules": { | ||
"compat/compat": "warn" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
/** | ||
* PHAN configuration | ||
* | ||
* @package crdm-basic | ||
*/ | ||
|
||
return [ | ||
'target_php_version' => '7.3', | ||
'backward_compatibility_checks' => false, | ||
'analyze_signature_compatibility' => true, | ||
'minimum_severity' => 0, | ||
'directory_list' => [ | ||
'src', | ||
'.phan', | ||
'dist/vendor', | ||
], | ||
'exclude_analysis_directory_list' => [ | ||
'dist/vendor/', | ||
], | ||
'suppress_issue_types' => [ | ||
], | ||
'plugins' => [ | ||
'AlwaysReturnPlugin', | ||
'DuplicateArrayKeyPlugin', | ||
'PregRegexCheckerPlugin', | ||
'UnreachableCodePlugin', | ||
'NonBoolBranchPlugin', | ||
'NonBoolInLogicalArithPlugin', | ||
'InvalidVariableIssetPlugin', | ||
'NoAssertPlugin', | ||
'DuplicateExpressionPlugin', | ||
'DollarDollarPlugin', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<?php | ||
/** | ||
* Contains WordPress function stubs for PHAN | ||
* | ||
* @package skaut-google-drive-gallery | ||
*/ | ||
|
||
function add_action( $a, $b, $c = '' ) { | ||
} | ||
|
||
function add_filter( $a, $b, $c ) { | ||
} | ||
|
||
function apply_filters( $a, $b ) { | ||
return ''; | ||
} | ||
|
||
function do_action( $a ) { | ||
} | ||
|
||
function esc_attr( $a ) { | ||
return ''; | ||
} | ||
|
||
function esc_attr__( $a, $b ) { | ||
return ''; | ||
} | ||
|
||
function esc_html( $a ) { | ||
return ''; | ||
} | ||
|
||
function esc_html__( $a, $b ) { | ||
return ''; | ||
} | ||
|
||
function get_option( $a, $b ) { | ||
switch ( wp_rand( 0, 2 ) ) { | ||
case 0: | ||
return []; | ||
case 1: | ||
return false; | ||
case 2: | ||
return ''; | ||
} | ||
} | ||
|
||
function get_stylesheet_directory() { | ||
return ''; | ||
} | ||
|
||
function get_stylesheet_directory_uri() { | ||
return ''; | ||
} | ||
|
||
function get_template_directory() { | ||
return ''; | ||
} | ||
|
||
function get_template_directory_uri() { | ||
return ''; | ||
} | ||
|
||
function get_theme_mod( $a ) { | ||
return []; | ||
} | ||
|
||
function has_post_thumbnail() { | ||
return false; | ||
} | ||
|
||
function is_admin() { | ||
return false; | ||
} | ||
|
||
function is_page() { | ||
return false; | ||
} | ||
|
||
function is_rtl() { | ||
return false; | ||
} | ||
|
||
function remove_action( $a, $b, $c = '' ) { | ||
return false; | ||
} | ||
|
||
function switch_theme( $a ) { | ||
} | ||
|
||
function the_post_thumbnail( $a, $b ) { | ||
} | ||
|
||
function the_title() { | ||
} | ||
|
||
function the_title_attribute( $a ) { | ||
} | ||
|
||
function trailingslashit( $a ) { | ||
return ''; | ||
} | ||
|
||
function wp_enqueue_script( $a, $b, $c, $d, $e ) { | ||
} | ||
|
||
function wp_enqueue_style( $a, $b, $c, $d ) { | ||
} | ||
|
||
function wp_rand( $a, $b ) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"extends": "stylelint-config-wordpress", | ||
"plugins": [ | ||
"stylelint-no-unsupported-browser-features", | ||
"stylelint-scss" | ||
], | ||
"rules": { | ||
"plugin/no-unsupported-browser-features": [true, { | ||
"severity": "warning", | ||
"ignore": "css-sel2" | ||
}], | ||
"at-rule-no-unknown": null, | ||
"scss/at-each-key-value-single-line": [true], | ||
"scss/at-extend-no-missing-placeholder": [true], | ||
"scss/at-if-no-null": [true], | ||
"scss/at-import-no-partial-leading-underscore": [true], | ||
"scss/at-rule-no-unknown": [true] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.