One real example per way, archived in Software Heritage. Click an example to see the exact lines.
All ways
| Way | Example | Option | Note |
|---|---|---|---|
| COBOL CONFIGURATION SECTION | BroadcomMFD/cobol-control-flow | SOURCE-COMPUTER |
|
| Conditional assembly | moshix/mvs | AIF |
|
| JCL DD statements | moshix/mvs | DD |
|
| OS/360 SYSGEN | MVS-sysgen/sysgen | CTRLPROG |
|
| PL/I preprocessor | IBM/zopeneditor-sample | %IF |
|
| CLI options | python/cpython | --bind |
|
| C preprocessor | curl/curl | HAVE_CONFIG_H |
|
| make variables | git/git | NO_OPENSSL |
|
| m4 | curl/curl | CURL_INCLUDES_FCNTL |
|
| Environment variables | BurntSushi/ripgrep | RIPGREP_CONFIG_PATH |
|
| Shell rc files | ohmyzsh/ohmyzsh | ZSH_THEME |
|
| vi .exrc | vim/vim | filetype plugin indent |
|
| BSD kernel config(8) | freebsd/freebsd-src | SMP |
|
| AUTOEXEC.BAT | JHRobotics/patcher9x | PATH |
|
| CONFIG.SYS | oerg866/win98-quickinstall | DEVICE |
|
| sendmail.cf | bbsmirror/BBSmirror | QueueDirectory |
|
| SysV inittab | batocera-linux/batocera.linux | initdefault |
|
| BIOS setup (CMOS) | coreboot/coreboot | power_on_after_fail |
|
| GNU Emacs init file | purcell/emacs.d | init modules |
|
| INI files | python/mypy | [mypy] section |
|
| inetd.conf | freebsd/freebsd-src | ftp service |
|
| Frame technology | SSEHUB/EASyProducer | x-frame |
|
| X resources | jessfraz/dotfiles | URxvt.termName |
|
| Dynamic plugins (dlopen) | openssl/openssl | dlopen |
|
| POSIX locale variables | coreutils/coreutils | LC_ALL |
|
| SNMP SET and MIBs | net-snmp/net-snmp | sysContact |
|
| Tcl as embedded config | openocd-org/openocd | _CHIPNAME |
|
| Property lists | mathiasbynens/dotfiles | AppleShowAllExtensions |
|
| Feature models (FODA) | FeatureIDE/FeatureIDE | featureModel |
|
| Fortran NAMELIST | wrf-model/WRF | &time_control |
|
| Autoconf | curl/curl | --enable-proxy-http3 |
|
| Kernel command line | torvalds/linux | nosmp |
|
| Linux make config (CML1) | Jackysi/advancedtomato | CONFIG_SMP |
Linux 2.4 vendored in a router firmware |
| Windows Registry | python/cpython | HKEY_CLASSES_ROOT |
|
| CFEngine | cfengine/masterfiles | bundlesequence |
|
| Lua as config language | awesomeWM/awesome | modkey |
|
| sysctl | systemd/systemd | rp_filter |
|
| Automake | curl/curl | SUBDIRS |
|
| Device tree | torvalds/linux | status |
|
| robots.txt | mastodon/mastodon | User-agent |
|
| Apache httpd.conf | apache/httpd | Listen |
|
| Database server config | postgres/postgres | shared_buffers |
|
| HTTP content negotiation | django/django | Accept-Language |
|
| Java .properties | spring-projects/spring-petclinic | database |
|
| Java system properties | apache/tomcat | java.io.tmpdir |
|
| Quake console variables | id-Software/Quake | _cl_name |
|
| php.ini | php/php-src | memory_limit |
|
| XML as config format | apache/tomcat | Connector port |
|
| eCos CDL | ghaerr/microwindows | cdl_option |
|
| HotSpot -XX flags | openjdk/jdk | UseLargePages |
|
| XML deployment descriptors | apache/tomcat | ServletToJsp |
|
| Apache Ant properties | apache/ant | Name |
|
| CMake options | curl/curl | BUILD_CURL_EXE |
|
| CML2 | l4ka/pistachio | SMP |
|
| debconf | dokku/dokku | boolean template |
|
| Group Policy | mozilla/policy-templates | DisableTelemetry |
|
| JMX MBeans | apache/tomcat | filterName |
|
| OSGi bundles | eclipse-platform/eclipse.platform.ui | Bundle-SymbolicName |
|
| AspectJ | ZSvirt/zsvirt | pointcut |
|
| Eclipse extension points | eclipse-platform/eclipse.platform.ui | acceleratorConfigurations |
|
| SCons | godotengine/godot | platform |
|
| XML Schema (XSD) | spring-projects/spring-framework | bean |
|
| YAML | jekyll/jekyll | title |
|
| .NET app.config / web.config | guryanovev/CrystalQuartz | appSettings |
|
| C# conditional compilation | PowerShell/PowerShell | UNIX |
|
| GConf | xournalpp/xournalpp | gconfschemafile |
|
| Gentoo USE flags | gentoo/gentoo | X |
|
| Java Preferences API | openpnp/openpnp | userNodeForPackage |
|
| Kconfig | torvalds/linux | CONFIG_SMP |
|
| Mozilla preferences (about:config) | mozilla/gecko-dev | security.tls.insecure_fallback_hosts |
|
| AHEAD feature modules | FeatureIDE/FeatureIDE | refines |
|
| Nix expressions | NixOS/nixpkgs | withPCRE2 |
|
| XDG Base Directory | git/git | XDG_CONFIG_HOME |
|
| BitBake / OpenEmbedded | openembedded/openembedded-core | MACHINE |
|
| nginx.conf | nginx/nginx | worker_processes |
|
| Rails environments | rails/rails | force_ssl |
|
| Spring DI container | spring-projects/spring-petclinic | @Bean |
|
| AUTOSAR ECU configuration | TrampolineRTOS/trampoline | EcucModuleConfigurationValues |
|
| Django settings module | django/django | DEBUG |
|
| FeatureIDE | FeatureIDE/FeatureIDE | FeatureIDE nature |
|
| git config | mathiasbynens/dotfiles | alias |
|
| launchd plists | syncthing/syncthing | ProgramArguments |
|
| Maven profiles | apache/commons-lang | <profile> |
|
| MSBuild conditions | PowerShell/PowerShell | ProductVersion |
|
| Orthogonal variability model | Universal-Variability-Language/uvl-models | features |
OVM model translated to UVL |
| Puppet manifests | puppetlabs/puppetlabs-apache | apache |
|
| Python entry points | pallets/flask | flask |
|
| Python extras | encode/httpx | brotli / http2 / socks |
|
| Xcode build configurations | iina/iina | SWIFT_ACTIVE_COMPILATION_CONDITIONS |
|
| Annotation-based configuration | spring-projects/spring-petclinic | @Controller |
|
| Java ServiceLoader | qos-ch/slf4j | SLF4JServiceProvider |
|
| JSON config | composer/composer | require |
|
| NETCONF / YANG | openconfig/public | mtu |
|
| Upstart jobs | shawn-sterling/graphios | start on |
|
| Guice modules | google/guice | AbstractModule |
|
| Android resource qualifiers | signalapp/Signal-Android | values-fr |
|
| App Engine app.yaml | GoogleCloudPlatform/python-docs-samples | runtime |
|
| App manifests (Android / iOS) | signalapp/Signal-Android | uses-permission |
|
| CIDE colored annotations | — | research tool, colors live in IDE metadata, no public repo | |
| ZooKeeper | apache/hbase | hbase.zookeeper.quorum |
|
| Chef | sensu/sensu-chef | service action |
|
| cloud-init | canonical/cloud-init | packages |
|
| Feature toggles | gitlabhq/gitlabhq | force_autodevops_on_by_default |
|
| FeatureHouse | joliebig/featurehouse | composer |
FeatureHouse composer code, not a feature module |
| Homebrew install options | Homebrew/legacy-homebrew | with-* |
2015 snapshot, options removed in 2019 |
| JSON Schema | SchemaStore/schemastore | $schema |
|
| A/B testing platforms | optimizely/python-sdk | activate |
|
| Chrome flags | chromium/chromium | kFeatureEntries |
|
| Clafer | gsdlab/clafer | xor |
|
| Delta-oriented programming | FeatureIDE/FeatureIDE | modifies |
|
| GSettings / dconf | GNOME/gnome-terminal | list |
|
| package.json and .npmrc | expressjs/express | dependencies |
|
| systemd units | systemd/systemd | ExecStart |
|
| tox environments | psf/black | testenv |
|
| Vagrantfile | hashicorp/vagrant | config.vm.box |
|
| AWS CloudFormation | aws-cloudformation/aws-cloudformation-templates | Parameters |
|
| CI build matrix | pallets/flask | matrix |
|
| Procfile | heroku/node-js-getting-started | web |
|
| Salt states | saltstack-formulas/nginx-formula | pkg.installed |
|
| Spring profiles | spring-projects/spring-petclinic | spring.datasource.url |
|
| Twelve-factor env config | laravel/laravel | APP_ENV |
|
| Ansible | geerlingguy/ansible-role-nginx | nginx_worker_processes |
|
| Conda environments | pandas-dev/pandas | channels |
|
| CSS media queries | twbs/bootstrap | @media |
|
| CVL | — | OMG proposal never published as code | |
| EditorConfig | git/git | indent_style |
|
| GNU Guix | SuperTux/supertux | inputs |
|
| Go build constraints | golang/go | //go:build |
|
| Gradle build scripts | spring-projects/spring-boot | plugins |
|
| HOCON | apache/pekko | pekko |
|
| JSON5 | coil-kt/coil | extends |
|
| Netflix Archaius | Netflix/Hystrix | DynamicPropertyFactory |
used inside Hystrix |
| webpack config | facebook/create-react-app | mode |
|
| Yeoman generators | yeoman/generator-webapp | prompt |
|
| Cookiecutter templates | cookiecutter/cookiecutter-django | use_docker |
|
| Dockerfile ENV and ARG | nodejs/docker-node | NODE_VERSION |
|
| ESLint config | eslint/eslint | rules |
|
| etcd / Consul KV | loft-sh/vcluster | etcd client |
|
| Meson options | GNOME/gtk | x11-backend |
|
| NODE_ENV dead-code elimination | facebook/react | NODE_ENV |
|
| Spring @Conditional | spring-projects/spring-framework | @Conditional |
|
| TOML | rust-lang/rust | profile |
|
| Android build variants | android/nowinandroid | productFlavors |
|
| ARM templates | Azure/azure-quickstart-templates | storageAccountType |
|
| direnv | direnv/direnv | PATH_add |
stdlib defining PATH_add |
| Docker Compose | docker/awesome-compose | services |
|
| Feature flag services | launchdarkly/python-server-sdk | variation |
|
| Jsonnet | prometheus-operator/kube-prometheus | values |
|
| pre-commit config | pre-commit/pre-commit | repos |
|
| Spring Boot auto-configuration | spring-projects/spring-boot | @ConditionalOnClass |
|
| Spring Cloud Config | spring-cloud/spring-cloud-config | spring.config.import |
docs in the official repo |
| Swift conditional compilation | apple/swift-nio | os(Linux) |
|
| Terraform (HCL) | terraform-aws-modules/terraform-aws-vpc | cidr |
|
| Babel config | facebook/react | plugins |
|
| Bazel select() | abseil/abseil-cpp | config_setting |
|
| browserslist | twbs/bootstrap | Chrome >= 130 |
|
| Cargo features | BurntSushi/ripgrep | pcre2 |
|
| GitLab CI pipelines | gitlabhq/gitlabhq | stages |
|
| HashiCorp Vault | hashicorp/vault-examples | KVv2 |
|
| Helm values | kubernetes/ingress-nginx | replicaCount |
|
| Kubernetes Secrets | kubernetes/website | Secret |
|
| Rust cfg attributes | BurntSushi/ripgrep | cfg |
|
| Serverless Framework | serverless/examples | provider |
|
| SOPS | MatthiasBenaets/nix-config | creation_rules |
|
| Spack variants | spack/spack-packages | mpi |
|
| Starlark | bazelbuild/bazel-skylib | paths |
|
| tsconfig.json | microsoft/TypeScript | strict |
|
| Unleash | Unleash/unleash-client-node | isEnabled |
|
| VS Code settings | microsoft/vscode | files.trimTrailingWhitespace |
|
| appsettings.json | dotnet/eShop | Logging |
|
| Firebase Remote Config | firebase/quickstart-android | welcome_message |
|
| Jenkinsfile | jenkinsci/jenkins | buildDiscarder |
|
| Kubernetes ConfigMap | kubernetes/website | ConfigMap |
|
| Open Policy Agent (Rego) | open-policy-agent/opa | allow |
|
| pyproject.toml | psf/black | tool.black |
|
| AWS SSM Parameter Store | jonrau1/ElectricEye | get_parameter |
|
| Dhall | dhall-lang/dhall-kubernetes | let |
|
| Docker multi-stage targets | docker/buildx | xx |
|
| Envoy xDS | envoyproxy/envoy | listeners |
|
| Kotlin expect/actual | Kotlin/kotlinx.coroutines | expect fun |
|
| ksonnet | grafana/loki | ksonnet lib |
ksonnet-style lib (ksonnet itself archived) |
| Kubernetes CRDs and operators | prometheus-operator/prometheus-operator | Prometheus CRD |
|
| MicroProfile Config | quarkusio/quarkus-quickstarts | @ConfigProperty |
|
| Prettier config | vuejs/core | singleQuote |
|
| gin-config | google/gin-config | binding |
|
| Kustomize | kubernetes-sigs/kustomize | resources |
|
| Pulumi | pulumi/examples | runtime |
|
| AWS AppConfig | aws-samples/sample-python-helper-aws-appconfig | start_configuration_session |
|
| AWS CDK | aws-samples/aws-cdk-examples | app |
|
| CUE | cue-lang/cue | schema |
|
| Dev containers | microsoft/vscode | features |
|
| GitHub Actions workflows | actions/checkout | runs-on |
|
| Hydra | facebookresearch/hydra | db |
|
| Node conditional exports | preactjs/preact | exports |
|
| Bicep | Azure/azure-quickstart-templates | storageAccountType |
|
| Vite config | vitejs/vite | defineConfig |
|
| Nix flakes | NixOS/nix | inputs |
|
| UVL | Universal-Variability-Language/uvl-models | features |
|
| KCL | kcl-lang/examples | schema |
|
| OpenFeature | grafana/grafana | getBooleanValue |
|
| Nickel | tweag/nickel | contract |
|
| .clinerules | nammayatri/nammayatri | (prose) |
|
| .cursorrules | FastLED/FastLED | (prose) |
|
| .windsurfrules | tmux-python/tmuxp | (prose) |
|
| copilot-instructions.md | microsoft/vscode | (prose) |
|
| llms.txt | direnv/direnv | (prose) |
|
| MCP server config | inspec/inspec | servers |
|
| Pkl | apple/pkl-k8s-examples | amends |
|
| Agent settings and hooks | rstudio/rstudio | hooks |
|
| Agent skills (SKILL.md) | anthropics/skills | (prose) |
|
| AGENTS.md | openai/codex | (prose) |
|
| CLAUDE.md | evrone/go-clean-template | (prose) |
|
| Custom agents and prompt files | microsoft/vscode-js-debug | (prose) |
|
| GEMINI.md | google-gemini/gemini-cli | (prose) |
|
| Clone-and-own variants | neovim/neovim | fork of Vim |
Neovim, a fork of Vim |
| Network device running/startup config | batfish/batfish | interface |
|
| Preferences dialogs | keepassxreboot/keepassxc | settings widget |
|
| Reload on SIGHUP | nginx/nginx | SIGHUP (reconfigure) |
|
| Request parameters and cookies | django/django | django_language cookie |
|
| Settings stored in an app database | WordPress/WordPress | get_option |
Granularity, the smallest unit a way can vary:
| level | varies | e.g. |
|---|---|---|
| line | a statement or expression | #ifdef, #[cfg] |
| block | a function, class or code path | AspectJ, feature toggles |
| file | a whole source or resource file | Go build constraints, values-fr/ |
| module | a package, plugin or library | Cargo dependencies, OSGi |
| component | how parts are wired | Spring beans, systemd units |
| process | one running program | env vars, nginx.conf |
| user | one account | .bashrc, GSettings |
| project | a repository or its tools | CI matrix, AGENTS.md |
| machine | a whole host or device | sysctl, Ansible |
| cluster | many hosts or services | Terraform, Helm |
| request | one user or call | flag targeting, Accept-Language |
| feature | an abstract feature, no code | FODA, UVL |