require-digitalocean-app-spec-file
Require a DigitalOcean App Platform specification file.
Targeted pattern scopeâ
- Repositories that opt into the DigitalOcean preset without committing
.do/app.yamlor.do/app.yml.
What this rule reportsâ
This rule reports repositories using the DigitalOcean preset when no App Platform spec file exists.
Why this rule existsâ
The App Platform spec captures services, routes, environment variables, and deploy behavior. Keeping that file in version control makes infrastructure changes reviewable with the application code they affect.
â Incorrectâ
// DigitalOcean App Platform is configured only in the dashboard.
export default [];
â Correctâ
# .do/app.yaml
name: example-app
services:
- name: web
github:
repo: example/repo
branch: main
When not to use itâ
Disable this rule if the repository does not deploy through DigitalOcean App Platform.
Rule catalog ID: R073