Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!--
- SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Copilot Code Review Instructions

## Scope
Only review for the following:
- **Bugs**
- **Security**: Injection vulnerabilities (SQL, command, XSS), hardcoded
secrets or credentials, insecure deserialization, broken auth,
path traversal, unsafe use of eval or dynamic code execution.

## Strict exclusions — do not comment on these
- Code style, formatting, or whitespace
- Naming conventions (variables, functions, classes, files)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd leave that to us humans

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can see how it goes and adjust the doc. This is just a start

- Suggestions to refactor or restructure working code
- Performance micro-optimizations unless they cause a measurable performance regression or issue
- Alternative ways to write functionally equivalent code

## If no bugs or security issues are found
Leave a short positive review. Example:
> "No bugs or security issues found. Looks good to me."

## Review format
Do not include a summary or overview of the changes at the start of the review.
Go directly to findings, or if there are none, leave only the approval line.

## Comment format (when issues are found)
For each issue, state:
1. **Type**: Bug or Security
2. **Severity**: Critical / High / Medium
3. **Problem**: What is wrong and why it matters
4. **Suggestion**: A concrete fix, not a vague recommendation

Do not leave comments that don't fit this format.
Loading