GithubHelp home page GithubHelp logo

yangzexu / coco Goto Github PK

View Code? Open in Web Editor NEW

This project forked from inherd/coco

0.0 1.0 0.0 338 KB

Coco 是一个研发效能分析工具,如开发速率(根据架构复杂度及行数变更)、团队演进、历史分析、根因分析等。生成可视化报告,及对应的改进建议。 an effective DevOps analysis and auto-suggest tool.

Home Page: https://inherd.github.io/coco/

Rust 69.25% Java 0.51% HTML 2.14% JavaScript 28.10%

coco's Introduction

Coco

Coco Build

(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
  • branch lifecycle and visual
  • cloud-native analysis
  • team health analysis
  • graph visual and reporter
  • multiple-repo parallel

Usage

  1. create coco.yml in projects.
  2. config coco.yml
  3. 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

Config

Development

IDE: Clion (Recommended) / IntelliJ + IntelliJ Rust plugin

Rust: Verison >= 1.49.0

If you already have older version installed ,please update Rust version by:

rustup update

Setup

1.install Rust

follow https://www.rust-lang.org/tools/install

2.install justfile

follow: https://github.com/casey/just

3.Run tests

just tests

4.test Command

cargo run --bin coco

Setup for Windows Subsystem for Linux (Debian)

  1. install rust
apt-get install curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. install just
cargo install just
  1. install dependency package
sudo apt-get install gcc cmake g++ pkg-config libssl-dev 
sudo apt-get install libfreetype6-dev expat libxml2 libasound2-dev libexpat1-dev libxcb-composite0-dev
  1. Run tests
just tests

Setup for macOS with HomeBrew

  1. install rust
brew install rustup
rustup-init

restart shell,or execute source $HOME/.cargo/env

  1. install just
brew install just

3.Run tests

just tests

Architecture

Architecture

third-party libs:

  • libgit2, git api
  • tokei, cloc api

Contribute

we need you coding in TDD. You can use this repo to learn TDD : rust-fizzbuzz

Documents

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

Todo

  • git analysis
    • merge code from coca
    • local repo support
  • git tag analysis
    • git branch analysis
      • branch history
    • git commit time analysis
      • storage all commits
        • light database?
        • light RESTful API?
      • working night count
  • cloc analysis
    • spike cloc tools Tokei
    • history cloc changes
    • commit cloc changes
  • 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
  • team analysis
    • join time & life time
    • member growth
    • count system size & learning curve
  • 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

Visual and Reporter

  • visual
    • spike d3.js code organization
    • typescript with frontend framework
      • use deno ?
    • static files server
    • architecture
    • git
      • branch history demo
    • commits in years/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

Documents

Refs: Libgit2 Documents

License

Phodal's Idea

@ 2020~2021 A Phodal Huang's Idea. This code is distributed under the MIT license. See LICENSE in this directory.

coco's People

Contributors

phodal avatar jtong avatar eliot00 avatar hexf00 avatar shane51 avatar ynfeng avatar gityoog avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.