- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3
Add rule suppression docs to README and each rule #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rule suppression docs to README and each rule #241
Conversation
| 📝 WalkthroughWalkthroughThe pull request introduces significant updates to the documentation for the Moq.Analyzers project, specifically enhancing clarity on suppressing warnings related to various analyzer rules. A new section titled "Configuring rules" has been added to the  Changes
 Assessment against linked issues
 Possibly related PRs
 Suggested labels
 Suggested reviewers
 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit: 
 Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
 Other keywords and placeholders
 CodeRabbit Configuration File ( | 
| Code Climate has analyzed commit f91f04c and detected 7 issues on this pull request. Here's the issue category breakdown: 
 View more on Code Climate. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 12
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
📒 Files selected for processing (11)
- README.md (1 hunks)
- docs/rules/Moq1000.md (2 hunks)
- docs/rules/Moq1001.md (2 hunks)
- docs/rules/Moq1002.md (2 hunks)
- docs/rules/Moq1100.md (2 hunks)
- docs/rules/Moq1101.md (2 hunks)
- docs/rules/Moq1200.md (2 hunks)
- docs/rules/Moq1201.md (2 hunks)
- docs/rules/Moq1300.md (2 hunks)
- docs/rules/Moq1400.md (2 hunks)
- docs/rules/README.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (10)
docs/rules/Moq1000.md (1)
Pattern
docs/rules/**/*.md: Evaluate the markdown files against the standards for Roslyn Code Analysis rulesdocs/rules/Moq1001.md (1)
Pattern
docs/rules/**/*.md: Evaluate the markdown files against the standards for Roslyn Code Analysis rulesdocs/rules/Moq1002.md (1)
Pattern
docs/rules/**/*.md: Evaluate the markdown files against the standards for Roslyn Code Analysis rulesdocs/rules/Moq1100.md (1)
Pattern
docs/rules/**/*.md: Evaluate the markdown files against the standards for Roslyn Code Analysis rulesdocs/rules/Moq1101.md (1)
Pattern
docs/rules/**/*.md: Evaluate the markdown files against the standards for Roslyn Code Analysis rulesdocs/rules/Moq1200.md (1)
Pattern
docs/rules/**/*.md: Evaluate the markdown files against the standards for Roslyn Code Analysis rulesdocs/rules/Moq1201.md (1)
Pattern
docs/rules/**/*.md: Evaluate the markdown files against the standards for Roslyn Code Analysis rulesdocs/rules/Moq1300.md (1)
Pattern
docs/rules/**/*.md: Evaluate the markdown files against the standards for Roslyn Code Analysis rulesdocs/rules/Moq1400.md (1)
Pattern
docs/rules/**/*.md: Evaluate the markdown files against the standards for Roslyn Code Analysis rulesdocs/rules/README.md (1)
Pattern
docs/rules/**/*.md: Evaluate the markdown files against the standards for Roslyn Code Analysis rules
🪛 LanguageTool
README.md
[uncategorized] ~39-~39: This verb does not appear to agree with the subject. Consider using a different form.
Context: .... ### Configuring rules Moq.Analyzers follows existing conventions for enabling, disa...(AI_EN_LECTOR_REPLACEMENT_VERB_AGREEMENT)
🪛 Markdownlint
docs/rules/Moq1000.md
7-7: null
Tables should be surrounded by blank lines(MD058, blanks-around-tables)
docs/rules/Moq1001.md
7-7: null
Tables should be surrounded by blank lines(MD058, blanks-around-tables)
docs/rules/Moq1002.md
7-7: null
Tables should be surrounded by blank lines(MD058, blanks-around-tables)
docs/rules/Moq1100.md
7-7: null
Tables should be surrounded by blank lines(MD058, blanks-around-tables)
docs/rules/Moq1101.md
7-7: null
Tables should be surrounded by blank lines(MD058, blanks-around-tables)
docs/rules/Moq1200.md
7-7: null
Tables should be surrounded by blank lines(MD058, blanks-around-tables)
docs/rules/Moq1201.md
7-7: null
Tables should be surrounded by blank lines(MD058, blanks-around-tables)
docs/rules/Moq1300.md
7-7: null
Tables should be surrounded by blank lines(MD058, blanks-around-tables)
docs/rules/Moq1400.md
7-7: null
Tables should be surrounded by blank lines(MD058, blanks-around-tables)
🔇 Additional comments (11)
docs/rules/README.md (2)
3-4: LGTM! Table formatting is clean and consistent.The table structure follows markdown best practices with proper alignment and spacing.
13-13: LGTM! New rule documentation is well-structured.The Moq1400 rule entry follows the established pattern and provides clear guidance about explicit mocking behavior configuration.
docs/rules/Moq1000.md (1)
31-53: LGTM! Well-structured suppression documentation.The new section excellently addresses issue #238 by:
- Providing clear instructions for both inline and configuration-based suppression
- Including practical code examples
- Linking to official documentation for further reading
docs/rules/Moq1001.md (1)
36-58: LGTM! Well-structured documentation on rule suppression.The new section effectively addresses the original issue by providing:
- Clear instructions for both inline and configuration-based suppression
- Accurate code examples
- Helpful references to official documentation
docs/rules/Moq1200.md (1)
37-60: LGTM! Well-structured suppression documentation.The new section effectively addresses the PR objectives by:
- Providing clear instructions for both inline and configuration-based suppression
- Including practical code examples with proper syntax highlighting
- Linking to official Microsoft documentation for further reading
docs/rules/Moq1101.md (1)
34-55: LGTM! Well-documented rule suppression instructions.The new section excellently fulfills the PR objectives by:
- Providing clear instructions for both inline and configuration-based suppression
- Including practical code examples
- Linking to official documentation for further reading
docs/rules/Moq1300.md (1)
49-71: LGTM! Well-documented rule suppression guidance.The new section excellently addresses the documentation gap identified in issue #238. It provides:
- Clear instructions for both inline and configuration-based suppression
- Practical code examples
- Helpful links to official documentation
docs/rules/Moq1201.md (1)
37-59: Well-structured and comprehensive rule suppression documentation!The new section effectively addresses the PR objectives by:
- Providing clear instructions for both inline and configuration-based suppression
- Including practical code examples
- Linking to official documentation for further reading
docs/rules/Moq1100.md (1)
41-64: Well-structured and comprehensive rule suppression documentation!The new section effectively addresses the documentation gap identified in issue #238 by:
- Providing clear examples for both inline suppression and configuration-based approaches
- Including proper references to Microsoft's official documentation
- Following a consistent format with other rule documentation
docs/rules/Moq1400.md (1)
49-71: LGTM! Well-structured rule suppression documentation.The new section on rule suppression is comprehensive and follows best practices:
- Clear examples of both inline suppression using preprocessor directives
- Configuration-based suppression instructions
- Proper references to official documentation
- Consistent formatting with other rule documentation
README.md (1)
37-41: LGTM! The new section addresses the documentation gap.The addition of the "Configuring rules" section with a reference to official Microsoft documentation fulfills the primary objective of documenting rule suppression capabilities.
🧰 Tools
🪛 LanguageTool
[uncategorized] ~39-~39: This verb does not appear to agree with the subject. Consider using a different form.
Context: .... ### Configuring rules Moq.Analyzers follows existing conventions for enabling, disa...(AI_EN_LECTOR_REPLACEMENT_VERB_AGREEMENT)
| Thank you! | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
Fixes #238
//docs/README.md//docs/rules/*.mdSummary by CodeRabbit
New Features
Documentation
Bug Fixes