by clktmr · 6y ago · 0 comments
My experience is that linters (that people like) saves you from having to constantly discuss formatting, minor problems at the PR stage which is otherwise a huge time sink.
If you didn't respect the Quality Gates, your branch wouldn't be merged => you wouldn't be paid.
It was one of the best experiences in my work life so far. Clear rules, no chaos, no meetings, no negotiation. Just tasks and money :)
But everything was upside down with that team, not just payment. They had a completely different philosophy when it came to software development.
For instance we were encouraged to just close tasks. It didn't matter what we did as long as the build and code reviewer were happy.
Part of the philosophy was that if developers can abuse and break the project, the project is not good enough and must be toughened. Then, developers were encouraged to find other loopholes.
This methodology worked wonders for small projects, libraries. It didn't go well for big projects, obviously.
It was fun work back in the day of Teamed.io. But nowadays, with Zerocracy, it's turned a bit too strange even for my taste, after having worked about 2 years with Teamed.
The rules to be used were negotiated among developers. In one team, the use of linter cut down on the uneven random unforcement of the unofficial rules that was going on rampant (and subsequent frustration of involved people).
Depends on the team: if the team is democratic, then they should reach an agreement beforehand and respect it. If it's a dictatorship, then just punish them for not respecting the rules.
If the devs just agree to break the rules and disable them, they should be punished somehow. "Punished" is a big word maybe, but that's the idea :)
You don't want to spend the first half of every review going through and finding errant formatting mistakes. Automate what you can.