Commit 846aac0
fix: Vitest移行後のコードスタイルとSonarQube問題を修正
- モックファイル(__mocks__/*.js)の先頭空行を除去
- 各テストファイルのimport文をvi.mockより前に移動(Vitestのhoistingを活用)
- 不要なeslint-disable/eslint-envコメントを削除
- lyrics/index.test.ts: scrapeHTML + HTMLコンテンツを使った元のテストロジックに近い形に復元
- shogi/index.ts: parseInt()由来の値のみのSQL文字列補間にNOSONARを追加
- vocabwar/index.ts: querySelector/matchのnullデリファレンスをoptional chainingで修正
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fdbd0bc commit 846aac0
36 files changed
Lines changed: 123 additions & 141 deletions
File tree
- __mocks__
- auto-archiver
- checkin
- discord
- jantama
- lib
- lyrics
- mahjong
- mail-hook
- octas
- pocky
- ponpe
- prime
- remember-english
- ricochet-robots
- room-gacha
- shogi
- sunrise
- sushi-bot
- topic
- twenty-questions
- views
- twitter-dm-notifier
- vocabwar
- voiperrobot
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
6 | 4 | | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
0 commit comments