-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SonarCloudに「範囲外アクセスの可能性がある」と言われている箇所を対処する #1567
Merged
berryzplus
merged 3 commits into
sakura-editor:master
from
berryzplus:feature/fix_out_of_bounds
Mar 7, 2021
Merged
SonarCloudに「範囲外アクセスの可能性がある」と言われている箇所を対処する #1567
berryzplus
merged 3 commits into
sakura-editor:master
from
berryzplus:feature/fix_out_of_bounds
Mar 7, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
berryzplus
commented
Mar 5, 2021
✅ Build sakura 1.0.3507 completed (commit bc24082db5 by @berryzplus) |
✅ Build sakura 1.0.3508 completed (commit e7adf7aaf1 by @berryzplus) |
sanomari
reviewed
Mar 6, 2021
sanomari
reviewed
Mar 6, 2021
PRをバラして出し直そうとしたところ、同ファイル内で検出されたBugsがスキャン結果にあがってしまって紛らわしくなったのでこのまま続行します。 |
berryzplus
force-pushed
the
feature/fix_out_of_bounds
branch
from
March 7, 2021 05:59
ad53940
to
0f4ff8f
Compare
Kudos, SonarCloud Quality Gate passed! |
✅ Build sakura 1.0.3517 completed (commit 1fefdbde8d by @berryzplus) |
sanomari
approved these changes
Mar 7, 2021
レビューありがとうございます。マージしちゃいます。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR の目的
SonarCloudにBugだと言われている箇所を対処します。
カテゴリ
PR の背景
#1504 の対応を少し進めたいので作ってみました。
PR のメリット
SonarCloudにBugだと言われている警告が2つ減ります。
PR のデメリット (トレードオフとかあれば)
単体テストでカバーできない範囲の修正なのでカバレッジが下がります。
仕様・動作説明
配列に対して添え字でアクセスするコードがBugだと言われているようなので、
添え字を使わないように同等の処理を実装することにより対策します。
PR の影響範囲
バックアップ機能のバックアップファイル名生成に影響する変更です。
テスト内容
デメリットに記載した通り、とくにテストは行っていません。
関連 issue, PR
#1504
参考資料