GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CocaColf/coderfly: Find function-level association impacts of code changes

BranchesTags
Open more actions menu

Latest commit

 

History

31 Commits
31 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
docs
docs
 
 
src
src
 
 
.eslintignore
.eslintignore
 
 
.eslintrc
.eslintrc
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
copy_files.js
copy_files.js
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

English | 中文

coderfly

Find function-level association impacts of code changes.

Background

When you modify the code of a large project, it may not be very clear whether it will have an impact on the functionality.Our self-test may not be enough, and we need to search a lot of related code to determine the impact of the change. Wouldn't it save a lot of time and improve the quality of self-testing if there was a tool that could identify your changes and automatically find out what you affected by the change?

That's the problem this project is trying to solve.

It can analyze the changes of the function by the changes of the file.

function change

Then we analyze the impact of this function from the whole project. From the picture blow(a part of the result), we can see that this function is called by jumpToAppStore and affects the click event bound to a dom node of header.vue.

result

You can check how it works from here.

Install

This project is still under development and has not been published to the npm yet. So you can use the built files for now.

  • clone this project
  • yarn install
  • yarn build

Usage

Using the command line

coderfly check <folder path>

Options:

  • alias: Set path alias, alias and path should be linked with a colon. eg: coderfly check ./src -alias src:./src static:./public

  • t or tree: Export the file tree to a file, the file defaults to file_tree.json. eg: coderfly check ./src -t

Configuration file:

You can also write configuration file named .coderflyrc.js, mainly to simplify alias.

// .coderflyrc.js
const path = require('path');
module.exports = {
    'src': path.resolve(__dirname, 'test'),
    // ...
}

The results are written to the impact_report.json file in the directory where the command was executed

command line

Using the API

see the API or Example.

API

coderfly

The API for the complete process is included, use this for a one-step process.

Params

  • srcPath: string. It's source code folder path

Example

Easy to use

const { coderfly } = require('coderfly');

coderfly('./src');

Support

  • JavaScript
  • Vue2
  • TypeScript
  • Vue3

how it works

how it works

License

MIT License

About

Find function-level association impacts of code changes

Topics

code-quality-analyzerfunction-callgraphvue

Resources

Readme
Activity

Stars

17 stars

Watchers

1 watching

Forks

12 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.