Skip to content

Commit e2ecaa7

Browse files
committed
Remove the 'header_comment' rule from php-cs-fixer
It was enforcing us to keep the Blackboard header for all files when new ones shouldn't be subject to that copyright notice. For the records, the new file comment should be like: ``` <?php // This file is part of the Moodle Plugin CI package. // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. ``` Then, in the class PHPDocs, put the usual @copyright and @license tags.
1 parent b1e901a commit e2ecaa7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

.php-cs-fixer.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@
1010
* License http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
1111
*/
1212

13-
$header = <<<'EOF'
14-
This file is part of the Moodle Plugin CI package.
15-
16-
For the full copyright and license information, please view the LICENSE
17-
file that was distributed with this source code.
18-
19-
Copyright (c) 2018 Blackboard Inc. (http://www.blackboard.com)
20-
License http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
21-
EOF;
22-
2313
return (new PhpCsFixer\Config())
2414
->setRiskyAllowed(true)
2515
->setRules([
@@ -33,7 +23,6 @@
3323
'expectedExceptionMessage',
3424
'expectedExceptionMessageRegExp',
3525
]],
36-
'header_comment' => ['header' => $header],
3726
'heredoc_to_nowdoc' => true,
3827
'no_extra_blank_lines' => ['tokens' => [
3928
'break', 'continue', 'extra', 'return',

0 commit comments

Comments
 (0)