mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-76727 core: Allow phpcs configuration to be overridden locally
This change reduces the priority of the shipped phpcs configuration to allow for local overrides. This is beneficial in several situations: - when users wish to apply stricter or additional standards - when the integration team wishes to trial new rules
This commit is contained in:
parent
24c009f222
commit
bb7cce1e56
2
.gitignore
vendored
2
.gitignore
vendored
@ -54,5 +54,5 @@ moodle-plugin-ci.phar
|
|||||||
/admin/tool/componentlibrary/docs
|
/admin/tool/componentlibrary/docs
|
||||||
/admin/tool/componentlibrary/hugo/site/data/my-index.json
|
/admin/tool/componentlibrary/hugo/site/data/my-index.json
|
||||||
.hugo_build.lock
|
.hugo_build.lock
|
||||||
.phpcs.xml
|
phpcs.xml
|
||||||
jsconfig.json
|
jsconfig.json
|
||||||
|
@ -39,7 +39,7 @@ module.exports = grunt => {
|
|||||||
{
|
{
|
||||||
rule: {
|
rule: {
|
||||||
_attrs: {
|
_attrs: {
|
||||||
ref: './.phpcs.xml.dist',
|
ref: './phpcs.xml.dist',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -52,7 +52,7 @@ module.exports = grunt => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.file.write('.phpcs.xml', toXML(config, {
|
grunt.file.write('phpcs.xml', toXML(config, {
|
||||||
header: true,
|
header: true,
|
||||||
indent: ' ',
|
indent: ' ',
|
||||||
}) + "\n");
|
}) + "\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user