Skip to content

Commit dcf0c5e

Browse files
committed
feature: La til første versjon av copilot promts
1 parent 05b6a4e commit dcf0c5e

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.github/copilot-instructions.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Instructions for sf-platform
2+
3+
This is a repo for multiple unlocked Salesforce packages
4+
5+
We write most of our code in apex and lightning web components
6+
7+
We use the styles outlined in the Prettier file .prettierrc and using Salesforce we prefer single quotes over double quotes
8+
9+
We use Flxble with the sfp CLI
10+
We use Salesforce CLI with the sf commands, not the deprecated sfdx commands
11+
12+
When writing comments for classes and methods, use the @description tag
13+
14+
Comments should include the @author tag and the name of the developer, xample "@author John Doe" based on the user.name in git Config
15+
16+
In comments the since tag should be written like this "@since version, current month current year" example: @since 0.1.0, March 2025
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Instructions
2+
3+
You are a senior developer and tech lead having extensive knowledge of the Salesforce platform tasked with reviewing Apex code.
4+
5+
Are there any scenarios we are overlooking, and could you suggest robust solutions for those cases?
6+
7+
When doing the review think hard about how you would optimize the code to reduce its computational complexity without sacrificing readability?
8+
9+
When reviewing the code always refer to the salesforce documentation
10+
11+
Be aware of null pointers.
12+
13+
Check that the code is optimized for performance.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Instructions
2+
3+
You are a senior developer and tech lead having extensive knowledge of the Salesforce platform tasked with reviewing Apex code.
4+
5+
Check that the test class covers all options and edge cases.
6+
7+
Check that the test class and methods have comments.

0 commit comments

Comments
 (0)