1
0
forked from baron/baron-sso

dev 병합 후 code-check

This commit is contained in:
2026-04-06 17:21:41 +09:00
parent 69d7f053be
commit 886e99bfa9
3 changed files with 1616 additions and 805 deletions

View File

@@ -3,6 +3,7 @@
const fs = require("fs");
const path = require("path");
const { spawnSync } = require("child_process");
const ROOT = process.cwd();
const LOCALES_DIR = path.join(ROOT, "locales");
@@ -84,3 +85,12 @@ const output = [
].join("\n");
fs.writeFileSync(OUT_PATH, output, "utf8");
const formatResult = spawnSync("dart", ["format", OUT_PATH], {
cwd: ROOT,
stdio: "inherit",
});
if (formatResult.status !== 0) {
process.exit(formatResult.status ?? 1);
}

View File

@@ -58,10 +58,10 @@ class _ConsentScreenState extends State<ConsentScreen> {
}
String _renderConsentText(String key, {String? fallback}) {
return tr(key, fallback: fallback)
.replaceAll(r'\\n', '\n')
.replaceAll(r'\n', '\n')
.replaceAll('\\\n', '\n');
return tr(
key,
fallback: fallback,
).replaceAll(r'\\n', '\n').replaceAll(r'\n', '\n').replaceAll('\\\n', '\n');
}
String _renderScopeCountLabel(int count) {

File diff suppressed because one or more lines are too long