-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @myparcelnl/integration |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' | ||
|
||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' | ||
|
||
- package-ecosystem: 'composer' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: 'Release 🚀' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
uses: myparcelnl/actions/.github/workflows/--semantic-release.yml@v2 | ||
secrets: inherit |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
vendor | ||
|
||
.*.cache | ||
.DS_Store | ||
yarn-*.log |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# MyParcel PHP DevTools | ||
|
||
These tools are used to make a consistent php workflow. | ||
|
||
## Installation | ||
|
||
```bash | ||
composer require --dev myparcelnl/devtools | ||
``` | ||
|
||
## Included tools | ||
|
||
- [PHPMD](#PHPMD) | ||
|
||
## Configuration | ||
|
||
### PHPMD | ||
|
||
Create a new file in your project root called `phpmd.xml`. | ||
|
||
Paste the following content into it: | ||
|
||
```xml | ||
<?xml version="1.0"?> | ||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
name="MyParcel" | ||
xmlns="http://pmd.sf.net/ruleset/1.0.0" | ||
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 https://pmd.sourceforge.io/ruleset_xml_schema.xsd" | ||
xsi:noNamespaceSchemaLocation="https://pmd.sourceforge.io/ruleset_xml_schema.xsd"> | ||
<description /> | ||
|
||
<rule ref="vendor/myparcelnl/devtools/phpmd.xml"> | ||
<exclude name="StaticAccess" /> | ||
</rule> | ||
</ruleset> | ||
``` | ||
|
||
Then set up your IDE so PHPMD inspections are enabled. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "myparcelnl/devtools", | ||
"version": "0.0.0", | ||
"description": "Dev tools for linting and analysing php projects.", | ||
"require": { | ||
"php": ">= 7", | ||
"phpmd/phpmd": ">= 2.0" | ||
}, | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Edie Lemoine", | ||
"email": "[email protected]" | ||
} | ||
] | ||
} |