6
MaxMayo
4y

We've got two conflicting linters for ruby.
The rubocops serve the IDE and say to outdent access modifiers, giving the indented line a little yellow under-squiggle. Monkey see, monkey do, I indent it.
The company's one in the build pipeline wants to indent access modifiers and literally fails the bloody build, screaming about a rogue access modifier two spaces from where it should be.
Waste of 5 minutes.

Comments
  • 2
    Had something similar with autoformatters in a pre-commit hook.
    During commit both would format the code and the commit would fail because of changes. After re-staging, the same would happen again, ad the first formatter reversed the second one partially and the second one this particular change of the first.
    As soon as a change has been made by those formatters, the pre-commit-hook failed.
Add Comment