Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying a working directory #22

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

wjessop
Copy link
Contributor

@wjessop wjessop commented Sep 23, 2024

Allow running standardrb and the commands to set it up in a subdirectory of a repo, allowing for use in monorepos and other weird repo layouts. Mimics the support for a working directory in reviewdog/action-rubocop.

Tested with code in the root of an app, and with the code in a subdir using the new functionality. See the action runs for those repos.

Fixes #21

@searls
Copy link
Contributor

searls commented Sep 23, 2024

Looks good! Does it work?

@wjessop
Copy link
Contributor Author

wjessop commented Sep 23, 2024

I created this PR prematurely, I'm testing it on a test repo now, will update here when I'm done.

@wjessop wjessop force-pushed the allow_running_standardrb_in_a_subdir branch from 4dd2d7e to 2a912df Compare September 23, 2024 13:05
@wjessop
Copy link
Contributor Author

wjessop commented Sep 23, 2024

@searls OK, ready for review!

@searls
Copy link
Contributor

searls commented Sep 23, 2024

Seems legit

@searls searls merged commit a3f684f into standardrb:main Sep 23, 2024
@wjessop wjessop deleted the allow_running_standardrb_in_a_subdir branch September 23, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run standardrb on a subdirectory
2 participants