3 ms·
First of april is not now. So I will seriously discuss the idea: IMHO, some level of linting should be required. I would often have to reject lengthy and excel
by a3w 2y ago
First of april is not now. So I will seriously discuss the idea:
IMHO, some level of linting should be required.
I would often have to reject lengthy and excellent pull requests (PRs), just because autoformat was not pressed and three instead of four whitespaces are in kotlin code. That annoys everyone.
Python does that right, code won't compile with the three version whitespace, which is easily spotted before the PR.
- giancarlostoro 2y agoIn Visual Studio I turn on the feature to see whitespaces and non visible characters, just because every now and then, for some ungodly reason, someone in the project, somewhere, in every C# project I've ever worked on, will somehow open the file differently (seriously wtf? we all use Visual Studio!) and goof up a file somewhere, or there's people who instead of hitting tab, will manually insert spaces in a way that doesn't match Visual Studio's own format.
- AstroJetson 2y agoI’ll use Visual Studio when you pry my cold dead fingers off of my Vim keyboard. Since Ogg used square rock and Eagg used triangle rock to carve messages we’ve fought over editors. I fall into the camp a of formatter should do the presentation. But I also fall into the { } would be nice for Python.
- jobigoud 2y agoMost likely copy-pasting code from somewhere else that doesn't use the same convention.
- jaredsohn 2y agoI think that would ideally be done via a separate linter set up in CI. It has bugged me when using python interactively but fortunately ipython will ignore it.