diff --git a/.gitignore b/.gitignore index bbdfd1bddcb..93bd5d12cb5 100644 --- a/.gitignore +++ b/.gitignore @@ -51,5 +51,5 @@ moodle-plugin-ci.phar .eslintignore .stylelintignore /jsdoc -.phpcs.xml +phpcs.xml jsconfig.json diff --git a/.grunt/tasks/ignorefiles.js b/.grunt/tasks/ignorefiles.js index 0330cab36ea..7d34649d2e5 100644 --- a/.grunt/tasks/ignorefiles.js +++ b/.grunt/tasks/ignorefiles.js @@ -39,7 +39,7 @@ module.exports = grunt => { { rule: { _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, indent: ' ', }) + "\n"); diff --git a/.phpcs.xml.dist b/phpcs.xml.dist similarity index 100% rename from .phpcs.xml.dist rename to phpcs.xml.dist