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

fix: フォーマット #280

Merged
merged 3 commits into from
Sep 29, 2024
Merged

fix: フォーマット #280

merged 3 commits into from
Sep 29, 2024

Conversation

blendthink
Copy link
Contributor

Issue

なし

説明

以前、slang で自動生成されたコードがフォーマットされない問題が発覚しました。
slang-i18n/slang#184

そのため melos format コマンドで毎回余計な差分が発生してしまうため CI で melos format コマンドによるチェックができない状況でした。

melos run rebuild コマンドで必ず melos format すればいいと考えましたが、そうすると string.g.dart ファイル内でクラス内の変数を使っていないという警告が出るようになってしまいました。

そのため、いったん苦肉の策として analyzer から 18n/string.g.dart を除外するようにしました。

画像 / 動画

見た目の変更なし。

その他

Copy link
Contributor

@YumNumm YumNumm left a comment

Choose a reason for hiding this comment

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

LGTM

ありがとうございます🙇

Comment on lines +9 to +10
exclude:
- lib/gen/i18n/strings.g.dart
Copy link
Contributor

Choose a reason for hiding this comment

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

memo-badge
メインの修正箇所

@@ -49,7 +49,7 @@ scripts:
dependsOn: custom_lint

rebuild:
run: dart run build_runner build -d
run: dart run build_runner build -d && melos format -c 5
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks-badge

@blendthink blendthink merged commit 1cb7faf into main Sep 29, 2024
11 checks passed
@blendthink blendthink deleted the improvement/format-code branch September 29, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data Related to data improvement Improvements in performance, compensation, operations, etc. size/S ticket Related to ticket system website Related to website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants