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.
forgejo/modules/markup
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)
2 years ago
..
common Add more linters to improve code readability (#19989) 2 years ago
console Allow render HTML with css/js external links (#19017) 2 years ago
csv Allow render HTML with css/js external links (#19017) 2 years ago
external Allow render HTML with css/js external links (#19017) 2 years ago
markdown Add more linters to improve code readability (#19989) 2 years ago
mdstripper format with gofumpt (#18184) 2 years ago
orgmode Add more linters to improve code readability (#19989) 2 years ago
camo.go Provide configuration to allow camo-media proxying (#12802) 2 years ago
camo_test.go Provide configuration to allow camo-media proxying (#12802) 2 years ago
html.go Custom regexp external issues (#17624) 2 years ago
html_internal_test.go Custom regexp external issues (#17624) 2 years ago
html_test.go Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 2 years ago
renderer.go Allow render HTML with css/js external links (#19017) 2 years ago
renderer_test.go A better go code formatter, and now `make fmt` can run in Windows (#17684) 3 years ago
sanitizer.go format with gofumpt (#18184) 2 years ago
sanitizer_test.go Add more linters to improve code readability (#19989) 2 years ago