ytetsuro/sabik
ytetsuro/sabik has 46 GitHub stars and 6 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 11:44 UTC. Last push 2025-08-30.
Visualize source code complexity with Sabik. This tool is to find the bad smell code. I think your helpful refactoring.
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalThis project is under development.
Please feel free to PullRequest and Issue.
Visualize source code complexity with Sabik. This tool is to find the bad smell code. I think your helpful refactoring.
If you want to see what it looks like, click here.
Basic Using
Please use Node.js >= 14.
If you use Node.js 14 or less, please use version 0.2.0.
$ npx sabik /target/path
Local installation
If you felt sabik is slow, using local installation.
$ npm i -g sabik
Using sabik with local installed
$ sabik /target/path
Help
USAGE
$ sabik [TARGET]
OPTIONS
-h, --help show CLI help
-o, --outputReportPath=outputReportPath output report path.
For HTML, specify the directory, and for JSON, specify the file.
-t, --outputFormat=(HTML|JSON) [default: HTML] output report format. HTML or JSON. default: HTML
-v, --version show CLI version
--excludes=excludes [default: $^] exclude patterns. example: .test.ts$ .spec.ts$
--matches=matches [default: .*] match patterns. example: .ts$
Support Programming Language
- TypeScript
- JavaScript
- PHP
For now.
What analyzable metrics?
Sabik analyzable metrics are following.
- Cyclomatic Complexity
- Cognitive Complexity
- Halstead complexity measures
- Line of Code(Logical, Physical)
- Maintainability
For now.
Cyclomatic Complexity
Cyclomatic Complexity is metrics for linearly independent paths count. Made Thomas McCabe. High is bad, low is good metrics. Higher when your code has a deep nest. It’s very tiresome add test when over 8 scores. (In my experience)
If you want to know more about the detail, please see the following.
Cognitive Complexity
Cognitive Complexity is metrics for human readability. Made SonarSource inc. High is bad, low is good metrics. Higher when your code has a deep nest. It’s read very hard when over 8 scores. (In my experience)
If you want to know more about the detail, please see the following.
Halstead complexity measures
Halstead complexity measures are metrics for a difficulty to understand. Made Maurice Howard Halstead. High is bad, low is good metrics. Higher when your code has many responsibilities. These metrics are judge difficulty from vocabulary size, for example, the newspaper is difficult but, children's book is easy to understand.
If you want to know more about the detail, please see the following.
Line of Code(Logical, Physical)
Physical Line of Code is metrics for line count include comments. Logical Line of Code is metrics for line count ignored comments. High is bad, low is good metrics.
Maintainability
Maintainability is metric for software maintainability. Made Microsoft inc. Low is bad, High is good metrics. This metric ranges from 0 ~ 100. It’s maintenance hard when under 60 scores. (In my experience)
If you want to know more about the detail, please see the following.
License
Copyright (c) 2020 Tetsuro Yoshikawa Licensed under the MIT license.
Explore related projects
Asabeneh/30-Days-Of-Python
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,370 starsgrafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
77,763 starsredis/redis
For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
77,288 starsapache/superset
Apache Superset is a Data Visualization and Data Exploration Platform
75,453 stars