1
0
mirror of https://github.com/flarum/core.git synced 2025-10-17 17:56:14 +02:00

Add phpcs, Travis, clean up editorconfig and eslint

This commit is contained in:
Toby Zerner
2015-09-04 11:36:18 +09:30
parent 4553dd6a0f
commit 41ff781144
5 changed files with 58 additions and 13 deletions

27
extensions/markdown/.php_cs Executable file
View File

@@ -0,0 +1,27 @@
<?php
$header = <<<EOF
This file is part of Flarum.
(c) Toby Zerner <toby.zerner@gmail.com>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude('js')
->exclude('less')
->in(__DIR__);
return Symfony\CS\Config\Config::create()
->setUsingCache(true)
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers([
'short_array_syntax',
'header_comment',
'-psr0'
])
->finder($finder);