Skip to content
This repository was archived by the owner on May 25, 2020. It is now read-only.

Commit c805e59

Browse files
author
SmetDenis
committed
copyrights
1 parent f793531 commit c805e59

File tree

3 files changed

+55
-18
lines changed

3 files changed

+55
-18
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
"autoload": {
2222
"psr-4": {
23-
"JBZoo\\ComposerCleanup\\": "src"
23+
"JBZoo\\Composer\\Cleanup\\": "src"
2424
}
2525
},
2626

2727
"extra": {
28-
"class": "JBZoo\\ComposerCleanup\\CleanupPlugin"
28+
"class": "JBZoo\\Composer\\Cleanup\\Plugin"
2929
}
3030
}
Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
<?php
2+
/**
3+
* JBZoo Composer Cleanup Plugin
4+
*
5+
* This file is part of the JBZoo CCK package.
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*
9+
* @package JBZoo\Composer\Cleanup
10+
* @license MIT
11+
* @copyright Copyright (C) JBZoo.com, All rights reserved.
12+
* @link https://github.com/JBZoo/Composer-Cleanup
13+
* @author Denis Smetannikov <denis@jbzoo.com>
14+
*/
215

3-
namespace JBZoo\ComposerCleanup;
16+
namespace JBZoo\Composer\Cleanup;
417

518
use Composer\Composer;
619
use Composer\EventDispatcher\EventSubscriberInterface;
@@ -13,10 +26,10 @@
1326
use Composer\Package\BasePackage;
1427

1528
/**
16-
* Class CleanupPlugin
17-
* @package JBZoo\ComposerCleanup
29+
* Class Plugin
30+
* @package JBZoo\Composer\Cleanup
1831
*/
19-
class CleanupPlugin implements PluginInterface, EventSubscriberInterface
32+
class Plugin implements PluginInterface, EventSubscriberInterface
2033
{
2134
/**
2235
* @var \Composer\Composer $composer
Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11
<?php
2+
/**
3+
* JBZoo Composer Cleanup Plugin
4+
*
5+
* This file is part of the JBZoo CCK package.
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*
9+
* @package JBZoo\Composer\Cleanup
10+
* @license MIT
11+
* @copyright Copyright (C) JBZoo.com, All rights reserved.
12+
* @link https://github.com/JBZoo/Composer-Cleanup
13+
* @author Denis Smetannikov <denis@jbzoo.com>
14+
*/
215

3-
namespace JBZoo\ComposerCleanup;
16+
namespace JBZoo\Composer\Cleanup;
417

518
/**
6-
* Class CleanupRules
7-
* @package JBZoo\ComposerCleanup
19+
* Class Rules
20+
* @package JBZoo\Composer\Cleanup
821
*/
9-
class CleanupRules
22+
class Rules
1023
{
24+
/**
25+
* Rule list
26+
* @return array
27+
*/
1128
public static function getRules()
1229
{
1330
// Default patterns for common files
@@ -29,30 +46,37 @@ public static function getRules()
2946
);
3047

3148
$tests = array(
32-
'.idea',
33-
'.git',
3449
'.travis.yml',
3550
'.scrutinizer.yml',
51+
'.codeclimate.yml',
52+
3653
'phpunit.xml*',
3754
'phpunit.php',
55+
3856
'test',
3957
'tests',
4058
'Tests',
59+
4160
'travis',
42-
'.codeclimate.yml',
43-
'.gitignore',
61+
4462
'demo.php',
4563
'test.php',
4664
);
4765

66+
$system = array(
67+
'.gitignore',
68+
'.idea',
69+
'.git',
70+
);
71+
4872
return array(
4973
// JBZoo pack
50-
'jbzoo/data' => array($docs, $tests),
51-
'jbzoo/sqlbuilder' => array($docs, $tests),
52-
'jbzoo/simpletypes' => array($docs, $tests),
74+
'jbzoo/data' => array($docs, $tests, $system),
75+
'jbzoo/sqlbuilder' => array($docs, $tests, $system),
76+
'jbzoo/simpletypes' => array($docs, $tests, $system),
5377

5478
// Others
55-
'symfony/yaml' => array($docs, $tests),
79+
'symfony/yaml' => array($docs, $tests, $system),
5680
);
5781
}
5882

0 commit comments

Comments
 (0)