mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-01 05:12:13 +00:00
Add and modify more instruction for common problems in this codebase and made the force-push instruction more strict. --------- Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
12 lines
784 B
Markdown
12 lines
784 B
Markdown
- Use `make help` to find available development targets
|
|
- Run `make fmt` to format `.go` files, and run `make lint-go` to lint them
|
|
- Run `make lint-js` to lint `.ts` files
|
|
- Run `make tidy` after any `go.mod` changes
|
|
- Add the current year into the copyright header of new `.go` files
|
|
- Ensure no trailing whitespace in edited files
|
|
- Never force-push, amend, or squash unless asked. Use new commits and normal push for pull request updates
|
|
- Preserve existing code comments, do not remove or rewrite comments that are still relevant
|
|
- In TypeScript, use `!` (non-null assertion) instead of `?.`/`??` when a value is known to always exist
|
|
- Include authorship attribution in issue and pull request comments
|
|
- Add `Co-Authored-By` lines to all commits, indicating name and model used
|