gitea/modules/structs
Wim cb50375e2b
Add more linters to improve code readability ()
Add nakedret, unconvert, wastedassign, stylecheck and nolintlint linters to improve code readability

- nakedret - https://github.com/alexkohler/nakedret - nakedret is a Go static analysis tool to find naked returns in functions greater than a specified function length.
- unconvert - https://github.com/mdempsky/unconvert - Remove unnecessary type conversions
- wastedassign - https://github.com/sanposhiho/wastedassign -  wastedassign finds wasted assignment statements.
- notlintlint -  Reports ill-formed or insufficient nolint directives
- stylecheck - https://staticcheck.io/docs/checks/#ST - keep style consistent
  - excluded: [ST1003 - Poorly chosen identifier](https://staticcheck.io/docs/checks/#ST1003) and [ST1005 - Incorrectly formatted error string](https://staticcheck.io/docs/checks/#ST1005)
..
activitypub.go User keypairs and HTTP signatures for ActivityPub federation using go-ap ()
admin_user.go Respect DefaultUserIsRestricted system default when creating new user ()
attachment.go
commit_status.go
cron.go
doc.go
fork.go - name: new parameter in CreateForkOption to give the forked repository ()
git_blob.go
git_hook.go
hook.go Add Package Registry ()
issue.go Add option to define refs in issue templates ()
issue_comment.go Add API to get issue/pull comments and events (timeline) ()
issue_label.go
issue_milestone.go
issue_reaction.go
issue_stopwatch.go
issue_tracked_time.go
lfs_lock.go
miscellaneous.go
nodeinfo.go Add nodeinfo endpoint for federation purposes ()
notifications.go API: add html urls to notification subjects ()
org.go Fix various typos ()
org_member.go
org_team.go Team permission allow different unit has different permission ()
org_type.go Add more linters to improve code readability ()
package.go Add Package Registry ()
pull.go Add "Allow edits from maintainer" feature ()
pull_review.go
release.go
repo.go When updating mirror repo intervals by API reschedule next update too ()
repo_branch.go Support unprotected file patterns ()
repo_collaborator.go Add API to query collaborators permission for a repository ()
repo_commit.go More commit info from API ()
repo_file.go Add "Allow edits from maintainer" feature ()
repo_key.go
repo_note.go
repo_refs.go
repo_tag.go
repo_topic.go
repo_tree.go
repo_watch.go
repo_wiki.go Add API to get/edit wiki ()
settings.go
status.go
task.go
user.go
user_app.go
user_email.go
user_gpgkey.go
user_key.go