This file provides guidance to AI coding agents when working with code in this repository.
packwerk-extensions provides checker extensions for packwerk 3, a gradual modularization platform for Ruby. It ships privacy, visibility, folder_privacy, and layer checkers that enforce boundaries between packages.
bundle install
# Run all tests (minitest)
bundle exec rake test
# Run a single test file
bundle exec ruby -Ilib -Itest test/path/to/test.rb
# Lint
bundle exec rubocop
bundle exec rubocop -a # auto-correct
# Type checking (Sorbet)
bundle exec srb tclib/packwerk/— checker implementations, each as a class that implements the packwerk checker interfacetest/— minitest tests;test/fixtures/holds sample Rails app structures used in tests- Each checker (e.g.
privacy.rb,visibility.rb,layer_checker.rb) readspackage.ymlmetadata and decides whether a reference crosses a boundary