Git Product home page Git Product logo

Comments (4)

jcberquist avatar jcberquist commented on July 21, 2024 2

This is now out in v0.10.0. Note: in order to convince CommandBox to update to that version you will either need to uninstall and then reinstall - or explicitly install that version. @bdw429s pointed out to me that with semver minor version bumps with a major version of 0 are treated as major version updates and so are not automatic upgrades.

from commandbox-cfformat.

jcberquist avatar jcberquist commented on July 21, 2024 1

I have been working on this. I took a look at what prettier does with JS files and it looks to me like it renders block comments as is, unless every line starts with a *, in which case it aligns the lines on the *'s. So my current plan is to create a new settings for this sort of alignment: https://github.com/jcberquist/commandbox-cfformat/blob/master/reference.md#commentasterisks

By default it will copy prettier and align all lines on the *, but you can disable this if you want. Absent the leading asterisks, comments should be renderered as is without being reformatted.

from commandbox-cfformat.

jcberquist avatar jcberquist commented on July 21, 2024

Thanks for raising the issue. If and how to format comments is something I have been unsure about. So it is helpful to see this issue - may I ask what doc-block extension you use? I wonder if I should just switch doc comments to be formatted the way you have, make it an option, or just leave them untouched.

from commandbox-cfformat.

renkejr-pkwy avatar renkejr-pkwy commented on July 21, 2024

The extension is Document This. I tried a couple of other extension as well. The extensions all work until the document gets reformatted. I then have to add the extra leading space or delete the comment if I want make any changes.

Not a big deal but, in general, I'd prefer comments don't get reformatted anyway.

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.