Skip to content

Commit 982d244

Browse files
Code fixes and improvements (#201)
* Code fixes and improvements * Check ci action * PHPCS standards implementing * PHPCS standards implementing * PHPCS standards implementing * Another fixes * Another fixes
1 parent 8f41c04 commit 982d244

10 files changed

+885
-718
lines changed

.github/workflows/wpcs.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Wordpress Basic Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- '**' # matches every branch
7+
- '!master'
8+
9+
jobs:
10+
phpcs:
11+
name: WPCS
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: WPCS check
16+
uses: 10up/wpcs-action@stable
17+
with:
18+
enable_warnings: false # Enable checking for warnings (-w)
19+
paths: '.' # Paths to check, space separated
20+
excludes: '' # Paths to excludes, space separated
21+
standard: 'WordPress' # Standard to use. Accepts WordPress|WordPress-Core|WordPress-Docs|WordPress-Extra|WordPress-VIP-Go|WordPressVIPMinimum|10up-Default.
22+
standard_repo: '' # Public (git) repository URL of the coding standard
23+
repo_branch: 'master' # Branch of Standard repository
24+
phpcs_bin_path: 'phpcs' # Custom PHPCS bin path
25+
use_local_config: 'true' # Use local config if available
26+
extra_args: '' # Extra arguments passing to the command
27+
only_changed_files: '' # Run the linter only on the changed files. Accepts true|false
28+
only_changed_lines: '' # Run the linter only on the changed lines. Accepts true|false

0 commit comments

Comments
 (0)