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
Add -style file:<path>
option
#156
Comments
My project structure is
But the action still uses So I could figure out how to pass a path to Your comment was in 2023, maybe you found a solution @mrousavy? |
I guess it will be enougth to add a from formatted="$(docker run -i -v "$(pwd)":"$(pwd)" -w "$(pwd)" --rm ghcr.io/jidicula/clang-format:"$CLANG_FORMAT_MAJOR_VERSION" --style=file --fallback-style="$FALLBACK_STYLE" "${filepath}")" to smth like formatted="$(docker run -i -v "$(pwd)":"$(pwd)" -w "$(pwd)" --rm ghcr.io/jidicula/clang-format:"$CLANG_FORMAT_MAJOR_VERSION" --style=file:$CLANG_FORMAT_FILE --fallback-style="$FALLBACK_STYLE" "${filepath}")" It will be very helpful! |
I am using my fork: https://github.com/mrousavy/react-native-vision-camera/blob/50437b65682abda6a52b2363368b19aa8311772d/.github/workflows/validate-cpp.yml#L19-L36 Which simply removed the fallback style and replaced it with a custom style file: https://github.com/mrousavy/clang-format-action I am not sure if I should create a PR for this here, since it basically removes the fallback style functionality. Idk why but those didn't work together very well in my experience. |
@mrousavy Thats a lot, I'll check it ❤️ |
Hey! Thanks for your package.
I'm trying to use it in a project where my code is in a subdirectory:
I couldn't figure out how to properly configure the github action to use the
.clang-format
file in that directory. Here's my workflow:Any thoughts?
The text was updated successfully, but these errors were encountered: