Coder Social home page Coder Social logo

Comments (3)

Wilfred avatar Wilfred commented on June 12, 2024

I agree this is sometimes useful, but it's quite hard to do with an AST diff. It might fit into the patch mode I'm looking at right now, but overall this is lower priority right now I'm afraid.

from difftastic.

bmarwell avatar bmarwell commented on June 12, 2024

Thanks, and no worries... just consider it a request for enhanced.

from difftastic.

ctxnop avatar ctxnop commented on June 12, 2024

I also need this, as a reviewer I need to see diffs that are only style, because I want to spot a style deviation from coding rules, or trailing spaces, or mix or tab/spaces for indentations.

I do understand that it might be hard to do with an AST, but I would argue that it can be a 3 steps job:

  • first do the AST aware diff
  • then do a normal text diff (you might just use the venerable diff tool here)
  • both tools outputs as chunks, we should be able to merge both outputs. If a chunk is covered by both, just ouput the AST aware one.

from difftastic.

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.