DC0006, DC0007-DC0010 Documentation Cop#344
Conversation
…vents, integration events, internal events must include XML documentation comments
Code review — PR #344: DC0006–DC0010 Documentation CopHi Carsten 👋 — thanks a lot for this, and welcome aboard as a first-time contributor! 🎉 This is a substantial, well-structured addition: five new rules, a clean split between object- and procedure-level analyzers, and genuinely thorough test fixtures (public/internal × procedure/object/event, plus attribute and comment variants). The resx messages are clear and helpful. Really nice work. Below are a few things worth a second look. None are dealbreakers — mostly correctness/consistency points we can tidy up together. CI is green across all BC versions, and I verified locally that 🔧 Worth fixing1. Severity + enablement on the new descriptors (
2. Drop the 3. 4. Case-sensitive attribute matching ( a.Name.Identifier.ToString() == "IntegrationEvent" / "BusinessEvent" / "InternalEvent"AL is case-insensitive, so 5. The robust overloads exist but aren't used ( 🤔 Questions / minor6. Internal integration events → DC0009 or DC0010? ( 7. Duplicate ✅ Things I liked
CI is green across all BC versions and both new analyzers pass locally, so functionally it's solid — these are about robustness and consistency. I also confirmed the Note: I didn't write this review myself — it was generated with the help of an AI assistant. |
Before I push, I need clarification about the issue with 1 and the failing tests when isEnabledByDefault = false. P.S.: |
|
Thanks for look into the feedback (and your quick response!) On 1) - Oops, that was indeed still on the backlog. I've updated main where you now can set a .ruleset file, see the examples on d143bb9 I've also reworked the RoslynTestKit, where from v1.3.0 it should handle CR/LF without any errors. So if you would merge the main back into your branch, the depedency to RoslynTestKit should be updated to v1.4.0 (which support the .ruleset file) |
|
Looks great! Thanks a lot for the PR (and the rework). Let's get this merged! |
|
Great. If I find some time next week, I'll do the Naming pattern stuff. |
#341
DC0006: Internal procedures must include XML documentation comments
DC0007: Public objects must include XML documentation comments
DC0008: Internal objects must include XML documentation comments
DC0009: Events must must include XML documentation comments
DC0010: Internal events must include XML documentation comments