Skip to content

Conversation

sagikazarmark
Copy link
Member

@joelwurtz IIRC you wanted this.

Would make sense here: https://styleci.io/analyses/XkAZAz

@dbu
Copy link
Contributor

dbu commented Dec 15, 2015 via email

@sagikazarmark
Copy link
Member Author

Symfony preset by default DOES NOT align the arrows, this is what unalign means. Disabling this would remove this fixer.

@dbu is it a personal taste or you have an explanation too? (It doesn't make it worse or better, but if you have a logical path you followed, I would be happy to hear)

@joelwurtz
Copy link
Member

+1 for this, would love to force alignement but another PR i guess (here we don't force anything so it's free to user)

@joelwurtz
Copy link
Member

There is also the unalign of equal to remove i guess, but also another PR imo.

@dbu
Copy link
Contributor

dbu commented Dec 16, 2015 via email

@sagikazarmark
Copy link
Member Author

Maintenance is also one of my reasons against. In case of big arrays, it is quite hard maintain. StyleCI can fix it, but I am reluctant to merge PRs for every little spacing issue with a separate commit (actually two, merge commit also counts), instead of just fixing and amending (in case of a feature branch of course).

An other is complexity: in case of multi-dimensional arrays, how would you align? Align the same levels? Align all levels to the same position? In this case, maintenance is even harder.

Also, I don't like aligning in YAML files, I don't like aligning in case of multiple variable set (equals), so why double arrow then?

It's kind of a -0.5 from me.

@joelwurtz
Copy link
Member

Really don't mind overall but i like to align everywhere i can, many times code also serve as a documentation.

+1 for me, for aligning everywhere.

My main concern is to have consistence (so align everywhere or unalign everywhere, but not something between that).

@sagikazarmark
Copy link
Member Author

If we are talking about aligning everywhere, then it's a -1 from me.

@joelwurtz
Copy link
Member

So let's keep unalign everywhere like Symfony does

@joelwurtz joelwurtz closed this Dec 17, 2015
@sagikazarmark sagikazarmark deleted the disable_unalign_double_arrow branch January 1, 2016 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants