Coder Social home page Coder Social logo

Comments (8)

rrrene avatar rrrene commented on August 16, 2024

Yeah, I have a suspicion. Will get back to you!

from inchjs.

rrrene avatar rrrene commented on August 16, 2024

Should work now with v0.2.0. Could you check again?

If you have any suggestions/questions regarding Inch's evaluation, please do not hesitate to post them here!

from inchjs.

FGRibreau avatar FGRibreau commented on August 16, 2024

@rrrene Indeed, it works now, thanks!
I plan to include inchjs to check-build, that's why I'm currently testing it :)

from inchjs.

rrrene avatar rrrene commented on August 16, 2024

Sounds fantastic! If I can be of any help, just let me know.

from inchjs.

FGRibreau avatar FGRibreau commented on August 16, 2024

Hum, just looked at the code, @rrrene could you expose the internal library as a NodeJS API (and document it ?) ?

So I will be able to create an interface for check-build that will allow users to fail a build if at least X files are undocumented or that some files have a C grades.

from inchjs.

rrrene avatar rrrene commented on August 16, 2024

@FGRibreau A NodeJS API sounds like a good idea. Unfortunately, I have a lot on my plate right now, so I'm not sure how long this will take.

You could, however, parse the output of inchjs stats --format=json for now. What do you think?

from inchjs.

FGRibreau avatar FGRibreau commented on August 16, 2024

@rrrene yes, I could start with that.

  • What would be good defaults for inchjs ? Stop the build if C > 0 ?

From the above output:

{
  "grade_lists": {
    "A": 0,
    "B": 1,
    "C": 0,
    "U": 7
  },
  "scores": {
    "0": 7,
    "50": 1
  },
  "priorities": {
    "1": 8
  }
}
  • What does mean priorities ? ... and scores ?
  • Could inchjs output file names along each grade as well ?

from inchjs.

rrrene avatar rrrene commented on August 16, 2024

I am afraid that is a question only you can answer.

One idea: U should be below 90%, alas 10% of code should be documented. This would not set the bar very high. The question is how good the average project in NodeJS is documented. Maybe I am mistaken, but I got the impression that inline code-documentation is not that high a priority in Node projects.

Re: Scores and priorities -- Scores are points given for the present documentation. They determine the grades. Priorities determine how badly a code object should be documented (> 0 means it should be).

from inchjs.

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.