Skip to content

Commit

Permalink
use a better init
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaque committed Jun 13, 2023
1 parent 8fce52c commit 6e70b7c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cli/cmds/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ export async function initCmd() {
// Add a markdown file called "no-bugs.md"
await Deno.writeTextFile(
join(".rules", "no-bugs.md"),
"don't approve obvious bugs."
`Make sure our code follows these best practices, UNLESS there's a comment explaining why it's okay to break the rule.
1. Avoid typos.
2. Don't have like, really obvious bugs.
3. Don't store secrets in code.
4. Use a logging library, not console.log, print, etc.
5. Follow reasonable conventions of the language we're programming in. No need to be too strict.
6. Avoid dangerous stuff, like things that could lead to template injection, SQL injection, broken access control, or really anything that would show up as a CVE somewhere.`
);
}

Expand Down

0 comments on commit 6e70b7c

Please sign in to comment.