Giter Club home page Giter Club logo

Comments (5)

danielstjules avatar danielstjules commented on May 18, 2024

Thanks for the suggestion! What kind of tools are you planing on using for consuming this type of report? I'm assuming you wouldn't be reading it directly, as it doesn't seem very friendly:

When an error is spread over several files, you can use this format:

file1:line1.column1-file2:line2.column2: message

That means a single match, with 4 instances, would end up looking like:

spec/fixtures/intersection.js:1:5-spec/fixtures/intersection.js:7:11-spec/fixtures/intersection.js:1:5-spec/fixtures/indentation.js:7:11

And that's without showing a diff, which I don't think would fit this format very well. Anything that consumes it would break if the diff'ed source contained a line that looked like the above output. It would have to be escaped to accommodate the format, and given that the standard doesn't mention it, I think I'd be abusing it. What are your thoughts?

from jsinspect.

paazmaya avatar paazmaya commented on May 18, 2024

Perhaps for this format the diff would not be even shown, as whatever tool would then be used the parse the given error string, it could highlight it separately from the file.

This is an effort to unify the possible output formats by the tools I am using via Jenkins, so that I could possibly use same report parser.

from jsinspect.

danielstjules avatar danielstjules commented on May 18, 2024

In that case, couldn't you use the PMD reporter? #8

from jsinspect.

danielstjules avatar danielstjules commented on May 18, 2024

ping @paazmaya :) While the PMD reporter wouldn't be useful for unifying the output from all your tools, it would provide you something that's already usable with Jenkins

from jsinspect.

paazmaya avatar paazmaya commented on May 18, 2024

Hi, thanks for the pointer. It would be doable with PMD.

from jsinspect.

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.