dzunke/panaly-files

A Panaly plugin that is analyzing a set of folders for their filesystem structure

dev-main 2024-08-13 18:02 UTC

This package is auto-updated.

Last update: 2024-12-13 18:44:16 UTC


README

The plugin to the Panaly Project Analyzer enables metrics that can be utilized to collect data about the filesystem of a project. It will not access any tooling but utilizes the Symfony Finder Component.

Available Metrics

Directory Count

The directory count with the name directory_count gives an Integer result with the count of found directories. The following options are available for the metric.

File Count

The file count with the name file_count gives an Integer result with the count of found directories. The following options are available for the metric.

Largest Files

The metric with the name largest_files is able to list the largest files that are given within the paths. The Listing could also be filtered by a name and so will just return the largest files of specific filters like with the file count. The resulting metric is of type Table with the columns file and size.

Example Configuration

# panaly.dist.yaml
plugins:
    DZunke\PanalyFiles\FilesPlugin: ~ # no options available

groups:
    filesystem:
        title: "Filesystem Metrics"
        metrics:
            file_count:
                title: All Project Files
                paths:
                    - src
            file_count_php:
                title: PHP Files
                metric: file_count
                paths:
                    - src
                    - tests
                names:
                    - "*.php"
            directory_count:
                title: Test Directories
                paths:
                    - tests
            largest_php_files:
                title: Largest PHP Files
                metric: largest_files
                amount: 3
                paths:
                    - src
                    - tests
                names:
                    - "*.php"

Thanks and License

Panaly Project Analyzer - Filesystem Plugin © 2024+, Denis Zunke. Released utilizing the MIT License.

GitHub @dzunke  ·  Twitter @DZunke