This repository demonstrates how a project can inherit shared analysis configuration from a separate Qlty source repository.
It is the consumer side of the shared configuration demo. When Qlty runs, this repository pulls in shared analysis settings from the source repository instead of defining everything locally.
This repo is intended to show how a project can:
- inherit Qlty analysis configuration from another repository
- receive shared linter configuration files at analysis time
- keep local configuration minimal while still using standardized rules
- override or extend shared settings when needed
This demo is made up of two repositories:
- qlty-shared-config - the shared source repository
- qlty-shared-config-consumer - this consumer repository
This repository references the shared source in its .qlty/qlty.toml file:
config_version = "0"
[[source]]
name = "default"
default = true
[[source]]
name = "shared-demo"
repository = "https://github.com/dh-sandbox/qlty-shared-config"
branch = "main"When Qlty runs, it merges configuration from the shared source repository with this repository's local configuration. That allows this repo to inherit common standards without copying all of the analysis settings and linter config files into the project itself.
Qlty documentation on shared analysis configuration: Shared Analysis Configuration
This repository is a sandbox project created to demonstrate the consumer side of Qlty shared analysis configuration. It is intended to be used together with the source repository linked above.