Skip to content

Commit 9fce403

Browse files
committed
Fix CI
1 parent de62377 commit 9fce403

28 files changed

+5870
-106
lines changed

.eslint.json

Lines changed: 0 additions & 62 deletions
This file was deleted.

.gitignore

100755100644
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
*~
2-
*.kate-swp
3-
*.swp
4-
/data/
5-
/config/
6-
node_modules/**
7-
vendor/**
8-
9-
composer.lock
10-
composer.phar
11-
12-
.eslintcache
1+
/composer.lock
2+
/vendor
3+
/node_modules
4+
.eslintcache
5+
/.stylelintcache

.phpcs.xml

100755100644
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?xml version="1.0"?>
22
<ruleset>
3-
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
4-
</rule>
3+
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
54
<file>.</file>
6-
<arg name="extensions" value="php,php5,inc"/>
5+
<arg name="extensions" value="php"/>
76
<arg name="encoding" value="UTF-8"/>
8-
</ruleset>
7+
</ruleset>

.stylelintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": [
3+
"stylelint-config-wikimedia/support-basic",
4+
"stylelint-config-wikimedia/mediawiki"
5+
]
6+
}

CODE_OF_CONDUCT.md

100755100644
File mode changed.

Gruntfile.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
'use strict';
2+
3+
module.exports = function ( grunt ) {
4+
grunt.loadNpmTasks( 'grunt-banana-checker' );
5+
grunt.loadNpmTasks( 'grunt-eslint' );
6+
grunt.loadNpmTasks( 'grunt-stylelint' );
7+
8+
grunt.initConfig( {
9+
eslint: {
10+
options: {
11+
cache: true,
12+
fix: grunt.option( 'fix' )
13+
},
14+
all: '.'
15+
},
16+
stylelint: {
17+
all: [
18+
'**/*.{css,less}',
19+
'!node_modules/**',
20+
'!vendor/**'
21+
]
22+
},
23+
banana: {
24+
all: 'i18n/'
25+
}
26+
} );
27+
28+
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
29+
grunt.registerTask( 'default', 'test' );
30+
};

README.md

100755100644
File mode changed.

bootstrap.php

100755100644
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88

99
MWStake\MediaWiki\ComponentLoader\Bootstrapper::getInstance()
1010
->register( 'generictaghandler', static function () {
11-
1211
$GLOBALS['wgServiceWiringFiles'][] = __DIR__ . '/includes/ServiceWiring.php';
1312
$GLOBALS['wgMessagesDirs']['mwstake-component-generictaghandler'] = __DIR__ . '/i18n';
1413

15-
$GLOBALS['wgHooks']['ParserFirstCallInit'][] = function ( \Parser $parser ) {
14+
$GLOBALS['wgHooks']['ParserFirstCallInit'][] = static function ( \Parser $parser ) {
1615
if ( MW_ENTRY_POINT === 'load' ) {
1716
return true;
1817
}

composer.json

100755100644
Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@
44
"license": "GPL-3.0-only",
55
"authors": [
66
{
7-
"name": "BlueSpice",
8-
"email": "[email protected]"
7+
"name": "Hallo Welt! GmbH",
8+
"email": "[email protected]",
9+
"homepage": "https://www.hallowelt.com"
910
}
1011
],
1112
"require": {
1213
"composer/installers": "~1.0|~2",
1314
"mwstake/mediawiki-component-inputprocessor": "~1"
1415
},
1516
"require-dev": {
16-
"mediawiki/mediawiki-codesniffer": "41.0.0",
17-
"mediawiki/minus-x": "1.1.1",
17+
"mediawiki/mediawiki-codesniffer": "45.0.0",
18+
"mediawiki/mediawiki-phan-config": "0.14.0",
19+
"mediawiki/minus-x": "1.1.3",
1820
"php-parallel-lint/php-console-highlighter": "1.0.0",
19-
"php-parallel-lint/php-parallel-lint": "1.3.2"
21+
"php-parallel-lint/php-parallel-lint": "1.4.0"
2022
},
2123
"autoload": {
2224
"psr-4": {
@@ -30,17 +32,20 @@
3032
"scripts": {
3133
"test": [
3234
"parallel-lint . --exclude vendor --exclude node_modules",
33-
"minus-x check .",
34-
"phpcs -sp"
35+
"@phpcs",
36+
"minus-x check ."
3537
],
3638
"fix": [
3739
"minus-x fix .",
3840
"phpcbf"
39-
]
41+
],
42+
"phan": "phan -d . --long-progress-bar",
43+
"phpcs": "phpcs -sp --cache"
4044
},
4145
"config": {
4246
"allow-plugins": {
43-
"composer/installers": true
47+
"composer/installers": true,
48+
"dealerdirect/phpcodesniffer-composer-installer": true
4449
}
4550
}
4651
}

i18n/en.json

100755100644
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2+
"@metadata": {
3+
"authors": []
4+
},
25
"generictaghandler-error": "Cannot render tag \"$1\""
36
}

0 commit comments

Comments
 (0)