ytetsuro/sabik
ytetsuro/sabik has 46 GitHub stars and 6 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-13 05:53 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.
实测星标增长
- 24小时
- 0
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文This 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.
探索相关项目
Asabeneh/30-Days-Of-Python
30 Days of Python 编程挑战是一份循序渐进的指南,用于在 30 天内学习 Python 编程语言。这项挑战可能需要超过 100 天。请按自己的节奏进行。这些视频或许也有帮助:https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,673 星标grafana/grafana
开放且可组合的可观测性与数据可视化平台。可对来自 Prometheus、Loki、Elasticsearch、InfluxDB、Postgres 等众多数据源的指标、日志和追踪进行可视化。
77,876 星标redis/redis
对于正在构建实时数据驱动应用的开发者而言,Redis 是首选、速度最快且功能最丰富的缓存、数据结构服务器和文档与向量查询引擎。
77,485 星标apache/superset
Apache Superset 是一个数据可视化与数据探索平台
75,509 星标