Giter VIP home page Giter VIP logo

Comments (4)

karthikeyan-manivasagam avatar karthikeyan-manivasagam commented on July 22, 2024

Pl add usage

from code-insight.

aik099 avatar aik099 commented on July 22, 2024

Is there any specific topic I can help you with?

Each of CLI commands has help on all arguments/options and there is sample config file in README.md. This should be enough to get started unless I've missed something?

from code-insight.

karthikeyan-manivasagam avatar karthikeyan-manivasagam commented on July 22, 2024

Hi Alex,

Yes I need to use it in projects as code reviewer, Please share any documentation of usage, I have cloned the repo in my local machine,

Thank you for your quick response

from code-insight.

aik099 avatar aik099 commented on July 22, 2024

Any specific commands you're interested it?

I personally use combination of sync and bc commands. The sync commands scans project code and builds database from it. And the bc command is able to compare 2 given scans and show if new version has introduced any BC breaks.

  1. It it designed to work as PHAR file and I was supposed to create PHAR on next release. Since no release happened yet no PHAR is available. Luckily if you have Box installed (see https://github.com/box-project/box2), then inside cloned repo (of Code Insight repo) you can run box build and that will create code-inside.phar file in the build folder (if it doesn't then please create empty build folder yourself and rerun box build).
  2. Copy the code-insight.phar somewhere in PATH.
  3. Go to project folder you want to scan.
  4. Create .code-insight.json file (specify where source code is and what autoloader to use).
  5. Run the code-insight.phar sync command to create DB for initial code version.

From this point you have 2 options on how to get BC break report:

Option 1:

  1. have old a new codebase in different folders, where a .code-insight.json file
  2. go to project folder with changes
  3. run code-insight.phar bc old_folder

Option 2

  1. have single folder with codebase
  2. go to project folder
  3. before making changes run code-insight.phar sync command
  4. after making changes run code-insight.phar sync --project-fork "with-changes" (the with-changes is name to indicate your changes used later)
  5. run code-insight.phar bc --target-project-fork "with-changes"

Then you should see if you've introduced any breaks.

from code-insight.

Related Issues (20)

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.