P001 PlaceholderIdentifiers
- Applies to
- Pull requests, through the GitHub App
- Severity
- Error (fails the check under fail-on-warnings and fail-on-errors)
- Summary
- A change leaves a placeholder where a real identifier or value belongs.
- Flags
- Added lines in code and config files outside test files containing "::NAME::", "REPLACE_ME", "YOUR_…", "<placeholder>", or "<your-…>". Skipped: comment lines (including inside block comments and docstrings), test-data attributes ([InlineData], [TestCase], [DataRow]), placeholders a comment line in the same file names, and files that test for "::" and throw or exit within the next 10 lines (a guarded template). Generated files (<auto-generated in the first 10 lines) are skipped.
Before
var apiKey = "YOUR_API_KEY";
After
var apiKey = configuration["Billing:ApiKey"];
Fix
- Replace with the real identifier or value.