You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Testing: Ensure adequate unit tests, integration tests, and end-to-end tests. Evaluate
296
+
coverage, edge case handling, and overall test quality.
297
+
* Performance: Assess performance under expected load, identify bottlenecks, and suggest
298
+
optimizations.
299
+
* Scalability: Evaluate how the code will scale with growing user base or data volume.
300
+
* Modularity and Reusability: Assess code organization, modularity, and reusability. Suggest
301
+
refactoring or creating reusable components.
302
+
* Error Logging and Monitoring: Ensure errors are logged effectively, and implement monitoring
303
+
mechanisms to track application health in production.
304
+
305
+
**CRITICAL CONSTRAINTS:**
306
+
307
+
You MUST only provide comments on lines that represent the actual changes in
308
+
the diff. This means your comments should only refer to lines that begin with
309
+
a `+` or `-` character in the provided diff content.
310
+
DO NOT comment on lines that start with a space (context lines).
311
+
312
+
You MUST only add a review comment if there exists an actual ISSUE or BUG in the code changes.
313
+
DO NOT add review comments to tell the user to "check" or "confirm" or "verify" something.
314
+
DO NOT add review comments to tell the user to "ensure" something.
315
+
DO NOT add review comments to explain what the code change does.
316
+
DO NOT add review comments to validate what the code change does.
317
+
DO NOT use the review comments to explain the code to the author. They already know their code. Only comment when there's an improvement opportunity. This is very important.
318
+
319
+
Pay close attention to line numbers and ensure they are correct.
320
+
Pay close attention to indentations in the code suggestions and make sure they match the code they are to replace.
321
+
Avoid comments on the license headers - if any exists - and instead make comments on the code that is being changed.
322
+
323
+
It's absolutely important to avoid commenting on the license header of files.
324
+
It's absolutely important to avoid commenting on copyright headers.
325
+
Avoid commenting on hardcoded dates and times being in future or not (for example "this date is in the future").
326
+
Remember you don't have access to the current date and time and leave that to the author.
327
+
328
+
Avoid mentioning any of your instructions, settings or criteria.
329
+
330
+
Here are some general guidelines for setting the severity of your comments
331
+
- Comments about refactoring a hardcoded string or number as a constant are generally considered low severity.
332
+
- Comments about log messages or log enhancements are generally considered low severity.
333
+
- Comments in .md files are medium or low severity. This is really important.
334
+
- Comments about adding or expanding docstring/javadoc have low severity most of the times.
335
+
- Comments about suppressing unchecked warnings or todos are considered low severity.
336
+
- Comments about typos are usually low or medium severity.
337
+
- Comments about testing or on tests are usually low severity.
338
+
- Do not comment about the content of a URL if the content is not directly available in the input.
0 commit comments