mirror of
https://github.com/Codappix/search_core.git
synced 2024-12-22 14:16:10 +01:00
WIP|FEATURE: Integrate scrutinizer
* To allow auto checking of coding guideline
This commit is contained in:
parent
4ec4753cf8
commit
057c67714f
4 changed files with 86 additions and 2 deletions
32
.scrutinizer.yml
Normal file
32
.scrutinizer.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
filter:
|
||||
excluded_paths:
|
||||
- 'Documentation/*'
|
||||
- 'Resources/JavaScript/*'
|
||||
paths:
|
||||
- 'Classes/*'
|
||||
tools:
|
||||
|
||||
php_cpd:
|
||||
enabled: true
|
||||
|
||||
php_code_sniffer:
|
||||
enabled: true
|
||||
config:
|
||||
standard: TYPO3CMS
|
||||
|
||||
php_hhvm:
|
||||
enabled: true
|
||||
config:
|
||||
use_undeclared_constant: false
|
||||
|
||||
php_mess_detector:
|
||||
enabled: true
|
||||
config:
|
||||
controversial_rules:
|
||||
superglobals: false
|
||||
|
||||
php_pdepend:
|
||||
enabled: true
|
||||
|
||||
php_analyzer:
|
||||
enabled: true
|
40
Classes/Command/IndexCommandController.php
Normal file
40
Classes/Command/IndexCommandController.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
namespace Leonmrni\SearchCore\Command;
|
||||
|
||||
/*
|
||||
* Copyright (C) 2016 Daniel Siepmann <coding@daniel-siepmann.de>
|
||||
*
|
||||
* This program 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 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
use TYPO3\CMS\Extbase\Mvc\Controller\CommandController;
|
||||
|
||||
/**
|
||||
* Command controller to provide indexing through CLI.
|
||||
*/
|
||||
class IndexCommandController extends CommandController
|
||||
{
|
||||
/**
|
||||
* Will index the given table or everything.
|
||||
*
|
||||
* @param string $table
|
||||
*/
|
||||
public function indexCommand($table)
|
||||
{
|
||||
// TODO: Allow to index multiple tables at once?
|
||||
// TODO: Also allow to index everything?
|
||||
}
|
||||
}
|
|
@ -9,11 +9,23 @@
|
|||
"Leonmrni\\SearchCore\\": "Classes"
|
||||
}
|
||||
},
|
||||
"require" : {
|
||||
"php": ">=5.6.0",
|
||||
"typo3/cms": ">=6.2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": ">=4.8.0 <6.0.0"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Justus Leon Moroni",
|
||||
"email": "developer@leonmrni.com",
|
||||
"role": "lead"
|
||||
},
|
||||
{
|
||||
"name": "Daniel Siepmann",
|
||||
"email": "coding@daniel-siepmann.de",
|
||||
"role": "developer"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -6,8 +6,8 @@ $EM_CONF[$_EXTKEY] = [
|
|||
'category' => 'be',
|
||||
'constraints' => [
|
||||
'depends' => [
|
||||
'typo3' => '7.6.2-8.99.99',
|
||||
'php' => '7.0.0-7.99.99'
|
||||
'typo3' => '6.2.0-8.99.99',
|
||||
'php' => '5.6.0-7.99.99'
|
||||
],
|
||||
'conflicts' => [],
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue