You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 107There's a logical error here. This method wouldn't encourage people to write well-formattted code; rather it would encourage people not to format and rely on the system instead! If your concern is that the code base is coherent, that's okay. It your goal is to train coders to write cleanly, it's a huge bug.Kilian Foth– Kilian Foth2017-04-12 06:24:54 +00:00Commented Apr 12, 2017 at 6:24
- 53It's also with considering the effect this will have on features such as blame - espsecially if the formatter makes a lot of changes, if most lines in the file are marked as being changed by the formatter, you loose some of the value.Neil P– Neil P2017-04-12 08:38:42 +00:00Commented Apr 12, 2017 at 8:38
- 14I've had issues with an autoformatter not being updated properly and breaking my code. Something to keep in mind.izzyg– izzyg2017-04-12 09:01:36 +00:00Commented Apr 12, 2017 at 9:01
- 23If it is that important to you, you could fail the build when code in not formatted correctly. That is a bit harsh but a proper peer review would more or less do the same thing.Emond– Emond2017-04-12 12:59:53 +00:00Commented Apr 12, 2017 at 12:59
- 18This is an excellent idea if your goal is to get people to hate you. It achieves very little, but will certainly cause unforeseen problems.TonyK– TonyK2017-04-12 14:08:02 +00:00Commented Apr 12, 2017 at 14:08
| Show 14 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you