chore: reduce Greptile review noise from defensive coding suggestions#423
Open
andreatgretel wants to merge 3 commits intomainfrom
Open
chore: reduce Greptile review noise from defensive coding suggestions#423andreatgretel wants to merge 3 commits intomainfrom
andreatgretel wants to merge 3 commits intomainfrom
Conversation
Set strictness to 3 (critical only), filter to logic-only comments, and add instructions to skip defensive coding patterns like error handling, null checks, and input validation unless there's an actual bug.
Contributor
Greptile SummaryThis PR tightens the Greptile reviewer configuration to reduce low-signal comments by raising strictness to 3, restricting emitted comment types to Key changes:
|
| Filename | Overview |
|---|---|
| greptile.json | Adds three noise-reduction settings (strictness: 3, commentTypes: ["logic"], instructions) and collapses the sequence diagram section by default — straightforward config-only change with no logic issues. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PR opened / updated] --> B[Greptile triggered]
B --> C{strictness >= 3?}
C -- "Yes (new)" --> D[Filter low-confidence findings]
C -- "No (old default 2)" --> E[Surface all findings]
D --> F{commentTypes check}
F -- "logic only (new)" --> G[Emit logic comments]
F -- "logic + style + syntax (old)" --> H[Emit all comment types]
G --> I{instructions filter}
I -- "No defensive-coding suggestions" --> J[Post final review comments]
H --> J
Last reviewed commit: 17079b6
eric-tramel
previously approved these changes
Mar 16, 2026
nabinchha
previously approved these changes
Mar 16, 2026
nabinchha
reviewed
Mar 16, 2026
| "fixWithAI": true, | ||
| "strictness": 3, | ||
| "commentTypes": ["logic"], | ||
| "instructions": "Do not suggest defensive coding patterns such as adding error handling, null checks, try/catch blocks, or input validation unless there is a concrete, demonstrable bug. Focus on logic errors, correctness issues, and actual bugs. Do not suggest adding logging, comments, or docstrings.", |
Contributor
There was a problem hiding this comment.
unrelated: may be we can collapse the sequence diagram by default?
Contributor
Author
There was a problem hiding this comment.
I think so, hasn't been super helpful! Added.
b27e577
nabinchha
approved these changes
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reduce noise from Greptile's automated code reviews by raising the severity threshold, filtering to logic-only comments, and adding explicit instructions to skip defensive coding suggestions.
Changes
Changed
greptile.json- Added three noise-reduction settings:strictness: 3- only surface critical issues (was default 2)commentTypes: ["logic"]- skip style and syntax commentsinstructions- tell Greptile to avoid suggesting error handling, null checks, try/catch, input validation, logging, comments, or docstrings unless there's a concrete bugGenerated with AI