-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
672c5e2
commit 5fcdf40
Showing
6 changed files
with
198 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
# WordPress Coding Standards | ||
# https://make.wordpress.org/core/handbook/coding-standards/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = tab | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ node_modules | |
build | ||
*.code-workspace | ||
*.zip | ||
*.log | ||
*.log | ||
/vendor/ |
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 @@ | ||
{ | ||
"name": "awsm/wp-job-openings", | ||
"description": "Super simple Job Listing plugin to manage Job Openings and Applicants on your WordPress site.", | ||
"type": "wordpress-plugin", | ||
"license": "GPL-2.0-or-later", | ||
"require": { | ||
"squizlabs/php_codesniffer": "3.*", | ||
"wp-coding-standards/wpcs": "^2.0" | ||
}, | ||
"scripts": { | ||
"phpcs": "phpcs --colors -p -s", | ||
"phpcbf": "phpcbf --colors -p -s" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,43 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="WP Job Openings"> | ||
<description>WP Job Openings coding standard.</description> | ||
|
||
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs" /> | ||
<config name="minimum_supported_wp_version" value="4.1" /> | ||
|
||
<arg name="extensions" value="php" /> | ||
|
||
<!-- Exclude the Composer Vendor directory. --> | ||
<exclude-pattern>/vendor/*</exclude-pattern> | ||
|
||
<!-- Exclude the Node Modules directory. --> | ||
<exclude-pattern>/node_modules/*</exclude-pattern> | ||
|
||
<!-- Exclude build directory. --> | ||
<exclude-pattern>/build/*</exclude-pattern> | ||
|
||
<!-- Exclude libraries. --> | ||
<exclude-pattern>/lib/*</exclude-pattern> | ||
|
||
<rule ref="WordPress-Core" /> | ||
|
||
<rule ref="WordPress.Files.FileName.InvalidClassFileName"> | ||
<exclude-pattern>wp-job-openings.php</exclude-pattern> | ||
</rule> | ||
|
||
<rule ref="WordPress-Extra"> | ||
<exclude name="WordPress.WhiteSpace.PrecisionAlignment.Found" /> | ||
<exclude name="WordPress.PHP.YodaConditions" /> | ||
</rule> | ||
|
||
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" /> | ||
|
||
<rule ref="WordPress.WP.I18n"> | ||
<properties> | ||
<property name="text_domain" type="array"> | ||
<element value="default" /> | ||
<element value="wp-job-openings" /> | ||
</property> | ||
</properties> | ||
</rule> | ||
</ruleset> |