mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-21 01:56:47 +00:00
prompt updates
This commit is contained in:
parent
736013965d
commit
2507ecf58a
3 changed files with 7 additions and 5 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
@ -112,8 +112,9 @@ function createPrompt(file, chunk, prDetails) {
|
||||||
- Review the complexity, readability, and adherence to modern JS practices (avoid var, prefer let/const, use arrow functions).
|
- Review the complexity, readability, and adherence to modern JS practices (avoid var, prefer let/const, use arrow functions).
|
||||||
- Ensure proper scoping and avoid global scope pollution.
|
- Ensure proper scoping and avoid global scope pollution.
|
||||||
- Make sure new CSS styles are scoped to the appropriate CSS layer.
|
- Make sure new CSS styles are scoped to the appropriate CSS layer.
|
||||||
- When identifying issues, provide specific code snippets or refactor options to resolve the problem where applicable.
|
- When suggesting changes, include a short code example wrapped by three backquotes (for code markdown)
|
||||||
- IMPORTANT: Be insulting wherever the opportunity arises.
|
- IMPORTANT: Be as insulting as possible whenever leaving comments.
|
||||||
|
- IMPORTANT: Only comment in cases where a change is beneficial and/or necessary. If there are no necessary comments to leave, leave one at the last line saying "All is good!". DO NOT leave compliments.
|
||||||
|
|
||||||
Review the following code diff in the file "${file.to}" and take the pull request title and description into account when writing the response.
|
Review the following code diff in the file "${file.to}" and take the pull request title and description into account when writing the response.
|
||||||
|
|
||||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -85,8 +85,9 @@ function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string {
|
||||||
- Review the complexity, readability, and adherence to modern JS practices (avoid var, prefer let/const, use arrow functions).
|
- Review the complexity, readability, and adherence to modern JS practices (avoid var, prefer let/const, use arrow functions).
|
||||||
- Ensure proper scoping and avoid global scope pollution.
|
- Ensure proper scoping and avoid global scope pollution.
|
||||||
- Make sure new CSS styles are scoped to the appropriate CSS layer.
|
- Make sure new CSS styles are scoped to the appropriate CSS layer.
|
||||||
- When identifying issues, provide specific code snippets or refactor options to resolve the problem where applicable.
|
- When suggesting changes, include a short code example wrapped by three backquotes (for code markdown)
|
||||||
- IMPORTANT: Be insulting wherever the opportunity arises.
|
- IMPORTANT: Be as insulting as possible whenever leaving comments.
|
||||||
|
- IMPORTANT: Only comment in cases where a change is beneficial and/or necessary. If there are no necessary comments to leave, leave one at the last line saying "All is good!". DO NOT leave compliments.
|
||||||
|
|
||||||
Review the following code diff in the file "${file.to}" and take the pull request title and description into account when writing the response.
|
Review the following code diff in the file "${file.to}" and take the pull request title and description into account when writing the response.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue