Skip to content
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

設定値読み込みで発生した変換エラーを検出できるようにする #1548

Merged

Conversation

sanomari
Copy link
Contributor

PR の目的

タイトル通りです。

カテゴリ

  • 仕様変更

PR の背景

背景は過去PR #1152 とオーバーラップします。

サクラエディタの設定読込機構にエラー検出機構を付けたいと考えています。

先ほどマージした #1546 の続きでもあります。

PR のメリット

設定値の読込失敗を検出できるようになります。

PR のデメリット (トレードオフとかあれば)

既存コードに影響を与える可能性があります。

仕様・動作説明

従来は、int型などの特定型にエントリが変換できないことを考慮していませんでした。
このPRは、int型などの特定型にエントリが変換できなかったことを検出します。

基準 エントリなし時戻り値 変換失敗時戻り値 変換失敗時出力値
従来仕様 false true 0に初期化
新仕様 false false 変更しない

PR の影響範囲

設定値の読み書きに影響する変更です。

テスト内容

変更の基本部分については、追加した単体テストでカバーできると思います。

設定のインポート・エクスポートについては、実行させる方法が分からないのでパスしました。
この部分の修正はWrapIntとMakeStringBufferWの廃止のみなのでテストは不要と思います。

関連 issue, PR

#1546
#1152
#1150
#1145

参考資料

@sanomari sanomari force-pushed the feature/refactoring_of_cdataprofile branch from df19ca5 to b582c83 Compare February 21, 2021 16:15
@AppVeyorBot
Copy link

Build sakura 1.0.3470 completed (commit a1a5d97467 by @sanomari)

@sonarcloud
Copy link

sonarcloud bot commented Feb 21, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

87.7% 87.7% Coverage
0.0% 0.0% Duplication

@AppVeyorBot
Copy link

Build sakura 1.0.3471 completed (commit 2859358244 by @sanomari)

@sanomari sanomari marked this pull request as ready for review February 21, 2021 23:54
@berryzplus
Copy link
Contributor

ぱっと判断できませんでした。

Copy link
Contributor

@berryzplus berryzplus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

良さそうな気がしてきたのでapproveしてしまいます。

@sanomari sanomari merged commit 78ba09a into sakura-editor:master Feb 22, 2021
@sanomari sanomari deleted the feature/refactoring_of_cdataprofile branch February 22, 2021 15:24
@beru beru added the specification change ■仕様変更 label Mar 21, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
specification change ■仕様変更
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants