Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
7101bdc
Update version to PRE
Universal-Omega Jul 11, 2025
e927cad
Convert to use MediaWiki's QueryBuilder
Universal-Omega Jul 11, 2025
be1744b
Type hint Query class
Universal-Omega Jul 11, 2025
b4c604b
Bump to PRE.2
Universal-Omega Jul 11, 2025
3c82f5b
Improve compatibility with postgres
Universal-Omega Jul 11, 2025
300769f
Use subqueries for building
Universal-Omega Jul 11, 2025
09f733d
Bump to PRE.3
Universal-Omega Jul 11, 2025
15b4be5
Simplify accessing the page table
Universal-Omega Jul 12, 2025
eb074e7
Add support for SQLite to addcategories
Universal-Omega Jul 12, 2025
109b575
Escape
Universal-Omega Jul 12, 2025
605623e
Fix addcategories
Universal-Omega Jul 12, 2025
97d781d
Fix addcategories when using openreferences
Universal-Omega Jul 12, 2025
5b24eeb
Fix openreferences
Universal-Omega Jul 12, 2025
acfe9a1
Support more options for namespaces
Universal-Omega Jul 12, 2025
2676d99
Fix getSubcategories
Universal-Omega Jul 12, 2025
8f95c2e
Support all of linksfrom, linksto, uses, and usedby at the same time
Universal-Omega Jul 12, 2025
6b8acc1
Bump to PRE.4
Universal-Omega Jul 12, 2025
9334ec4
Fix ignorecase
Universal-Omega Jul 13, 2025
ec0f738
Cleanup and improve queries using ExpressionBuilder
Universal-Omega Jul 14, 2025
3bcc643
Bump to PRE.5
Universal-Omega Jul 14, 2025
282dacf
Merge branch 'main' into pre-release
Universal-Omega Jul 14, 2025
8fa753a
Fix some issues
Universal-Omega Jul 14, 2025
0e43c18
Fix ordercollation
Universal-Omega Jul 14, 2025
8929a11
Bump to PRE.6
Universal-Omega Jul 14, 2025
b930700
Use MultiConfig for getting DPL configs
Universal-Omega Jul 14, 2025
0e84e88
Cleanup and modernize the Parameters class
Universal-Omega Jul 14, 2025
f94f657
Use different symbols in %ARGS% to avoid parser conflicts
Universal-Omega Jul 14, 2025
fa0cdcc
Add support for displaytitle
Universal-Omega Jul 15, 2025
ff14cdb
Fix handling of & in category names
Universal-Omega Jul 15, 2025
1b53417
Fix catheadings and notcatheadings (use of + and -)
Universal-Omega Jul 15, 2025
6757dfa
Rebrand as DPL4
Universal-Omega Jul 15, 2025
0b5f9fd
Bump to 4.0.0-alpha.1
Universal-Omega Jul 15, 2025
634576d
fix: redirects does not accept include as an option
Universal-Omega Jul 15, 2025
c0e0915
Cleanup Hooks
Universal-Omega Jul 15, 2025
9ce7312
Parse: use property for Config
Universal-Omega Jul 15, 2025
ed59625
Factor out constants and some helper methods to new classes
Universal-Omega Jul 15, 2025
2985fce
Fix dplmatrix
Universal-Omega Jul 15, 2025
37c88ec
Replace usage of Template:Extension DPL with a tracking category
Universal-Omega Jul 15, 2025
aeef501
Bump version to alpha.2
Universal-Omega Jul 15, 2025
5d1f4ab
Cleanup CreateView
Universal-Omega Jul 16, 2025
f1a85c7
Rename some local variables
Universal-Omega Jul 16, 2025
d9b13b3
Major refactoring to heading classes
Universal-Omega Jul 16, 2025
bf3897e
Add ??
Universal-Omega Jul 16, 2025
3d28d96
Use some readonly properties and simplify some comments
Universal-Omega Jul 16, 2025
23e999f
Query: catch DBQueryError rather than base Exception
Universal-Omega Jul 16, 2025
7a4d1a5
Merge branch 'main' into pre-release
Universal-Omega Jul 16, 2025
5619d63
Major refactoring to Article class
Universal-Omega Jul 16, 2025
0369612
Exclude subpages in query rather than parse
Universal-Omega Jul 16, 2025
47c5cbd
Modernize Logger class
Universal-Omega Jul 16, 2025
582dfdc
Replace call_user_func_array in Parameters
Universal-Omega Jul 16, 2025
ba394c1
Cleanup DPLIntegrationTestCase
Universal-Omega Jul 16, 2025
ab294f5
Some more cleanup to Query
Universal-Omega Jul 17, 2025
5c6f22f
Bump to alpha.3
Universal-Omega Jul 17, 2025
d643c6b
Fix addcategories
Universal-Omega Jul 17, 2025
e63c3ce
Convert to HookHandlers system
Universal-Omega Jul 18, 2025
8423f06
Merge branch 'main' into pre-release
Universal-Omega Jul 18, 2025
71e59ee
Cleanup DPLQueryIntegrationTest
Universal-Omega Jul 18, 2025
bfe215c
Update comments
Universal-Omega Jul 18, 2025
c14ff9c
Cleanup DPLExternalDomainPatternParserTest
Universal-Omega Jul 18, 2025
a678700
Some cleanup to Parameters and ParametersData
Universal-Omega Jul 18, 2025
7a40a18
Cleanup/modernization of the Variables class
Universal-Omega Jul 18, 2025
aad331e
Cleanup and modernize the Parse class
Universal-Omega Jul 19, 2025
3b99f99
Replace remaining usages of Config::getSetting()
Universal-Omega Jul 19, 2025
11d3a6f
Improve gallery support
Universal-Omega Jul 20, 2025
f3bc1d5
Split _adduser to a seperate method for passing table alias
Universal-Omega Jul 20, 2025
5ead39f
Fix `%EDITSUMMARY%`
Universal-Omega Jul 20, 2025
4d5690a
Fix titlegt and titlelt
Universal-Omega Jul 20, 2025
7265607
Fix redirects => include
Universal-Omega Jul 20, 2025
687069d
Replace spaces with underscores in namespace names
Universal-Omega Jul 20, 2025
6cf5127
Support all relative timestamps and fix some very odd timestamp bugs
Universal-Omega Jul 22, 2025
05b2182
Officially rename to DynamicPageList4
Universal-Omega Jul 22, 2025
affcdc9
Bump to alpha.4
Universal-Omega Jul 23, 2025
54815be
Merge branch 'main' into pre-release
Universal-Omega Jul 24, 2025
25b76dc
Update documentation page
Universal-Omega Jul 24, 2025
84bcb73
Update some config defaults
Universal-Omega Jul 24, 2025
7a3f618
Use Html class in some places
Universal-Omega Jul 24, 2025
5f58e37
Fix message used in articleCountMessage
Universal-Omega Jul 24, 2025
be77d19
Fix issue with colspan
Universal-Omega Jul 24, 2025
7e0a72a
Remove unused methods from ParametersData
Universal-Omega Jul 24, 2025
5080cdb
Add config option to support overriding the parameter defaults
Universal-Omega Jul 24, 2025
699b8ac
Add a new gallerysize parameter
Universal-Omega Jul 24, 2025
679b411
Make constructor protected
Universal-Omega Jul 24, 2025
60c7685
Add newline
Universal-Omega Jul 25, 2025
476353b
Remove support for updating/deleting articles
Universal-Omega Jul 25, 2025
d40ea50
Some fixes
Universal-Omega Jul 25, 2025
cc429ee
Major refactoring to lister classes
Universal-Omega Jul 26, 2025
ea9262f
Make some properties readonly
Universal-Omega Jul 26, 2025
3d66471
Fix some regression in Lister
Universal-Omega Jul 26, 2025
c2de49a
Archive past releases
Universal-Omega Jul 27, 2025
730ee8c
Cleanup/modernize/rename LST class
Universal-Omega Jul 27, 2025
e6a7383
Replace parametersForRichnessLevel with a constant and make parameter…
Universal-Omega Jul 27, 2025
d102e23
minor cleanup
Universal-Omega Jul 27, 2025
86cbab2
Add logging
Universal-Omega Jul 27, 2025
87da660
Improve localization
Universal-Omega Jul 27, 2025
ad5ab15
Fix
Universal-Omega Jul 27, 2025
d775afb
trim titleText
Universal-Omega Jul 27, 2025
60b64fd
Enable some phan plugins
Universal-Omega Jul 28, 2025
9c6d6be
Remove underscores from method names
Universal-Omega Jul 28, 2025
7f6c3aa
Revert "Remove underscores from method names"
Universal-Omega Jul 28, 2025
ba7a268
Inline disable PHPCS
Universal-Omega Jul 28, 2025
687aad2
Update PHPCS rules
Universal-Omega Jul 28, 2025
6b42db8
Refactor parameter handling to replace `__call()` magic with `process…
Universal-Omega Jul 28, 2025
0705b0c
Use markdown license
Universal-Omega Jul 28, 2025
d585ab4
Update
Universal-Omega Jul 28, 2025
0cff048
Add CREDITS.txt
Universal-Omega Jul 28, 2025
dc6eb9c
Remove suppresserrors
Universal-Omega Jul 28, 2025
0382543
Update documentation URL
Universal-Omega Jul 28, 2025
f77b351
Remove explicit ENT_QUOTES from html_entity_decode
Universal-Omega Jul 28, 2025
3284e00
Use NS_MAIN
Universal-Omega Jul 29, 2025
33714aa
Fix `addexternallink`, `linkstoexternal`, and `%EXTERNALLINK%`
Universal-Omega Jul 30, 2025
8ee2424
Improve alias usage
Universal-Omega Aug 1, 2025
64d615f
Bump to alpha.5
Universal-Omega Aug 1, 2025
16d3867
Remove the handleSectionTag config
Universal-Omega Aug 1, 2025
e6fcb18
Add PHPUnit tests for the Article class
Universal-Omega Aug 1, 2025
fa0c2af
Add compatability with the Video extension
Universal-Omega Aug 2, 2025
25f4884
Simplify comments
Universal-Omega Aug 2, 2025
c26f413
Minor cleanup/simplification to Parse
Universal-Omega Aug 3, 2025
b724856
getSubcategories: fix and add error handling
Universal-Omega Aug 4, 2025
999e0ac
Optimize query for ordermethod=lastedit
ciencia Aug 6, 2025
f4241ca
Replace gallerysize with imagewidth and imageheight parameters
Universal-Omega Aug 6, 2025
c7c0d3a
Move getLogger to Utils
Universal-Omega Aug 7, 2025
75005fd
Fix catching DBQueryError
Universal-Omega Aug 7, 2025
c6a2d01
Update bug report issue template
Universal-Omega Aug 8, 2025
0a52e95
Merge branch 'main' into pre-release
Universal-Omega Aug 8, 2025
b6f76f0
Escape category links in gallery
Universal-Omega Aug 8, 2025
2996f20
Use vslow for query group
Universal-Omega Aug 10, 2025
92da078
Fix titlematch
Universal-Omega Aug 30, 2025
27e7811
Merge branch 'main' into pre-release
Universal-Omega Aug 30, 2025
f38d9e2
Merge branch 'main' into pre-release
Universal-Omega Aug 30, 2025
a93842c
Add maintenance script to delete Template:Extension DPL
Universal-Omega Aug 30, 2025
dbdb229
Improve query exception handling
Universal-Omega Aug 31, 2025
2bc0134
Some cleanup to parameters
Universal-Omega Sep 7, 2025
7496b60
Remove tables from FOUND_ROWS
Universal-Omega Sep 10, 2025
73664da
Use strict_types
Universal-Omega Sep 10, 2025
421b64d
Add default value for $repl
Universal-Omega Sep 10, 2025
b489d3e
Don't let titleText become null if match fails
Universal-Omega Sep 10, 2025
7144b86
Merge branch 'main' into pre-release
Universal-Omega Sep 10, 2025
25e04e1
Fix types
Universal-Omega Sep 11, 2025
d6e9206
Bump to beta.1
Universal-Omega Sep 20, 2025
93a9ae6
Make parser function arguments optional to prevent errors (#501)
SomeMWDev Dec 15, 2025
ff7c951
Merge branch 'main' into pre-release
Universal-Omega Dec 15, 2025
12baf16
Fix nottitlematch bug where only the first pattern is excluded (#503)
lihaohong6 Dec 15, 2025
266cd77
Fix CI
Universal-Omega Dec 27, 2025
c5fc2ac
Merge branch 'main' into pre-release
Universal-Omega Dec 27, 2025
0e29af1
Merge branch 'main' into pre-release
Universal-Omega Dec 27, 2025
736a46e
Simplify checking of ignoreCase (#506)
hexmode Dec 27, 2025
08fcf51
Add REL1_45 to CI
Universal-Omega Dec 28, 2025
2502bb2
Add CHANGELOG
Universal-Omega Dec 28, 2025
7f43593
Update default value for maxCategoryCount to 8
Universal-Omega Dec 30, 2025
7e3e6a5
Add missing changes
Universal-Omega Dec 30, 2025
ffd3ef6
Add validation for replaceintitle
Universal-Omega Dec 30, 2025
1902d37
Parse image for %IMAGE% only when needed
Universal-Omega Dec 30, 2025
ec961d6
Fix entry
Universal-Omega Dec 30, 2025
c50db71
Merge branch 'main' into pre-release
Universal-Omega Dec 31, 2025
0487749
Add titlematch parser tests
Universal-Omega Dec 31, 2025
4fddc56
Use consistent ?? false
Universal-Omega Jan 1, 2026
0b0d8a3
Add support for just string replacement in replaceintitle
Universal-Omega Jan 2, 2026
be81e74
Move to features
Universal-Omega Jan 2, 2026
c16c67e
Add checks to not conflict with main or (main) for mainspace
Universal-Omega Jan 2, 2026
3b55865
Update version to just 4.0.0 to prepare for stable release
Universal-Omega Jan 3, 2026
eb38137
Add Version 4.0.1 placeholder
Universal-Omega Jan 3, 2026
81936f0
Add category
Universal-Omega Jan 3, 2026
9549b6f
continue-on-error
Universal-Omega Jan 3, 2026
73dcd49
newline
Universal-Omega Jan 3, 2026
db617c1
Apply replaceintitle and titlemaxlength to displaytitle
Universal-Omega Jan 4, 2026
40e0b7a
Fix single character wildcard usage
Universal-Omega Jan 4, 2026
f0f6000
Fix config default value in README
Universal-Omega Jan 4, 2026
c11425f
Remove pre-release branch from workflow
Universal-Omega Jan 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ assignees: ''

---

**DynamicPageList3 version**:
**DynamicPageList4 version**:
**MediaWiki version**:
**PHP version**:
**Database version**:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results

name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
Expand All @@ -56,5 +57,6 @@ jobs:
# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v4
continue-on-error: true
with:
sarif_file: results.sarif
3 changes: 3 additions & 0 deletions .github/workflows/dependencies
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
PageImages:
branch: auto
repo: auto
Variables:
branch: auto
repo: auto
100 changes: 57 additions & 43 deletions .github/workflows/mediawiki-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,73 +13,87 @@ jobs:
strategy:
matrix:
include:
# Latest MediaWiki LTS - PHP 8.1 (phan)
# Latest MediaWiki LTS - PHP 8.2 (phan)
- mw: 'REL1_43'
php: 8.1
php-docker: 81
php: 8.2
php-docker: 82
experimental: false
stage: phan

# Latest stable MediaWiki - PHP 8.1 (phan)
# Legacy MediaWiki stable - PHP 8.2 (phan)
- mw: 'REL1_44'
php: 8.1
php-docker: 81
php: 8.2
php-docker: 82
experimental: true
stage: phan

# Latest MediaWiki master - PHP 8.1 (phan)
# Latest MediaWiki stable - PHP 8.2 (phan)
- mw: 'REL1_45'
php: 8.2
php-docker: 82
experimental: true
stage: phan

# Latest MediaWiki master - PHP 8.2 (phan)
- mw: 'master'
php: 8.1
php-docker: 81
php: 8.2
php-docker: 82
experimental: true
stage: phan

# Latest MediaWiki master - PHP 8.1 (coverage)
# Latest MediaWiki master - PHP 8.2 (coverage)
- mw: 'master'
php: 8.1
php-docker: 81
experimental: false
php: 8.2
php-docker: 82
experimental: true
stage: coverage

# Latest MediaWiki LTS - PHP 8.1 (phpunit)
# Latest MediaWiki LTS - PHP 8.2 (phpunit)
- mw: 'REL1_43'
php: 8.1
php-docker: 81
php: 8.2
php-docker: 82
experimental: false
stage: phpunit

# Latest stable MediaWiki - PHP 8.1 (phpunit)
# Legacy MediaWiki stable - PHP 8.2 (phpunit)
- mw: 'REL1_44'
php: 8.1
php-docker: 81
php: 8.2
php-docker: 82
experimental: false
stage: phpunit

# Latest MediaWiki master - PHP 8.1 (phpunit)
# Latest MediaWiki stable - PHP 8.2 (phpunit)
- mw: 'REL1_45'
php: 8.2
php-docker: 82
experimental: true
stage: phpunit

# Latest MediaWiki master - PHP 8.2 (phpunit)
- mw: 'master'
php: 8.1
php-docker: 81
php: 8.2
php-docker: 82
experimental: true
stage: phpunit

# Latest MediaWiki master - PHP 8.1 (selenium)
# Latest MediaWiki master - PHP 8.2 (selenium)
- mw: 'master'
php: 8.1
php-docker: 81
php: 8.2
php-docker: 82
experimental: true
stage: selenium

# Latest MediaWiki master - PHP 8.1 (qunit)
# Latest MediaWiki master - PHP 8.2 (qunit)
- mw: 'master'
php: 8.1
php-docker: 81
php: 8.2
php-docker: 82
experimental: true
stage: qunit

# Latest stable MediaWiki - PHP 8.1 (composer-test)
- mw: 'REL1_43'
php: 8.1
php-docker: 81
# Latest MediaWiki stable - PHP 8.2 (composer-test)
- mw: 'REL1_45'
php: 8.2
php-docker: 82
experimental: false
stage: composer-test

Expand All @@ -89,8 +103,6 @@ jobs:
DOCKER_REGISTRY: docker-registry.wikimedia.org
DOCKER_ORG: releng
QUIBBLE_DOCKER_IMAGE: quibble-bullseye-php${{ matrix.php-docker }}
COVERAGE_DOCKER_IMAGE: quibble-bullseye-php${{ matrix.php-docker }}-coverage
PHAN_DOCKER_IMAGE: mediawiki-phan-php${{ matrix.php-docker }}
MEDIAWIKI_VERSION: ${{ matrix.mw }}

steps:
Expand All @@ -109,13 +121,7 @@ jobs:
# $GITHUB_WORKSPACE/.github/workflows/globals.php Add global configuration options for MediaWiki
- name: Set up
run: |
if [ "${{ matrix.stage }}" == 'phan' ]; then
export DOCKER_IMAGE="${PHAN_DOCKER_IMAGE}"
elif [ "${{ matrix.stage }}" == coverage ]; then
export DOCKER_IMAGE="${COVERAGE_DOCKER_IMAGE}"
else
export DOCKER_IMAGE="${QUIBBLE_DOCKER_IMAGE}"
fi
export DOCKER_IMAGE="${QUIBBLE_DOCKER_IMAGE}"
echo "DOCKER_IMAGE=${DOCKER_IMAGE}" >> $GITHUB_ENV

# Get the latest docker tag (Ref: https://github.com/thcipriani/dockerregistry)
Expand Down Expand Up @@ -259,6 +265,7 @@ jobs:

if [ "${{ matrix.stage }}" == 'phan' ]; then
docker run \
--entrypoint /run-phan.sh \
-e THING_SUBNAME=extensions/"${{ github.event.repository.name }}" \
-v "$(pwd)"/src:/mediawiki \
"${DOCKER_REGISTRY}/${DOCKER_ORG}/${DOCKER_IMAGE}:${DOCKER_LATEST_TAG}" \
Expand All @@ -272,8 +279,15 @@ jobs:
-v "$(pwd)"/cover:/workspace/cover \
"${DOCKER_REGISTRY}/${DOCKER_ORG}/${DOCKER_IMAGE}:${DOCKER_LATEST_TAG}" \
--skip-zuul \
--skip-deps \
-c mwext-phpunit-coverage
--packages-source composer \
-c "/bin/bash -c 'curl -sL https://raw.githubusercontent.com/wikimedia/integration-config/refs/heads/master/dockerfiles/quibble-bullseye-php81-coverage/mwext-phpunit-coverage.sh -o mwext-phpunit-coverage && \
curl -sL https://raw.githubusercontent.com/wikimedia/integration-config/refs/heads/master/dockerfiles/quibble-bullseye-php81-coverage/phpunit-suite-edit.py -o phpunit-suite-edit && \
curl -sL https://raw.githubusercontent.com/wikimedia/integration-config/refs/heads/master/dockerfiles/quibble-bullseye-php81-coverage/phpunit-junit-edit.py -o phpunit-junit-edit && \
rm -rf /workspace/src/extensions/*/vendor/squizlabs/php_codesniffer /workspace/src/extensions/*/vendor/composer/pcre && \
chmod +x mwext-phpunit-coverage phpunit-suite-edit phpunit-junit-edit && \
sed -i \"s|phpunit-suite-edit|./phpunit-suite-edit|g\" mwext-phpunit-coverage && \
sed -i \"s|phpunit-junit-edit|./phpunit-junit-edit|g\" mwext-phpunit-coverage && \
./mwext-phpunit-coverage'"
elif [ "${{ matrix.stage }}" != 'coverage' ]; then
docker run \
--entrypoint quibble-with-supervisord \
Expand Down
39 changes: 39 additions & 0 deletions .phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@

$cfg['directory_list'] = array_merge(
$cfg['directory_list'], [
'../../extensions/PageImages',
'../../extensions/Variables',
]
);

$cfg['exclude_analysis_directory_list'] = array_merge(
$cfg['exclude_analysis_directory_list'], [
'../../extensions/PageImages',
'../../extensions/Variables',
]
);
Expand All @@ -21,4 +23,41 @@
'PhanAccessMethodInternal',
];

$cfg['plugins'] = array_merge( $cfg['plugins'], [
'AddNeverReturnTypePlugin',
'AlwaysReturnPlugin',
'DeprecateAliasPlugin',
'DollarDollarPlugin',
'DuplicateConstantPlugin',
'EmptyMethodAndFunctionPlugin',
'EmptyStatementListPlugin',
'FFIAnalysisPlugin',
'InlineHTMLPlugin',
'InvalidVariableIssetPlugin',
'InvokePHPNativeSyntaxCheckPlugin',
'LoopVariableReusePlugin',
'NotFullyQualifiedUsagePlugin',
'PHPDocRedundantPlugin',
'PHPUnitAssertionPlugin',
'PHPUnitNotDeadCodePlugin',
'PreferNamespaceUsePlugin',
'RedundantAssignmentPlugin',
'SimplifyExpressionPlugin',
'SleepCheckerPlugin',
'StrictComparisonPlugin',
'StrictLiteralComparisonPlugin',
'SuspiciousParamOrderPlugin',
'UnreachableCodePlugin',
'UnsafeCodePlugin',
'UseReturnValuePlugin',
] );

$cfg['analyze_signature_compatibility'] = true;
$cfg['enable_class_alias_support'] = true;
$cfg['enable_extended_internal_return_type_plugins'] = true;
$cfg['error_prone_truthy_condition_detection'] = true;
$cfg['redundant_condition_detection'] = true;
$cfg['unused_variable_detection'] = true;
$cfg['warn_about_relative_include_statement'] = true;

return $cfg;
26 changes: 20 additions & 6 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
<?xml version="1.0"?>
<ruleset>
<file>.</file>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" />
<exclude name="PSR2.Methods.MethodDeclaration.Underscore" />
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
<rule ref="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma">
<severity>5</severity>
</rule>
<arg name="bootstrap" value="./vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php"/>
<arg name="extensions" value="php"/>
<arg name="encoding" value="UTF-8"/>
<rule ref="Squiz.WhiteSpace.FunctionSpacing.BeforeFirst">
<severity>5</severity>
</rule>
<rule ref="Squiz.WhiteSpace.MemberVarSpacing.FirstIncorrect">
<severity>5</severity>
</rule>
<rule ref="MediaWiki.Classes.FullQualifiedClassName">
<severity>5</severity>
<properties>
<property name="allowMainNamespace" value="false" />
<property name="allowInheritance" value="false" />
<property name="allowFunctions" value="false" />
</properties>
</rule>
<arg name="bootstrap" value="./vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php" />
<arg name="extensions" value="php" />
<arg name="encoding" value="UTF-8" />
</ruleset>
Loading
Loading