Repository navigation
Add CLI init/check/explain with structured diagnostics - #73
Open
TristanKruse wants to merge 2 commits into
Open
TristanKruse wants to merge 2 commits into
TristanKruse wants to merge 2 commits into
Conversation
Collaborator
Author
Final verification — 2026-10-27Head:
Ready for review/merge. This is unreleased 1.1.0 development work: no 1.1.0 publication, tag, or release-workflow dispatch occurred. Published 1.0.0 remains unchanged. The broader #66 roadmap remains open. |
This was referenced Oct 27, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #72. First bounded CLI delivery milestone from #66; the broader roadmap stays open.
archunit init,check,explain,--help, and--versionas a packaged gem executable without replacing RSpec/Minitest..archunit.rbconfiguration, with project-rooted file/layer/slice/metric helpers.Trust and milestone limits
Configuration is executable Ruby, not a sandbox. The tool does not automatically execute target application source, Gemfiles, or gemspecs; custom configuration and a caller's own Bundler invocation keep their normal Ruby semantics. Use your own trusted config when analyzing an untrusted repository. JSON-mode configuration should not write to stdout.
explainlists names, rationale, selected project, and analysis settings. It is not a semantic dependency trace or a focused-path report. Baselines/stale entries, semantic call/protocol rules, presets, and larger Rails performance work remain separate roadmap deliveries.Validation
COVERAGE=true bundle exec rake: 667 examples, zero failures, nine native-symlink skips on this Windows account; Linux/native-capable Windows CI exercises the symlink cases. Runtime-library coverage keeps the unchanged 98% / 90% gates; all 278 Ruby files lint-clean.bundle exec rake docs: 185 generated pages with API/internal-link validation.Review also reproduced and fixed an accidental
exit 0in configuration returning success before any rule check. Ordinary configuration exits are now explicit exit-2 errors, covered in process-isolated acceptance as well as unit tests. This is fail-closed behavior for mistakes, not a sandbox claim about arbitrary trusted Ruby.Native-capable Windows CI exposed that
File::CREAT | File::EXCLalone followed a dangling symlink. Initialization now checksFile.lstatbefore opening, with both a portable pre-open rejection test and the original native symlink test retained. This does not claim to sandbox concurrent hostile filesystem changes.