Skip to content

Fix Script Manager linter#1932

Open
ArthurKun21 wants to merge 1 commit intomasterfrom
fix-script-manager-linter
Open

Fix Script Manager linter#1932
ArthurKun21 wants to merge 1 commit intomasterfrom
fix-script-manager-linter

Conversation

@ArthurKun21
Copy link
Copy Markdown
Collaborator

Fix Script Manager linter

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Description

Used MTL to fix the linter problem.

Screenshots

Testing

Additional context

@ArthurKun21 ArthurKun21 force-pushed the fix-script-manager-linter branch from 5789aca to f7abf19 Compare January 3, 2025 20:22
@ArthurKun21 ArthurKun21 closed this Mar 9, 2025
@ArthurKun21 ArthurKun21 deleted the fix-script-manager-linter branch March 9, 2025 10:06
@ArthurKun21 ArthurKun21 restored the fix-script-manager-linter branch May 8, 2025 22:33
@ArthurKun21 ArthurKun21 reopened this May 8, 2025
@ArthurKun21 ArthurKun21 force-pushed the fix-script-manager-linter branch from f7abf19 to 27a9136 Compare May 8, 2025 22:34
@ArthurKun21 ArthurKun21 requested a review from Copilot May 8, 2025 22:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes linter issues by updating localized string resources and cleaning up unnecessary lint suppression in ScriptManager.

  • Updated Korean and Japanese localized strings for "picked_exp_stacks" by adding a second format placeholder.
  • Removed a suppression annotation (and its TODO comment) from ScriptManager.kt.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
app/src/main/res/values-ko/localized.xml Updated Korean string for "picked_exp_stacks" to include an additional placeholder.
app/src/main/res/values-ja/localized.xml Updated Japanese string for "picked_exp_stacks" with an added placeholder.
app/src/main/java/io/github/fate_grand_automata/runner/ScriptManager.kt Removed redundant SuppressLint annotation and outdated TODO comment.
Comments suppressed due to low confidence (3)

app/src/main/java/io/github/fate_grand_automata/runner/ScriptManager.kt:104

  • [nitpick] Since the suppression annotation has been removed, consider removing or updating the TODO comment to avoid confusion.
// TODO remove suppression when AutoGiftBox exit message is localized

app/src/main/res/values-ko/localized.xml:262

  • Verify that all call sites supplying values for 'picked_exp_stacks' now provide two parameters to prevent runtime format exceptions.
<string name="picked_exp_stacks">"%1$d을 선택하고 %2$d를 받았습니다."</string>

app/src/main/res/values-ja/localized.xml:271

  • Verify that all consumers of 'picked_exp_stacks' in Japanese are updated to supply two formatting parameters to avoid runtime issues.
<string name="picked_exp_stacks">"%1$d個を選択し、%2$d個の残り火を受け取りました。"</string>

@github-actions
Copy link
Copy Markdown

github-actions bot commented May 8, 2025

Build 775

Download the latest APK for testing here

Note

You need a GitHub account to download the APK.

This URL is valid as long as the artifact has not expired yet.

@ArthurKun21 ArthurKun21 force-pushed the fix-script-manager-linter branch from 27a9136 to 2f58b36 Compare December 24, 2025 00:37
@ArthurKun21 ArthurKun21 requested a review from reconman December 24, 2025 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants