Skip to content

Commit af0fa77

Browse files
committed
Add basic repo files
1 parent f77934d commit af0fa77

File tree

4 files changed

+89
-0
lines changed

4 files changed

+89
-0
lines changed

.editorconfig

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# WordPress Coding Standards
5+
# https://make.wordpress.org/core/handbook/coding-standards/
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = tab
15+
16+
[*.yml]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[*.md]
21+
trim_trailing_whitespace = false
22+
23+
[{*.txt,wp-config-sample.php}]
24+
end_of_line = crlf

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vendor/
2+
composer.lock

composer.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "aristath/sqlite",
3+
"license": "GPL-2.0-or-later",
4+
"description": "SQLite integration plugin for WordPress.",
5+
"homepage": "https://github.com/aristath/sqlite",
6+
"keywords": [ "wordpress", "plugin", "database", "sqlite" ],
7+
"support": {
8+
"issues": "https://github.com/aristath/sqlite/issues"
9+
},
10+
"require": {
11+
"php": ">=5.6"
12+
},
13+
"require-dev": {
14+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
15+
"squizlabs/php_codesniffer": "3.6.0",
16+
"wp-coding-standards/wpcs": "~2.3.0",
17+
"phpcompatibility/phpcompatibility-wp": "~2.1.3",
18+
"yoast/phpunit-polyfills": "^1.0.1"
19+
},
20+
"config": {
21+
"allow-plugins": {
22+
"dealerdirect/phpcodesniffer-composer-installer": true
23+
}
24+
}
25+
}

phpcs.xml.dist

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="WordPress Coding Standards">
3+
<description>Apply WordPress Coding Standards</description>
4+
5+
<!-- Only scan PHP files. -->
6+
<arg name="extensions" value="php"/>
7+
8+
<!-- Set the memory limit to 256M.
9+
For most standard PHP configurations, this means the memory limit will temporarily be raised.
10+
Ref: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#specifying-phpini-settings
11+
-->
12+
<ini name="memory_limit" value="256M"/>
13+
14+
<!-- Strip the filepaths down to the relevant bit. -->
15+
<arg name="basepath" value="./"/>
16+
17+
<!-- Check up to 20 files simultaneously. -->
18+
<arg name="parallel" value="20"/>
19+
20+
<!-- Show sniff codes in all reports. -->
21+
<arg value="ps"/>
22+
23+
<file>.</file>
24+
25+
<rule ref="WordPress-Core"/>
26+
<rule ref="WordPress.CodeAnalysis.EmptyStatement"/>
27+
28+
<!-- Directories and third party library exclusions. -->
29+
<exclude-pattern>/vendor/*</exclude-pattern>
30+
31+
<!-- Allow the WP DB Class and related tests for usage of direct database access functions. -->
32+
<rule ref="WordPress.DB.RestrictedClasses.mysql__PDO">
33+
<exclude-pattern>/wp-includes/*.php</exclude-pattern>
34+
</rule>
35+
<rule ref="WordPress.DB.RestrictedFunctions">
36+
<exclude-pattern>/wp-includes/*.php</exclude-pattern>
37+
</rule>
38+
</ruleset>

0 commit comments

Comments
 (0)