google / google/yapf

Improvement: "yapf: enable/disable" alternative heuristic

Open
#184 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

I just read this article: http://journal.stuffwithstuff.com/2015/09/08/the-hardest-program-ive-ever-written/

The dart formatter uses a simple heuristic to know when to (or not to) reformat data structure blocks - comments (but not explicit enable/disable).

I think their example is pretty clear: https://github.com/dart-lang/dart_style#why-does-the-formatter-mess-up-my-collection-literals

I find this preferable to adding formatter-specific tags to my source code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.