archpolisher

0.0.0-concept.24 • Public • Published

🍰 archpolisher

WIP: At the moment at work - use carefully

(C) KPFU ITIS diploma work 2022

Architecture analyze toolkit

  • calculate architectural metrics (Instability & Abstractness)
  • clusterize modules and search architectural issues
  • provides interactive UI with issues details

screen-ui

Get Started

  1. Setup user config .archpolisherrc

    {
        /** modules | files */
        "strategy": "modules",
        /** Analysis options (files filter, module graph rollout depth) */
        "analyzer": {
            "extensions": ["tsx", "ts", "jsx", "js"],
            "abstractnessDepth": 5,
            "root": "./src/index.ts",
        },
        /** Clustering options (neares neighbours num and neighbours nums) */
        "clustering": {
            "neighNum": 1,
            "neighRadius": 0.05
            "spread": 0.00,
            "withFSDist": true,
        },
        /** Refactor options (dists, ui) */
        "refactorer": {
            "onlyIssues": false,
            "minDist": 1,
            "minDiff": 3,
        },
    }
  2. Run toolkit

    $ npx archpolisher

Dependencies (4)

Dev Dependencies (18)

Package Sidebar

Install

npm i archpolisher

Weekly Downloads

12

Version

0.0.0-concept.24

License

MIT

Unpacked Size

82.3 kB

Total Files

16

Last publish

Collaborators

  • martis