You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that configuration inheritance ensures the profile exists. Would inheritance for optional files be a useful feature, and if so, what would the best implementation of this be? I'm happy to get this working if it would be an accepted feature.
My use case is running prospector using vim, and having projects with a base configuration file. I'd like to optionally include a local override profile, but only if it exists. The local override profile wouldn't be checked into the project, but would provide a method for stricter linting for individual developers. For example, consider the following prospector.yaml:
inherits:
- prospector_local
- prospector_base
Where prospector_base.yml would be the base project configuration, and prospector_local.yml wouldn't necessarily exist in the repository. A couple implementation options here:
Add to the config spec to signify optional profiles
Add a configuration option that flags missing profiles as soft errors rather than hard. Default is the normal behavior, present now. To silently skip a missing profile would be unexpected user experience.
It's also possible I'm missing something and there is an easier method to accomplish what I'm talking about.
The text was updated successfully, but these errors were encountered:
It seems that configuration inheritance ensures the profile exists. Would inheritance for optional files be a useful feature, and if so, what would the best implementation of this be? I'm happy to get this working if it would be an accepted feature.
My use case is running prospector using vim, and having projects with a base configuration file. I'd like to optionally include a local override profile, but only if it exists. The local override profile wouldn't be checked into the project, but would provide a method for stricter linting for individual developers. For example, consider the following
prospector.yaml
:Where
prospector_base.yml
would be the base project configuration, andprospector_local.yml
wouldn't necessarily exist in the repository. A couple implementation options here:It's also possible I'm missing something and there is an easier method to accomplish what I'm talking about.
The text was updated successfully, but these errors were encountered: