(aka coconut, juice), an automatic DevOps metrics analysis tool.
case studies: Coco cases
Online Demos:
OS: macOS, Windows, GNU/Linux
coco init
to generate config filecoco.yml
coco plugins
to download pluginscoco
, gather data from sourcevisual
, visualization of datasuggest
, generate suggestionvisual URL:
Offline usage:
coco
, visual
e``xec filecoco_plugins_xxxx
with platformcoco_plugins_xxxx
to plugins
dircoco 0.5.3
USAGE:
coco [OPTIONS] [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-b, --branches <branches> With all branches [default: true]
--commits <commits> With all commits [default: true]
-c, --config-file <config-file> Config file .yml [default: coco.yml]
-d, --debug <debug> Debug mode [default: false]
-f, --file-history <file-history> Scan file change list from git & cloc [default: false]
-y, --git-years <git-years> Set git commits scan years, default 1, [default: 1.0]
-t, --tags <tags> With all tags [default: true]
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
init Create default coco.yml files
plugins Download plugins from GitHub
sample:
coco --file-history=true --git-years=3
示例:
# 代码库
repos:
- url: https://github.com/coco-rs/coco.fixtures
- url: https://github.com/coco-rs/coco.fixtures2
- url: .
languages: [Rust]
- url: https://github.com/datum-lang/scie
- url: https://github.com/projectfluent/fluent-rs
languages: [Rust, JavaScript] # set languages for struct analysis
plugins:
- name: swagger
- name: struct
config:
- key: ctags # set location for macOS ctags path
value: /usr/local/bin/ctags
git:
local: true # true will use `git clone`, false will use libgit2
See in DEVELOPMENT.md
Bilibili: 研发效能分析工具 Coco 第一次线上讨论
analysis
reporter
include_parser/mod.rs
light_server.rs
visual.rs
, coco.rs
, suggest.rs
Visual and Reporter
DevOps pipeline
Tech Debt Integration
Refs: Libgit2 Documents
Download Coco to your Mac from release
Move it(Coco) to your preferred directory,such as:
mkdir ~/.coco
mv ~/Downloads/coco_macos ~/.coco/
Set up an alias to make it easier to use,such as:
export 'alias coco="~/.coco/coco_macos"' >> ~/.zshrc
Try to use execute it by alias coco
:
coco -h
If it show no permission,you can execute the following command:
chmod -R u=rwx,g=rw,o=r ~/.coco/coco_macos
Then retry:
coco -h
Good luck!
ctags analysis based on https://github.com/dalance/ptags with MIT, see in src
ctags parser rewrite from Golang's https://github.com/ruben2020/tags2uml with Apache License.
@ 2020~2021 This code is distributed under the MIT license. See LICENSE
in this directory.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型