-
Notifications
You must be signed in to change notification settings - Fork 32
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
Customize Gazelle Behavior? #1197
Comments
Not at this time. However, I am open to suggestions on how we might be able to support this. |
Maybe we could take inspiration from Swiftlint's Add a step in here somewhere that defaults to an empty implementation, but could be overridden similarly to Swiftlint. rules_swift_package_manager/gazelle/generate.go Lines 84 to 97 in 44f2968
Related: Could I use this section to accomplish what I need? // If the name is specified by a directive, short cirucit and return that:
sc := swiftcfg.GetSwiftConfig(args.Config) |
I think that it will. I forgot that we had that directive. There are examples of the swift_default_module_name directive in the repo. Here is one: # gazelle:swift_default_module_name SnapkitExample |
It it feasible to customize the behavior of gazelle when generating local BUILD files?
In our project we define different "layers" which are reflected in the folder structure on disk. So for example there's a
Networking
folder, which contains lots of individual packages and our current tooling automatically appends "Networking" to the end of the package name. So for the code inLayers/Networking/Address/Sources
will create a package named "AddressNetworking".Are there any customization points to replicate this logic for the
update_build_files
command?The text was updated successfully, but these errors were encountered: