Experimenting with Rubocop: Implementing a Toy Version of Packwerk for Learning Purposes

This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.

Hey all, I wanted to share this experiment I did as a thought exercise and learning tool! Did you know that packwerk was originally implemented in rubocop? Although it grew out of it, I wanted to implement a toy-version of packwerk in rubocop as a learning tool. See it and learn more here: https://github.com/rubyatscale/rubocop-packs/blob/main/docs/packwerk_lite.md

rubocop-packs is something I’m working on as a repository of simple rubocops for applications that use stimpack

Message originally sent by slack user U70TIGAX94P

This is fun, and props for making it work! It took us a long time to find all the edge cases, so I’m not surprised you’re not instantly finding all violations.