rubycritic
rubycritic copied to clipboard
Running in subdirectory returns `churn` of `0`
When running rubycritic in a subfolder, the Churn returns 0
.
Example of a mono-repo where a subfolder is a Rails app, and other folders hold other components (eg. React app, docs, etc):
main-app |-rails_app |-docs |-frontend
cd rails_app
rubycritic # Returns churn of 0
Running from the root directory works.
Steps to reproduce:
- Git clone sample app (https://github.com/geetfun/rails-in-subdir)
- Run rubycritic from the root folder --> No problem
- Run rubycritic from the Rails directory subfolder --> Churn shows 0
From the root directory:
From the subfolder:
Expectation: Both churn values should be the same regardless of where the rubycritic command is run
Side thought: This may just be a limitation of how the app calls git within a subfolder, but it's a gotcha when working with monorepos.
@etagwerker Can we close this issue ?