Giter Site home page Giter Site logo

Comments (5)

kisstkondoros avatar kisstkondoros commented on July 22, 2024 1

So here it is: https://github.com/kisstkondoros/tsmetrics-webpack-plugin
Also as an npm package: https://www.npmjs.com/package/tsmetrics-webpack-plugin

I'm closing this issue now, but feel free to open new ones in the linked repo 🎆

from codemetrics.

kisstkondoros avatar kisstkondoros commented on July 22, 2024

At the moment no, however one can build a webpack plugin using tsmetrics-core.

I can not support You with that now, but I'll come back to this request in about a week or two (I'll be offline for some days).

from codemetrics.

kisstkondoros avatar kisstkondoros commented on July 22, 2024

So finally I had some hours trying a few things out:

  • running codemetrics on all files in the workspace is not possible at the moment, and even if it would run it would just populate the "problems view", I see not much benefit for this
  • writing an es/ts linter plugin is a nice idea, I might try it later on, but it seems to be complicated at the first glance
  • webpack plugin, with this one I've messed around, I was wondering about publish it on npm, but at the moment it does not adds any value to the development process I think. Even if You integrate it in Your build, what's the benefit? Do you have an idea what should it do in addition? Highlight problematic files or parts of files? IDK
    https://gist.github.com/kisstkondoros/ad1cc7d385abcbf824cf63b3f54476f2

from codemetrics.

pmunin avatar pmunin commented on July 22, 2024

Well the purpose of this tool would be similar to any other linter - quality control of the code on compilation time. So an output should contain, all code pointers to where code is too complicated. Config should allow to set threshold of levels of complexity and prefilter output based on those levels.

from codemetrics.

kisstkondoros avatar kisstkondoros commented on July 22, 2024

Well, that's fair enough, but sometimes it's ok that something is complicated (high complexity) and showing it always might get annoying. I'll publish the existing stuff to npm with the suggested additional filtering options. I'll post a link here of the new repo and we can iterate over the idea further there :-)

from codemetrics.

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.