TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ratchets in Software Development

23 pointsby wyrmover 3 years ago

2 comments

aozgaaover 3 years ago
#!&#x2F;bin&#x2F;bash<p>Min=$1<p>Max=$2<p>Expression=$3<p>Count=$(grep -rP “$Expression” src | wc -l)<p>if [ $Count -lt $Min ] ; then echo “too few” ; exit 1 ; fi<p>If [ $Count -gt $Max ] ; then echo “too many” ; exit 1 ; fi
pdimitarover 3 years ago
I wonder if OP uses comby.dev. I&#x27;m looking forward to integrating it in pre-commit hooks and CI to make sure certain code isn&#x27;t allowed.<p>I would use SemGrep if it supported Elixir. But it does support Rust so I&#x27;ll use it there.