diff --git a/.gitignore b/.gitignore index 1d7c1f1..7611b7c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /.phpunit.cache/ +/tmp/ /vendor/ .phpcs-cache .project-analyzer-cache diff --git a/README.md b/README.md index ab823d4..da6bf78 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ config file with the CLI Command like `vendor/bin/panaly -c my-own-config.yaml`. panaly.dist.yaml ```yaml +# panaly.dist.yaml plugins: # Registered plugins that deliver single metrics that could be utilized for metric groups Namespace/Of/The/Project/FilesystemPlugin: ~ # registers a "filesystem_directory_count" and a "fielsystem_file_count" metric Namespace/Of/Another/Project/PHPStanBaselinePlugin: ~ # registers a simple "phpstan_baseline_total_count" metric diff --git a/composer.json b/composer.json index 7052d36..71da2df 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,6 @@ ], "require": { "php": "^8.2", - "psr/log": "^3.0", "symfony/console": "^7.0", "symfony/event-dispatcher": "^7.0", "symfony/yaml": "^7.0" @@ -40,6 +39,8 @@ "require-dev": { "doctrine/coding-standard": "^12.0", "dzunke/panaly-files": "dev-main", + "dzunke/panaly-json-timeline-storage": "dev-main", + "dzunke/panaly-markdown-report": "dev-main", "dzunke/panaly-symfony-dump": "dev-main", "phpstan/phpstan": "^1.10", "phpstan/phpstan-deprecation-rules": "^1.1", diff --git a/panaly b/panaly index c5cb665..e214504 100755 --- a/panaly +++ b/panaly @@ -45,8 +45,6 @@ include $_composer_autoload_path ?? __DIR__ . '/vendor/autoload.php'; // Give the possibility to change the runtime configuration before the metric collection starts $runtimeConfiguration->getEventDispatcher()->dispatch(new RuntimeLoaded($runtimeConfiguration)); - // TODO: Add a validation thingy here ... so the full configuration file is validated against the now existing runtime - // Execute the metric collection to get a result of all configured collection results $collectionResult = (new Collector($configurationFile, $runtimeConfiguration))->collect(); diff --git a/panaly.dist.yaml b/panaly.dist.yaml index 16582f4..fd22859 100644 --- a/panaly.dist.yaml +++ b/panaly.dist.yaml @@ -1,6 +1,8 @@ plugins: DZunke\PanalyFiles\FilesPlugin: ~ + DZunke\PanalyJsonTimelineStorage\JsonTimelineStoragePlugin: ~ DZunke\PanalySymfonyDump\SymfonyDumpPlugin: ~ + DZunke\PanalyMarkdownReport\MarkdownPlugin: ~ groups: filesystem: @@ -24,5 +26,12 @@ groups: names: - "*.php" +storage: + json-timeline-storage: + directory: "./tmp/panaly-timeline-storage" + dateFormat: "Y-m-d" + reporting: symfony_dump: ~ + markdown: + targetFile: "./tmp/my-markdown-report.md"