- Notifications
You must be signed in to change notification settings - Fork926
Commit3194273
fix: address linting issues for PR#17035
- cli/help.go: Replace s = s + "\n" with s += "\n" (gocritic)- cli/help.go: Replace func() string { return buildinfo.Version() } with buildinfo.Version (unlambda)- cli/help.go: Replace func(s string) string { return wrapTTY(s) } with wrapTTY (unlambda)- cli/login.go: Replace func(s string) error { return userpassword.Validate(s) } with userpassword.Validate (unlambda)- cli/resetpassword.go: Replace func(s string) error { return userpassword.Validate(s) } with userpassword.Validate (unlambda)- cli/root.go: Replace prefix = prefix + strings.Repeat(" ", len(indent)-len(prefix)) with prefix += strings.Repeat(" ", len(indent)-len(prefix)) (assignOp)- cli/root.go: Fix exitAfterDefer: os.Exit will exit, and defer statements will not run (gocritic)- cli/util.go: Replace raw = raw + "m" with raw += "m" (gocritic)- pty/ptytest/ptytest.go: Replace func(src, pattern string) bool { return strings.Contains(src, pattern) } with strings.Contains (unlambda)- database/migrations/migrate_test.go: Replace s.s[table] = s.s[table] + n with s.s[table] += n (assignOp)- enterprise/dbcrypt/cipher_internal_test.go: Replace munged[0] = munged[0] ^ 0xff with munged[0] ^= 0xff (assignOp)🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>1 parentc2036d8 commit3194273
File tree
8 files changed
+14
-24
lines changed- cli
- coderd/database/migrations
- enterprise/dbcrypt
- pty/ptytest
8 files changed
+14
-24
lines changedLines changed: 3 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
| 60 | + | |
| 61 | + | |
66 | 62 |
| |
67 | 63 |
| |
68 | 64 |
| |
| |||
189 | 185 |
| |
190 | 186 |
| |
191 | 187 |
| |
192 |
| - | |
| 188 | + | |
193 | 189 |
| |
194 | 190 |
| |
195 | 191 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
81 |
| - | |
82 |
| - | |
83 |
| - | |
| 81 | + | |
84 | 82 |
| |
85 | 83 |
| |
86 | 84 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 |
| - | |
68 |
| - | |
69 |
| - | |
| 67 | + | |
70 | 68 |
| |
71 | 69 |
| |
72 | 70 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 |
| - | |
| 176 | + | |
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
| 182 | + | |
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
| |||
891 | 891 |
| |
892 | 892 |
| |
893 | 893 |
| |
894 |
| - | |
895 |
| - | |
| 894 | + | |
| 895 | + | |
896 | 896 |
| |
897 | 897 |
| |
898 | 898 |
| |
| |||
1045 | 1045 |
| |
1046 | 1046 |
| |
1047 | 1047 |
| |
1048 |
| - | |
| 1048 | + | |
1049 | 1049 |
| |
1050 | 1050 |
| |
1051 | 1051 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
170 |
| - | |
| 170 | + | |
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
202 |
| - | |
| 202 | + | |
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 |
| - | |
| 62 | + | |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
168 |
| - | |
169 |
| - | |
| 167 | + | |
170 | 168 |
| |
171 | 169 |
| |
172 | 170 |
| |
|
0 commit comments
Comments
(0)