Menu

The linter was grading the wrong checkout: a lint baseline that can only shrink
📰

The linter was grading the wrong checkout: a lint baseline that can only shrink

DEV Community: cicd·Eric Gitangu·about 6 hours ago
#CIpD1JA8
#devtocicd#devto#dev#baseline#file
Long article (1192 words) — no AI summary yet.
Reading 0:00
15s threshold

By Eric Gitangu. Originally published at developer.ericgitangu.com .

I work on the backend of a mobility/fintech platform. This post is about adding a linter to code that was already running production, and about the day the linter turned out to be grading the wrong checkout.

The problem

The shell scripts in our repo are not side projects. They deploy production, apply configuration and decide whether a merge is allowed. They were also the one kind of code with no automated check. The backend had a static analyser with a baseline. The scripts had code review and hope.

Turning a linter on in old code usually ends one of two ways:

Fix everything first. A week of diffs nobody asked for, in the scripts you least want to touch.

Warn only.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.