mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: Disallow using legacy params with rich params (#5974)
* feat: Disallow using legacy params with rich params * Fix * nolint
This commit is contained in:
@ -260,7 +260,7 @@ func assertGoCommentFirst(t *testing.T, comment SwaggerComment) {
|
||||
text := strings.TrimSpace(line.Text)
|
||||
|
||||
if inSwaggerBlock {
|
||||
if !strings.HasPrefix(text, "// @") {
|
||||
if !strings.HasPrefix(text, "// @") && !strings.HasPrefix(text, "// nolint:") {
|
||||
assert.Fail(t, "Go function comment must be placed before swagger comments")
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user