File tree Expand file tree Collapse file tree 4 files changed +40
-0
lines changed Expand file tree Collapse file tree 4 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ $phpCodeSnifferConfig = array (
3
+ 'default_standard' => 'FireGento',
4
+ 'report_format' => 'summary',
5
+ 'show_warnings' => '0',
6
+ 'show_progress' => '1',
7
+ 'report_width' => '120',
8
+ 'installed_paths' => __DIR__.'/vendor/firegento/',
9
+ );
10
+
Original file line number Diff line number Diff line change 6
6
"type" :" composer-plugin" ,
7
7
"license" :" OSL-3.0" ,
8
8
"homepage" :" https://github.com/magento-hackathon/magento-composer-installer" ,
9
+ "repositories" : [
10
+ {
11
+ "type" : " vcs" ,
12
+ "url" :
" [email protected] :Flyingmana/phpcs.git"
13
+ }
14
+ ],
9
15
"authors" :[
10
16
{
11
17
"name" :" Daniel Fahlke aka Flyingmana" ,
39
45
"require-dev" :{
40
46
"phpunit/phpunit" :" *" ,
41
47
"phpunit/phpunit-mock-objects" : " dev-master" ,
48
+ "squizlabs/php_codesniffer" : " 1.4.7" ,
49
+ "firegento/phpcs" : " dev-patch-1" ,
42
50
"composer/composer" :" *@dev" ,
43
51
"symfony/process" :" *" ,
44
52
"mikey179/vfsStream" :" *"
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+ # needs to do
3
+ # cp /vendor/firegento/phpcs /vendor/firegento/FireGento
4
+ # before
5
+ ./vendor/bin/phpcs --standard=./vendor/firegento/FireGento -p ./src
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env php
2
+ <?php
3
+ die ('should not get used, only to experiment with stuff ' );
4
+ require_once __DIR__ . '/vendor/autoload.php ' ;
5
+
6
+ // 2.x release
7
+ //require __DIR__ . '/CodeSniffer.conf';
8
+ //$GLOBALS['PHP_CODESNIFFER_CONFIG_DATA'] = $phpCodeSnifferConfig;
9
+
10
+ if ( !is_link (__DIR__ .'/vendor/firegento/FireGento ' ) ){
11
+ symlink ( __DIR__ .'/vendor/firegento/phpcs ' , __DIR__ .'/vendor/firegento/FireGento ' );
12
+ }
13
+
14
+ #$tempSnifferObject = new PHP_CodeSniffer;
15
+ #$tempSnifferObject->setTokenListeners( __DIR__.'/vendor/firegento/phpcs');
16
+
17
+ require_once __DIR__ . '/vendor/bin/phpcs ' ;
You can’t perform that action at this time.
0 commit comments