Skip to content

Commit 497fdd4

Browse files
authored
Merge pull request #57 from Apiki/feature/php7.4
Feature/php7.4
2 parents 984e8ca + 7f5abf6 commit 497fdd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+6865
-2256
lines changed

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
/.editorconfig export-ignore
22
/.gitattributes export-ignore
33
/.gitignore export-ignore
4+
/.phpqa.yml export-ignore
5+
/.releaserc.yml export-ignore
46
/.sami.php export-ignore
57
/.scrutinizer.yml export-ignore
68
/.travis.yml export-ignore
79
/.vscode export-ignore
810
/README.md export-ignore
11+
/commitlint.config.js export-ignore
912
/makefile export-ignore
13+
/package.json export-ignore
1014
/phpcs.xml.dist export-ignore
15+
/phpmd.xml export-ignore
16+
/phpstan.neon export-ignore
1117
/phpunit.xml.dist export-ignore
18+
/psalm.xml export-ignore
1219
/renovate.json export-ignore
1320
/tests export-ignore
21+
/yarn.lock export-ignore

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Action For Semantic Release
15+
uses: cycjimmy/semantic-release-action@v2.4.1
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,117 @@ Thumbs.db
3939
.history
4040

4141
# End of https://www.gitignore.io/api/visualstudiocode
42+
43+
# Created by https://www.gitignore.io/api/node
44+
# Edit at https://www.gitignore.io/?templates=node
45+
46+
### Node ###
47+
# Logs
48+
logs
49+
*.log
50+
npm-debug.log*
51+
yarn-debug.log*
52+
yarn-error.log*
53+
lerna-debug.log*
54+
55+
# Diagnostic reports (https://nodejs.org/api/report.html)
56+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
57+
58+
# Runtime data
59+
pids
60+
*.pid
61+
*.seed
62+
*.pid.lock
63+
64+
# Directory for instrumented libs generated by jscoverage/JSCover
65+
lib-cov
66+
67+
# Coverage directory used by tools like istanbul
68+
coverage
69+
*.lcov
70+
71+
# nyc test coverage
72+
.nyc_output
73+
74+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
75+
.grunt
76+
77+
# Bower dependency directory (https://bower.io/)
78+
bower_components
79+
80+
# node-waf configuration
81+
.lock-wscript
82+
83+
# Compiled binary addons (https://nodejs.org/api/addons.html)
84+
build/Release
85+
86+
# Dependency directories
87+
node_modules/
88+
jspm_packages/
89+
90+
# TypeScript v1 declaration files
91+
typings/
92+
93+
# TypeScript cache
94+
*.tsbuildinfo
95+
96+
# Optional npm cache directory
97+
.npm
98+
99+
# Optional eslint cache
100+
.eslintcache
101+
102+
# Optional REPL history
103+
.node_repl_history
104+
105+
# Output of 'npm pack'
106+
*.tgz
107+
108+
# Yarn Integrity file
109+
.yarn-integrity
110+
111+
# dotenv environment variables file
112+
.env
113+
.env.test
114+
115+
# parcel-bundler cache (https://parceljs.org/)
116+
.cache
117+
118+
# next.js build output
119+
.next
120+
121+
# nuxt.js build output
122+
.nuxt
123+
124+
# rollup.js default build output
125+
dist/
126+
127+
# Uncomment the public line if your project uses Gatsby
128+
# https://nextjs.org/blog/next-9-1#public-directory-support
129+
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
130+
# public
131+
132+
# Storybook build outputs
133+
.out
134+
.storybook-out
135+
136+
# vuepress build output
137+
.vuepress/dist
138+
139+
# Serverless directories
140+
.serverless/
141+
142+
# FuseBox cache
143+
.fusebox/
144+
145+
# DynamoDB Local files
146+
.dynamodb/
147+
148+
# Temporary folders
149+
tmp/
150+
temp/
151+
152+
# End of https://www.gitignore.io/api/node
153+
154+
# PHP Q.A.
155+
phpstan-phpqa.neon

.phpqa.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
phpqa:
2+
output: cli
3+
tools: phpcs:0,phpcpd:0,phpstan:0
4+
ignoredDirs: node_modules,vendor,tests
5+
6+
phpcs:
7+
standard: phpcs.xml.dist
8+
9+
phpcpd:
10+
minLines: 5
11+
minTokens: 70

.releaserc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
plugins:
2+
- "@semantic-release/commit-analyzer"
3+
- "@semantic-release/github"
4+
- "@semantic-release/release-notes-generator"

.scrutinizer.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ build_failure_conditions:
2222
- 'patches.label("Doc Comments").exists' # No doc comments patches allowed
2323
- 'patches.label("Spacing").exists' # No spacing patches allowed
2424
build:
25+
environment:
26+
php:
27+
version: 7.4
2528
dependencies:
2629
override:
2730
- composer install --ignore-platform-reqs --no-interaction

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: php
22
php:
3-
- '7.2'
3+
- '7.4'
44

55
branches:
66
only:

.vscode/settings.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
22
"phpSniffer.executablesFolder": "./vendor/bin/",
3-
"phpSniffer.standard": "./phpcs.xml.dist"
3+
"phpSniffer.standard": "./phpcs.xml.dist",
4+
"intelephense.files.maxSize": 9000000,
5+
"workbench.colorCustomizations": {
6+
"activityBar.background": "#29301C",
7+
"titleBar.activeBackground": "#394428",
8+
"titleBar.activeForeground": "#FAFBF8"
9+
}
410
}

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] };

composer.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,21 @@
55
"license": "GPL-2.0-only",
66
"require": {
77
"cedaro/wp-plugin": "0.4.0",
8-
"dusank/knapsack": "10.0.0",
98
"php": ">=7.2",
109
"psr/log": "1.1.3"
1110
},
1211
"require-dev": {
1312
"dealerdirect/phpcodesniffer-composer-installer": "0.6.0",
14-
"mockery/mockery": "1.3.1",
1513
"phpcompatibility/phpcompatibility-wp": "2.1.0",
1614
"phpunit/phpunit": "9.1.4",
1715
"squizlabs/php_codesniffer": "3.5.5",
18-
"wp-coding-standards/wpcs": "2.2.1"
16+
"wp-coding-standards/wpcs": "2.2.1",
17+
"slevomat/coding-standard": "^6.3",
18+
"edgedesign/phpqa": "^1.23",
19+
"php-stubs/wordpress-stubs": "^5.4",
20+
"szepeviktor/phpstan-wordpress": "^0.6.0",
21+
"nette/neon": "^3.1",
22+
"vimeo/psalm": "^3.11"
1923
},
2024
"autoload": {
2125
"psr-4": {
@@ -31,7 +35,10 @@
3135
"install-codestandards": [
3236
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run"
3337
],
34-
"lint": "phpcs",
38+
"lint": [
39+
"phpqa",
40+
"psalm"
41+
],
3542
"lint:fix": "phpcbf",
3643
"test": "phpunit"
3744
}

0 commit comments

Comments
 (0)