[MediaWiki-commits] [Gerrit] mediawiki...Survey[master]: build: Add php-parallel-lint and MinusX

2017-11-04 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/389173 )

Change subject: build: Add php-parallel-lint and MinusX
..


build: Add php-parallel-lint and MinusX

php-lint will test for valid php files
MinusX will test for executable bits

Change-Id: I3a509a533a39c0ede94a202f938604977bdbc73b
---
M .gitignore
D .jshintignore
M Gruntfile.js
A composer.json
4 files changed, 21 insertions(+), 4 deletions(-)

Approvals:
  Umherirrender: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/.gitignore b/.gitignore
index 34f2522..27163d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@
 .*.swp
 .project
 node_modules/**
+vendor/**
+composer.lock
diff --git a/.jshintignore b/.jshintignore
deleted file mode 100644
index 018476d..000
--- a/.jshintignore
+++ /dev/null
@@ -1,3 +0,0 @@
-resources/fancybox/**
-resources/jquery.numeric.js
-node_modules/**
diff --git a/Gruntfile.js b/Gruntfile.js
index d9daa46..a52d773 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -12,6 +12,7 @@
all: [
'**/*.js',
'!node_modules/**',
+   '!vendor/**',
'!resources/fancybox/**',
'!resources/jquery.numeric.js'
]
@@ -22,7 +23,8 @@
jsonlint: {
all: [
'**/*.json',
-   '!node_modules/**'
+   '!node_modules/**',
+   '!vendor/**'
]
}
} );
diff --git a/composer.json b/composer.json
new file mode 100644
index 000..392434c
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,16 @@
+{
+   "require-dev": {
+   "jakub-onderka/php-parallel-lint": "0.9.2",
+   "jakub-onderka/php-console-highlighter": "0.3.2",
+   "mediawiki/minus-x": "0.2.0"
+   },
+   "scripts": {
+   "test": [
+   "parallel-lint . --exclude vendor --exclude 
node_modules",
+   "minus-x check ."
+   ],
+   "fix": [
+   "minus-x fix ."
+   ]
+   }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/389173
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3a509a533a39c0ede94a202f938604977bdbc73b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Survey
Gerrit-Branch: master
Gerrit-Owner: Umherirrender 
Gerrit-Reviewer: Umherirrender 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...Survey[master]: build: Add php-parallel-lint and MinusX

2017-11-04 Thread Umherirrender (Code Review)
Umherirrender has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/389173 )

Change subject: build: Add php-parallel-lint and MinusX
..

build: Add php-parallel-lint and MinusX

php-lint will test for valid php files
MinusX will test for executable bits

Change-Id: I3a509a533a39c0ede94a202f938604977bdbc73b
---
M .gitignore
D .jshintignore
M Gruntfile.js
A composer.json
4 files changed, 21 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Survey 
refs/changes/73/389173/1

diff --git a/.gitignore b/.gitignore
index 34f2522..27163d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@
 .*.swp
 .project
 node_modules/**
+vendor/**
+composer.lock
diff --git a/.jshintignore b/.jshintignore
deleted file mode 100644
index 018476d..000
--- a/.jshintignore
+++ /dev/null
@@ -1,3 +0,0 @@
-resources/fancybox/**
-resources/jquery.numeric.js
-node_modules/**
diff --git a/Gruntfile.js b/Gruntfile.js
index d9daa46..a52d773 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -12,6 +12,7 @@
all: [
'**/*.js',
'!node_modules/**',
+   '!vendor/**',
'!resources/fancybox/**',
'!resources/jquery.numeric.js'
]
@@ -22,7 +23,8 @@
jsonlint: {
all: [
'**/*.json',
-   '!node_modules/**'
+   '!node_modules/**',
+   '!vendor/**'
]
}
} );
diff --git a/composer.json b/composer.json
new file mode 100644
index 000..392434c
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,16 @@
+{
+   "require-dev": {
+   "jakub-onderka/php-parallel-lint": "0.9.2",
+   "jakub-onderka/php-console-highlighter": "0.3.2",
+   "mediawiki/minus-x": "0.2.0"
+   },
+   "scripts": {
+   "test": [
+   "parallel-lint . --exclude vendor --exclude 
node_modules",
+   "minus-x check ."
+   ],
+   "fix": [
+   "minus-x fix ."
+   ]
+   }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/389173
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3a509a533a39c0ede94a202f938604977bdbc73b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Survey
Gerrit-Branch: master
Gerrit-Owner: Umherirrender 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits