Commit cb59f84
Fix Copilot review noise: restructure instructions for 4K limit (#5971)
* Fix Copilot review noise: restructure instructions for 4K limit
Copilot code review only reads the first 4,000 characters of
copilot-instructions.md. The previous layout consumed this budget
with Copilot Chat skills documentation, so the reviewer never saw
any coding rules — causing 328 false-positive comments across 40 PRs.
Changes:
- Move code review rules to the first 2,500 chars (review scope,
repo-specific false-positive suppressions, coding standards)
- Push Chat/Agent skills documentation below the 4K cutoff
- Add .github/instructions/tests.instructions.md with test-specific
rules (RunOn attribute, MSTest patterns, deterministic tests)
- Add .github/instructions/src.instructions.md with source code
rules (namespace resolution, reflection ban, GetOrAdd pattern)
Path-specific instruction files are not subject to the 4K limit
and provide targeted guidance per file context.
Resolves #5967
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address review: MSTest v4, strip coding standards from src.instructions (defer to .editorconfig)
- Fix MSTest SDK v3 → v4 in copilot-instructions.md and tests.instructions.md (bgavrilMS suggestion)
- Remove coding standards section from src.instructions.md — enforced via .editorconfig (bgavrilMS)
- Keep only MSAL-specific rules (dependencies) and scope/reviewer rules
- Resolves conflicting reflection guidance flagged by Copilot
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 55c4940 commit cb59f84
3 files changed
Lines changed: 120 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
6 | 28 | | |
7 | | - | |
| 29 | + | |
| 30 | + | |
8 | 31 | | |
9 | | - | |
| 32 | + | |
10 | 33 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
16 | 41 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 42 | + | |
22 | 43 | | |
23 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
24 | 66 | | |
25 | 67 | | |
26 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments