Giter Site home page Giter Site logo

improvement in formatting about exer_log HOT 8 CLOSED

exerlog avatar exerlog commented on July 30, 2024 2
improvement in formatting

from exer_log.

Comments (8)

jorre127 avatar jorre127 commented on July 30, 2024 3

Yeah or just use the dart format command, this automatically formats the code according to dart guidelines, so it will be the same for everyone.

from exer_log.

rileyhawk1417 avatar rileyhawk1417 commented on July 30, 2024

Would it work just to use the default Formatter that comes with Flutter?
When I reinstall my dart plugins I get prompted to add a config file for the dart formatter.
Not sure if it's relevant though.

from exer_log.

jorre127 avatar jorre127 commented on July 30, 2024

Yeah but I don't think we can force everybody to use the same formatter. Also people might have different settings like line length and such. this is why in the pull request right now everybody's formatting looks different which makes it hard to see the changes. The dart format command should always format the same, so if that gets run before each PR we should only see the actual changes, not any formatting changing.

from exer_log.

rileyhawk1417 avatar rileyhawk1417 commented on July 30, 2024

I see so I guess probably having a uniform format or code structure should just work for everyone then?
For example writing functions and variables in a certain way that makes it clean and not congested.
Haven't paid much attention to format styles. I just write and care about the refactoring later 😅

from exer_log.

jorre127 avatar jorre127 commented on July 30, 2024

Yeah I good start would be to write commas at the end of every line and attribute, this forces the formatter to put these on separate lines and help to make the formatting more uniform.

from exer_log.

rileyhawk1417 avatar rileyhawk1417 commented on July 30, 2024

So I guess it's just a matter of writing a config file that will be read by the formatter, then format the code accordingly?

from exer_log.

MhouneyLH avatar MhouneyLH commented on July 30, 2024

If nobody has already started I would like to add this to the codebase. :)
We just need to add a new job in the workflows, that runs flutter format. Should not be that big of a deal, shouldn't it?

from exer_log.

stale avatar stale commented on July 30, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

from exer_log.

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.