Skip to content

Commit ca915a7

Browse files
Merge pull request #53 from nextcloud/enhancement/linting
Add php linting
2 parents 6f18627 + 4066739 commit ca915a7

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/build
22
/node_modules
33
/js
4+
5+
/vendor/

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ before_script:
5656
- cd core/apps/recommendations
5757

5858
script:
59+
# Check PHP syntax errors
60+
- composer run lint
61+
5962
# Run server's app code checker
6063
- php ../../occ app:check-code --skip-validate-info recommendations
6164

composer.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "nextcloud/recommendations",
3+
"description": "Nextcloud Recommendations",
4+
"type": "library",
5+
"license": "AGPL-v3.0",
6+
"authors": [
7+
{
8+
"name": "Christoph Wurst",
9+
"email": "christoph@winzerhof-wurst.at"
10+
}
11+
],
12+
"scripts": {
13+
"lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;"
14+
},
15+
"require": {}
16+
}

0 commit comments

Comments
 (0)