P013 CommittedArtifacts
- Applies to
- Pull requests, through the GitHub App
- Severity
- Error (fails the check under fail-on-warnings and fail-on-errors)
- Summary
- A change adds build output, dependencies, caches, or an environment file.
- Flags
- Added, renamed, or copied files under node_modules/, bin/Debug, bin/Release, obj/Debug, obj/Release, obj restore files, __pycache__/, *.pyc, and .env or .env.* (except .env.example, .env.sample, .env.template, .env.dist). A bin/ folder of scripts is not flagged.
Before
added: src/Api/bin/Debug/net10.0/Api.dll
added: .env
After
added: .env.example
.gitignore: bin/, obj/, .env
Fix
- Remove the file from the PR and add its pattern to .gitignore.