Coder Social home page Coder Social logo

dzunke / panaly-files Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 20 KB

A Panaly plugin to collect metrics of the filesystem

Home Page: https://github.com/DZunke/panaly

License: MIT License

Makefile 5.47% PHP 94.14% JavaScript 0.40%
filesystem metrics panaly php quality

panaly-files's Introduction

Panaly - Project Analyzer - Filesystem Plugin

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.

Option Description
paths The paths will be combined to a single count

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.

Option Description
paths (Required) Array - The paths will be combined to a single count.
names (Optional) Array - A filter for the names of the files, the possible values are defined by the Finder component of symfony.

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.

Option Description
paths (Required) Array - The paths will be combined to a single count.
names (Optional) Array - A filter for the names of the files, the possible values are defined by the Finder component of symfony.
amount (Optional) Integer Default: 5 - The amount of files that should be listed in the result.

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

panaly-files's People

Contributors

dzunke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.