You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/setting
Wim cb50375e2b
Add more linters to improve code readability (#19989)
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)
3 years ago
..
attachment.go format with gofumpt (#18184) 3 years ago
cache.go format with gofumpt (#18184) 3 years ago
cors.go format with gofumpt (#18184) 3 years ago
cron.go
cron_test.go format with gofumpt (#18184) 3 years ago
database.go Add more linters to improve code readability (#19989) 3 years ago
database_sqlite.go Remove legacy `+build:` constraint (#19582) 3 years ago
database_test.go
directory.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
federation.go Add more linters to improve code readability (#19989) 3 years ago
git.go format with gofumpt (#18184) 3 years ago
i18n.go Add more linters to improve code readability (#19989) 3 years ago
indexer.go format with gofumpt (#18184) 3 years ago
indexer_test.go format with gofumpt (#18184) 3 years ago
lfs.go format with gofumpt (#18184) 3 years ago
log.go Add more linters to improve code readability (#19989) 3 years ago
mailer.go format with gofumpt (#18184) 3 years ago
markup.go Allow render HTML with css/js external links (#19017) 3 years ago
migrations.go format with gofumpt (#18184) 3 years ago
mime_type_map.go format with gofumpt (#18184) 3 years ago
mirror.go format with gofumpt (#18184) 3 years ago
oauth2_client.go
packages.go Fixed registry host value. (#19363) 3 years ago
picture.go Make AvatarRenderedSizeFactor configurable and set it to 3 (#17951) 3 years ago
project.go
proxy.go format with gofumpt (#18184) 3 years ago
queue.go Enable deprecation error for v1.17.0 (#18341) 3 years ago
repository.go Move some code into models/git (#19879) 3 years ago
service.go Add more linters to improve code readability (#19989) 3 years ago
session.go format with gofumpt (#18184) 3 years ago
setting.go Make AppDataPath absolute against the AppWorkPath if it is not (#19815) 3 years ago
setting_test.go Add an abstract json layout to make it's easier to change json library (#16528) 4 years ago
storage.go
storage_test.go
task.go Enable deprecation error for v1.17.0 (#18341) 3 years ago
webhook.go Add packagist webhook (#18224) 3 years ago