A Leiningen plugin to detect changes in critical namespaces between Git commits.
Perfect for regulated industries (healthcare, finance) where you need to monitor changes in security-critical code paths.
Add to your project.clj
:
:plugins [[diff-detector "0.1.0"]]
Add configuration to your project.clj
:
:diff-detector {:namespaces ["my-app.security.*"
"my-app.payment.core"
"my-app.compliance.*"]}
lein diff-detector
lein diff-detector --summary
lein diff-detector --base main --target feature-branch
lein diff-detector --help
DIFF_DETECTOR_BASE
- Default base commit (fallback: origin/main)DIFF_DETECTOR_TARGET
- Default target commit (fallback: HEAD)0
- No critical namespace changes detected1
- Critical namespace changes detected (useful for CI/CD)⚠️ Critical namespace changes detected!
Changed files in critical namespaces:
- src/security/auth/core.clj
- src/payment/gateway/stripe.clj
Summary:
Total critical files changed: 2
Copyright © 2024
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close