Git Product home page Git Product logo

Comments (6)

scottsteinbeck avatar scottsteinbeck commented on August 23, 2024 1

Your awesome @jcberquist! Thank You!

from commandbox-cfformat.

jcberquist avatar jcberquist commented on August 23, 2024 1

I added a settings "method_call.chain.multiline": 3 (default) - the number determines at what method chain length the method calls will always be broken on to multiple lines.

from commandbox-cfformat.

jcberquist avatar jcberquist commented on August 23, 2024

This is currently hard coded to print on one line if there are less than three method calls in the chain (and if it fits in the specified line column limit and there are no newlines in the output from other sources). At three or more method calls in the chain, it will always print each call on a new line. I was trying to copy what prettier does - but I am open to this being more flexible.

from commandbox-cfformat.

scottsteinbeck avatar scottsteinbeck commented on August 23, 2024

Oh, I didn't realize that it worked that way. For my use case, I think it works the way it is. If you did want to add a max method length, that would be awesome!

from commandbox-cfformat.

jcberquist avatar jcberquist commented on August 23, 2024

@scottsteinbeck Sorry for the delay in getting back to you. When you say "max method length", what are you thinking of there? Do you mean max length on a single line? Or max method count in the chain?

from commandbox-cfformat.

scottsteinbeck avatar scottsteinbeck commented on August 23, 2024

from commandbox-cfformat.

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.