Skip to content

Commit befd1eb

Browse files
committed
build: Apply latest Wikimedia library boilerplate
From mediawiki/tools/cookiecutter-library. Change-Id: I83534445305f4a200a78d003044841896b3fdfc4
1 parent f546869 commit befd1eb

File tree

5 files changed

+37
-12
lines changed

5 files changed

+37
-12
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/coverage/
2+
/doc/
23
/test/data-*
34
/vendor/
5+
/.idea
46
/.phpunit.result.cache
5-
/clover.xml
67
/composer.lock

.phpcs.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<ruleset name="cssjanus">
2+
<ruleset>
33
<rule ref="PSR2">
44
<exclude name="Generic.WhiteSpace.DisallowTabIndent" />
55
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
@@ -13,6 +13,9 @@
1313
</properties>
1414
</rule>
1515
<file>.</file>
16-
<exclude-pattern>vendor</exclude-pattern>
16+
<arg name="encoding" value="UTF-8"/>
17+
<arg name="extensions" value="php"/>
1718
<exclude-pattern>coverage</exclude-pattern>
19+
<exclude-pattern>doc/html</exclude-pattern>
20+
<exclude-pattern>vendor</exclude-pattern>
1821
</ruleset>

Doxyfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Doxyfile <https://www.doxygen.nl/manual/config.html>
2+
PROJECT_NAME = "CSSJanus"
3+
PROJECT_BRIEF = "Convert CSS stylesheets between left-to-right and right-to-left."
4+
OUTPUT_DIRECTORY = doc
5+
JAVADOC_AUTOBRIEF = YES
6+
QT_AUTOBRIEF = YES
7+
QUIET = YES
8+
WARN_NO_PARAMDOC = YES
9+
WARN_IF_DOC_ERROR = NO
10+
WARN_IF_INCOMPLETE_DOC = NO
11+
INPUT = README.md src/
12+
FILE_PATTERNS = *.php
13+
RECURSIVE = YES
14+
USE_MDFILE_AS_MAINPAGE = README.md
15+
HTML_DYNAMIC_SECTIONS = YES
16+
GENERATE_TREEVIEW = YES
17+
TREEVIEW_WIDTH = 250
18+
GENERATE_LATEX = NO
19+
GENERATE_TAGFILE = doc/html/tagfile.xml

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "cssjanus/cssjanus",
33
"description": "Convert CSS stylesheets between left-to-right and right-to-left.",
44
"license": "Apache-2.0",
5+
"homepage": "https://www.mediawiki.org/wiki/CSSJanus",
56
"authors": [
67
{
78
"name": "Roan Kattouw"
@@ -35,9 +36,9 @@
3536
"@phan"
3637
],
3738
"cover": "phpunit --coverage-html coverage",
39+
"phan": "phan --allow-polyfill-parser",
3840
"fix": [
3941
"phpcbf"
40-
],
41-
"phan": "phan --allow-polyfill-parser --no-progress-bar"
42+
]
4243
}
4344
}

phpunit.xml.dist

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage processUncoveredFiles="true">
1+
<?xml version="1.0"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
5+
colors="true"
6+
beStrictAboutTestsThatDoNotTestAnything="true"
7+
beStrictAboutOutputDuringTests="true">
8+
<coverage includeUncoveredFiles="true">
49
<include>
510
<directory suffix=".php">./src</directory>
611
</include>
7-
<report>
8-
<clover outputFile="clover.xml"/>
9-
<html outputDirectory="coverage/"/>
10-
</report>
1112
</coverage>
1213
<testsuites>
1314
<testsuite name="Tests">

0 commit comments

Comments
 (0)