Coco
(aka coconut, juice), an automatic DevOps metrics analysis tool.
Online Reporter Demo: https://inherd.github.io/coco/web/
Case Studies: Coco cases
特性(features in Chinese):
- 改进建议(英语)
- 框架检测与分析
- 云原生成熟度分析
- 项目健康值分析
- 图形可视化和报表生成
- 多项目并行分析
- 分支生命周期和可视化
features:
- automatic suggestion (online).
- framework detector and analysis
- branch lifecycle and visual
- cloud-native analysis
- team health analysis
- graph visual and reporter
- multiple-repo parallel
Usage
- create
coco.yml
in projects. - config
coco.yml
- run
coco
coco.yml
配置 (config in Chinese)
示例:
# 代码库
repo:
- url: https://github.com/coco-rs/coco.fixtures
- url: https://github.com/coco-rs/coco.fixtures2
# 提交信息格式
commit-message:
# default: conventional commit: (?<type>build)(?<scope>(?:\([^()\r\n]*\)|\()?(?<breaking>!)?)(?<subject>:.*)?
# jira: ^(feature|fix)\/(([a-z,A-Z]+))(-)(\d*)(:)([a-z,0–9])
# jira test case: feature/JIR-124:test commit message
regex: ^(feature|fix)\/(([a-z,A-Z]+))(-)(\d*)(:)([a-z,0–9])
matches:
- branch
- tag
- id
samples: feature/JIR-124:test commit message
Documents
Development
See in DEVELOPMENT.md
Online video
Bilibili: 研发效能分析工具 Coco 第一次线上讨论
Roadmap
analysis and reporter
analysis
- git analysis
- branch
- changes
- commits
- cloc analysis
- summary
- file arch
- framework analysis
- architecture analysis
- file/directory organization
reporter
- html reporter
- json output
- query api?
suggest and case study
Tech
- AST Parser:
include_parser/mod.rs
- Web Server:
light_server.rs
- CLI:
visual.rs
,coco.rs
,suggest.rs
Todo
- git analysis
- merge code from coca
- local repo support
- project calendar view https://observablehq.com/@d3/calendar-view
- git branch analysis
- branch history
- branch visual. such as https://app.gfc.io/github/nvie/gitflow
- ahead vs behind https://github.com/BenoitZugmeyer/git-branches-overview
- git commit time analysis
- storage all commits
- light database?
- light RESTful API?
- working night count
- storage all commits
- cloc analysis
- spike cloc tools Tokei
- history cloc changes
- commit cloc changes
- framework analysis.
- framework detector
- merge from scie-detector
- framework output
- tech stack generate
- cloud native
- dockerfile analysis
- module analysis
- base framework for directory
- gitignore support
- code flower
- include analysis
- code parser: pest
- languages support.
- base framework for directory
- team analysis
- join time & life time
- member growth
- count system size & learning curve
- micro services size
- commit analysis
- rule regex support in config
- participle(分词)
- tags generate
- suggestion API
- suggest to ledge
- suggest to coco.server ?
- online suggest
- link daily checking
- tools
- tools config identify
- tools suggest (identify old tools)
- cloud-native config
- third-party integration
- jenkins api analysis
- test coverage integration
- case study
- todo scan
- merge from coca
- multiple platform support
- macOS
- GNU/Linux
- Windows
- fix tests
- make it works
- C4 Model
- graphviz call chain
Visual and Reporter
- visual api
- static files server
- http server: actix_web
- static server: Rust Embed
- export assets
- cli prompt for projects
- query JSON API
- CLI JSON API
- static files server
- visual web
- spike d3.js code organization
- typescript with frontend framework
- use deno ?
- architecture
- first demo
- code flower, examples: Polyglot Code Explorer, D3.js code flower
- git
- branch history demo
- commits in years/month
- examples: gilot average committer in month
- changes in years/month
- graph support for velocity
- code commits by daily
- PR times by daily
- story velocity
- commit message analysis
- story spend days
- reporter
- framework
- cloc
- git
- architecture
DevOps pipeline
- Jenkinsfile of Coco's examples
Tech Debt Integration
- Integration Sonarqube ?
Documents
Refs: Libgit2 Documents
Thanks
License
@ 2020~2021 This code is distributed under the MIT license. See LICENSE
in this directory.