Earl Warren
7b79294684
[GITEA] Revert "Make `user-content-* ` consistent with github ( #26388 )"
...
Refs: https://codeberg.org/forgejo/forgejo/issues/1943
This reverts commit d41aee1d1e
.
(cherry picked from commit d29ec91e91
)
(cherry picked from commit a0f5a9750e
)
(cherry picked from commit 26bfc3bc14
)
(cherry picked from commit 59f57a1bc9
)
(cherry picked from commit ce3b73a033
)
(cherry picked from commit 2c426c28af
)
(cherry picked from commit 155a08bca7
)
(cherry picked from commit 8934fd895c
)
2024-02-05 16:09:41 +01:00
CaiCandong
d41aee1d1e
Make `user-content-* ` consistent with github ( #26388 )
...
Fix #26367
Related #19745
Thanks @lazyky for providing test cases
2023-08-09 09:30:31 +00:00
flynnnnnnnnnn
e81ccc406b
Implement FSFE REUSE for golang files ( #21840 )
...
Change all license headers to comply with REUSE specification.
Fix #16132
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-11-27 18:20:29 +00:00
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 )
2022-06-20 12:02:49 +02:00
zeripath
b34923d919
Update Goldmark to Goldmark 1.4.4 ( #18420 )
...
* Update Goldmark to Goldmark 1.4.4
* nolint the deprecation
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-29 21:17:21 +08:00
6543
54e9ee37a7
format with gofumpt ( #18184 )
...
* gofumpt -w -l .
* gofumpt -w -l -extra .
* Add linter
* manual fix
* change make fmt
2022-01-20 18:46:10 +01:00
Ben Niemann
2871e58a01
Remove unneeded debug messages to stdout. ( #18298 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-01-16 23:42:06 +08:00
Lunny Xiao
4a57c9ea17
Fix some lints ( #17337 )
...
Fix some linting problems.
2021-10-17 20:47:12 +01:00
zeripath
f91bb745d6
Don't replace underscores in auto-generated IDs in goldmark ( #12805 )
...
Fix #12196
Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-09-12 12:00:48 -04:00
zeripath
27757714d0
Change markdown rendering from blackfriday to goldmark ( #9533 )
...
* Move to goldmark
Markdown rendering moved from blackfriday to the goldmark.
Multiple subtle changes required to the goldmark extensions to keep
current rendering and defaults.
Can go further with goldmark linkify and have this work within markdown
rendering making the link processor unnecessary.
Need to think about how to go about allowing extensions - at present it
seems that these would be hard to do without recompilation.
* linter fixes
Co-authored-by: Lauris BH <lauris@nix.lv>
2019-12-31 03:53:28 +02:00