Skip to content

Commit

Permalink
update (#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
gennadigennadigennadi authored Oct 28, 2024
1 parent d4f13c4 commit 45019af
Show file tree
Hide file tree
Showing 35 changed files with 827 additions and 575 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# we need the vendor
composer.lock

Binary file modified deptrac.phar
Binary file not shown.
15 changes: 11 additions & 4 deletions deptrac.phar.asc
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQRXy1VvJC/I1P1IPCxHQ2WH2CxKOQUCZnAQ3gAKCRBHQ2WH2CxK
OREVAP9kTtty0zT2p+l3eA644ufQh2AT1buH/tiIPVhvhJjvYwEAute+r0SWwYXD
g1LTd6YrkUI2Go0/csXepnMXjAhSOQY=
=RE4V
iQGzBAABCAAdFiEEl06QM0FNfyvJ/h5q1PBultG9A3sFAmcd+R4ACgkQ1PBultG9
A3s3PAv5AZN4ttFoX9Jmxae+M+dNZMFXXAwXrOIKaD5dWjaFBlTxJDxStmTMfajU
Dfbc9kJ+0O9KEB7fWWTUy+3hBYuF/pnSY2XM/tDEBwl/jgdIcYLiuxhyTbD8BX74
TIEk3Si7XiXFwK8R21IakzhMxvboy6JnTOqSd9v7ms2+CwsJX3wzTd+m9QUG1U2V
lDwHinNcuM2WCfv65SbvPgs7ZPteJl8oEyn5OzDrAW3HGzgA4OWN+dJbOZCO1gJ8
RgO3DiTA3bUUbxLG+sQj9bbWYMejuYXkzINB87NcF4hVz+cJjWq4C5I+Nwd7cVHa
4z1UdCG4F6g0GrWpIzLSYZajLPuy4Ihzj+M/qOx1niB151R72rOhswgpwGFgpfQe
NgThneleCDbmjOs93vzrJknbU4SHksvV3lQaADM6uft5behWxI1tEVJm2uWN4h/L
mhr71elV/vszQ7WSh2NK3KtbFyqsggmDeTEQmOSiQcMZqgbukB9LSoN6WqQZOls0
wrOKTdTl
=iiMr
-----END PGP SIGNATURE-----
12 changes: 12 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ your merge request can be accepted.
- [Composer](https://getcomposer.org/)
- `make`

### Using Docker Compose

If preferred, you can use Docker to get a development environment up and
running quickly.

- [Install Docker](https://www.docker.com/get-started/)
- Run `docker compose run deptrac`

This will build and run a local Docker image with all the necessary system
dependencies. You can now run all the following commands from within the
container.

## Installing tools

You can install all tools needed for developing Deptrac using the Makefile by
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Analyser/EventHandler/DependsOnPrivateLayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function invoke(ProcessEvent $event) : void
{
$ruleset = $event->getResult();
foreach ($event->dependentLayers as $dependentLayer => $isPublic) {
if ($event->dependerLayer === $dependentLayer && !$isPublic) {
if ($event->dependerLayer !== $dependentLayer && !$isPublic) {
$this->eventHelper->addSkippableViolation($event, $ruleset, $dependentLayer, $this);
$event->stopPropagation();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/InputCollector/FileInputCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function collect() : array
if ([] === $this->paths) {
throw new LogicException("No 'paths' defined in the depfile.");
}
$finder = (new Finder())->in($this->paths)->name('*.php')->files()->followLinks()->ignoreUnreadableDirs()->ignoreVCS(\true)->notPath($this->excludedFilePatterns);
$finder = (new Finder())->in($this->paths)->name('*.php')->files()->followLinks()->ignoreUnreadableDirs()->ignoreVCS(\true)->notPath($this->excludedFilePatterns)->sortByName();
$customFilterIterator = $finder->getIterator();
} catch (LogicException|DirectoryNotFoundException $exception) {
throw \Qossmic\Deptrac\Core\InputCollector\InputException::couldNotCollectFiles($exception);
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit43a2f2bbed0bd4647a8890f0d59d6db7::getLoader();
return ComposerAutoloaderInit4c0225d140d6fa7b3927f918d3be06ee::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit43a2f2bbed0bd4647a8890f0d59d6db7
class ComposerAutoloaderInit4c0225d140d6fa7b3927f918d3be06ee
{
private static $loader;

Expand All @@ -24,17 +24,17 @@ public static function getLoader()

require __DIR__ . '/platform_check.php';

spl_autoload_register(array('ComposerAutoloaderInit43a2f2bbed0bd4647a8890f0d59d6db7', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit4c0225d140d6fa7b3927f918d3be06ee', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit43a2f2bbed0bd4647a8890f0d59d6db7', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit4c0225d140d6fa7b3927f918d3be06ee', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit43a2f2bbed0bd4647a8890f0d59d6db7::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit4c0225d140d6fa7b3927f918d3be06ee::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInit43a2f2bbed0bd4647a8890f0d59d6db7::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit4c0225d140d6fa7b3927f918d3be06ee::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit43a2f2bbed0bd4647a8890f0d59d6db7
class ComposerStaticInit4c0225d140d6fa7b3927f918d3be06ee
{
public static $files = array (
'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
Expand Down Expand Up @@ -1349,9 +1349,9 @@ class ComposerStaticInit43a2f2bbed0bd4647a8890f0d59d6db7
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit43a2f2bbed0bd4647a8890f0d59d6db7::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit43a2f2bbed0bd4647a8890f0d59d6db7::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit43a2f2bbed0bd4647a8890f0d59d6db7::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit4c0225d140d6fa7b3927f918d3be06ee::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit4c0225d140d6fa7b3927f918d3be06ee::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit4c0225d140d6fa7b3927f918d3be06ee::$classMap;

}, null, ClassLoader::class);
}
Expand Down
Loading

0 comments on commit 45019af

Please sign in to comment.