惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
博客园 - 司徒正美
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
罗磊的独立博客
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
T
Tailwind CSS Blog
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
MyScale Blog
MyScale Blog
J
Java Code Geeks
L
LangChain Blog
S
SegmentFault 最新的问题
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
chore: move swift configs under config · openclaw/opencla...
steipete · 2026-05-03 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1998,8 +1998,8 @@ jobs:

19981998
19991999

- name: Swift lint

20002000

run: |

2001-

swiftlint --config .swiftlint.yml

2002-

swiftformat --lint apps/macos/Sources --config .swiftformat

2001+

swiftlint lint --config config/swiftlint.yml

2002+

swiftformat --lint apps/macos/Sources --config config/swiftformat --exclude '**/OpenClawProtocol,**/HostEnvSecurityPolicy.generated.swift'

20032003
20042004

- name: Swift build (release)

20052005

run: |

Original file line numberDiff line numberDiff line change

@@ -97,15 +97,15 @@ repos:

9797

# swiftlint (same as CI)

9898

- id: swiftlint

9999

name: swiftlint

100-

entry: swiftlint --config .swiftlint.yml

100+

entry: swiftlint lint --config config/swiftlint.yml

101101

language: system

102102

pass_filenames: false

103103

types: [swift]

104104
105105

# swiftformat --lint (same as CI)

106106

- id: swiftformat

107107

name: swiftformat

108-

entry: swiftformat --lint apps/macos/Sources --config .swiftformat

108+

entry: swiftformat --lint apps/macos/Sources --config config/swiftformat --exclude '**/OpenClawProtocol,**/HostEnvSecurityPolicy.generated.swift'

109109

language: system

110110

pass_filenames: false

111111

types: [swift]

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

parent_config: ../../.swiftlint.yml

1+

parent_config: ../../config/swiftlint.yml

22
33

included:

44

- Sources

Original file line numberDiff line numberDiff line change

@@ -70,7 +70,7 @@ targets:

7070

echo "error: swiftformat not found (brew install swiftformat)" >&2

7171

exit 1

7272

fi

73-

swiftformat --lint --config "$SRCROOT/../../.swiftformat" \

73+

swiftformat --lint --config "$SRCROOT/../../config/swiftformat" \

7474

--unexclude "$SRCROOT/Sources,$SRCROOT/ShareExtension,$SRCROOT/ActivityWidget,$SRCROOT/WatchExtension,$SRCROOT/../shared/OpenClawKit,$SRCROOT/../swabble" \

7575

--filelist "$SRCROOT/SwiftSources.input.xcfilelist"

7676

- name: SwiftLint

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,51 @@

1+

# SwiftFormat configuration adapted from Peekaboo defaults (Swift 6 friendly)

2+
3+

--swiftversion 6.2

4+
5+

# Self handling

6+

--self insert

7+

--selfrequired

8+
9+

# Imports / extensions

10+

--importgrouping testable-bottom

11+

--extensionacl on-declarations

12+
13+

# Indentation

14+

--indent 4

15+

--indentcase false

16+

--ifdef no-indent

17+

--xcodeindentation enabled

18+
19+

# Line breaks

20+

--linebreaks lf

21+

--maxwidth 120

22+
23+

# Whitespace

24+

--trimwhitespace always

25+

--emptybraces no-space

26+

--nospaceoperators ...,..<

27+

--ranges no-space

28+

--someAny true

29+

--voidtype void

30+
31+

# Wrapping

32+

--wraparguments before-first

33+

--wrapparameters before-first

34+

--wrapcollections before-first

35+

--closingparen same-line

36+
37+

# Organization

38+

--organizetypes class,struct,enum,extension

39+

--extensionmark "MARK: - %t + %p"

40+

--marktypes always

41+

--markextensions always

42+

--structthreshold 0

43+

--enumthreshold 0

44+
45+

# Other

46+

--stripunusedargs closure-only

47+

--header ignore

48+

--allman false

49+
50+

# Exclusions

51+

--exclude .build,.swiftpm,DerivedData,node_modules,dist,coverage,xcuserdata,Peekaboo,apps/swabble,apps/android,apps/ios,apps/shared

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,150 @@

1+

# SwiftLint configuration adapted from Peekaboo defaults (Swift 6 friendly)

2+
3+

included:

4+

- ../apps/macos/Sources

5+
6+

excluded:

7+

- ../.build

8+

- ../DerivedData

9+

- "**/.build"

10+

- "**/.swiftpm"

11+

- "**/DerivedData"

12+

- "**/Generated"

13+

- "**/Resources"

14+

- "**/Package.swift"

15+

- "**/Tests/Resources"

16+

- ../node_modules

17+

- ../dist

18+

- ../coverage

19+

- "*.playground"

20+

# Generated (protocol-gen-swift.ts)

21+

- ../apps/macos/Sources/OpenClawProtocol/GatewayModels.swift

22+

# Generated (generate-host-env-security-policy-swift.mjs)

23+

- ../apps/macos/Sources/OpenClaw/HostEnvSecurityPolicy.generated.swift

24+
25+

analyzer_rules:

26+

- unused_declaration

27+

- unused_import

28+
29+

opt_in_rules:

30+

- array_init

31+

- closure_spacing

32+

- contains_over_first_not_nil

33+

- empty_count

34+

- empty_string

35+

- explicit_init

36+

- fallthrough

37+

- fatal_error_message

38+

- first_where

39+

- joined_default_parameter

40+

- last_where

41+

- literal_expression_end_indentation

42+

- multiline_arguments

43+

- multiline_parameters

44+

- operator_usage_whitespace

45+

- overridden_super_call

46+

- pattern_matching_keywords

47+

- private_outlet

48+

- prohibited_super_call

49+

- redundant_nil_coalescing

50+

- sorted_first_last

51+

- switch_case_alignment

52+

- unneeded_parentheses_in_closure_argument

53+

- vertical_parameter_alignment_on_call

54+
55+

disabled_rules:

56+

# SwiftFormat handles these

57+

- trailing_whitespace

58+

- trailing_newline

59+

- trailing_comma

60+

- vertical_whitespace

61+

- indentation_width

62+
63+

# Style exclusions

64+

- explicit_self

65+

- identifier_name

66+

- file_header

67+

- explicit_top_level_acl

68+

- explicit_acl

69+

- explicit_type_interface

70+

- missing_docs

71+

- required_deinit

72+

- prefer_nimble

73+

- quick_discouraged_call

74+

- quick_discouraged_focused_test

75+

- quick_discouraged_pending_test

76+

- anonymous_argument_in_multiline_closure

77+

- no_extension_access_modifier

78+

- no_grouping_extension

79+

- switch_case_on_newline

80+

- strict_fileprivate

81+

- extension_access_modifier

82+

- convenience_type

83+

- no_magic_numbers

84+

- one_declaration_per_file

85+

- vertical_whitespace_between_cases

86+

- vertical_whitespace_closing_braces

87+

- superfluous_else

88+

- number_separator

89+

- prefixed_toplevel_constant

90+

- opening_brace

91+

- trailing_closure

92+

- contrasted_opening_brace

93+

- sorted_imports

94+

- redundant_type_annotation

95+

- shorthand_optional_binding

96+

- untyped_error_in_catch

97+

- file_name

98+

- todo

99+
100+

force_cast: warning

101+

force_try: warning

102+
103+

type_name:

104+

min_length:

105+

warning: 2

106+

error: 1

107+

max_length:

108+

warning: 60

109+

error: 80

110+
111+

function_body_length:

112+

warning: 150

113+

error: 300

114+
115+

function_parameter_count:

116+

warning: 7

117+

error: 10

118+
119+

file_length:

120+

warning: 1500

121+

error: 2500

122+

ignore_comment_only_lines: true

123+
124+

type_body_length:

125+

warning: 800

126+

error: 1200

127+
128+

cyclomatic_complexity:

129+

warning: 20

130+

error: 120

131+
132+

large_tuple:

133+

warning: 4

134+

error: 5

135+
136+

nesting:

137+

type_level:

138+

warning: 4

139+

error: 6

140+

function_level:

141+

warning: 5

142+

error: 7

143+
144+

line_length:

145+

warning: 120

146+

error: 250

147+

ignores_comments: true

148+

ignores_urls: true

149+
150+

reporter: "xcode"

Original file line numberDiff line numberDiff line change

@@ -1376,7 +1376,7 @@

13761376

"format:docs": "node scripts/format-docs.mjs",

13771377

"format:docs:check": "node scripts/format-docs.mjs --check",

13781378

"format:fix": "oxfmt --write --threads=1",

1379-

"format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/OpenClawKit/Sources",

1379+

"format:swift": "swiftformat --lint --config config/swiftformat --exclude '**/apps/swabble,**/apps/android,**/apps/ios,**/apps/shared,**/OpenClawProtocol,**/HostEnvSecurityPolicy.generated.swift' apps/macos/Sources apps/ios/Sources apps/shared/OpenClawKit/Sources",

13801380

"gateway:dev": "OPENCLAW_SKIP_CHANNELS=1 node scripts/run-node.mjs --dev gateway",

13811381

"gateway:dev:reset": "OPENCLAW_SKIP_CHANNELS=1 node scripts/run-node.mjs --dev gateway --reset",

13821382

"gateway:watch": "node scripts/gateway-watch-tmux.mjs gateway --force",

@@ -1421,7 +1421,7 @@

14211421

"lint:plugins:no-register-http-handler": "node scripts/check-no-register-http-handler.mjs",

14221422

"lint:plugins:plugin-sdk-subpaths-exported": "node scripts/check-plugin-sdk-subpath-exports.mjs",

14231423

"lint:scripts": "pnpm lint:docker-e2e && node scripts/run-oxlint.mjs --tsconfig tsconfig.oxlint.scripts.json scripts",

1424-

"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",

1424+

"lint:swift": "swiftlint lint --config config/swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",

14251425

"lint:tmp:channel-agnostic-boundaries": "node scripts/check-channel-agnostic-boundaries.mjs",

14261426

"lint:tmp:dynamic-import-warts": "node scripts/check-dynamic-import-warts.mjs",

14271427

"lint:tmp:no-random-messaging": "node scripts/check-no-random-messaging-tmp.mjs",

Original file line numberDiff line numberDiff line change

@@ -9,7 +9,7 @@ const APP_PATH_RE = /^(?:apps\/|Swabble\/|appcast\.xml$)/u;

99

const EXTENSION_PATH_RE = /^extensions\/[^/]+(?:\/|$)/u;

1010

const CORE_PATH_RE = /^(?:src\/|ui\/|packages\/)/u;

1111

const TOOLING_PATH_RE =

12-

/^(?:scripts\/|test\/vitest\/|\.github\/|\.vscode\/|config\/|deploy\/|git-hooks\/|Dockerfile\.sandbox(?:-(?:browser|common))?$|Makefile$|docker-setup\.sh$|setup-podman\.sh$|openclaw\.podman\.env$|skills\/pyproject\.toml$|vitest(?:\..+)?\.config\.ts$|tsconfig.*\.json$|\.dockerignore$|\.gitignore$|\.jscpd\.json$|\.npmignore$|\.pre-commit-config\.yaml$|\.swiftformat$|\.oxlint.*|\.oxfmt.*)/u;

12+

/^(?:scripts\/|test\/vitest\/|\.github\/|\.vscode\/|config\/|deploy\/|git-hooks\/|Dockerfile\.sandbox(?:-(?:browser|common))?$|Makefile$|docker-setup\.sh$|setup-podman\.sh$|openclaw\.podman\.env$|skills\/pyproject\.toml$|vitest(?:\..+)?\.config\.ts$|tsconfig.*\.json$|\.dockerignore$|\.gitignore$|\.jscpd\.json$|\.npmignore$|\.pre-commit-config\.yaml$|\.swiftformat$|\.swiftlint\.yml$|\.oxlint.*|\.oxfmt.*)/u;

1313

const ROOT_GLOBAL_PATH_RE =

1414

/^(?:package\.json$|pnpm-lock\.yaml$|pnpm-workspace\.yaml$|tsdown\.config\.ts$|vitest\.config\.ts$)/u;

1515

const LEGACY_ROOT_ASSET_PATH_RE = /^assets\//u;

Original file line numberDiff line numberDiff line change

@@ -81,8 +81,8 @@ run_macos_ci_mirror() {

8181

return 0

8282

fi

8383
84-

run_step swiftlint --config .swiftlint.yml

85-

run_step swiftformat --lint apps/macos/Sources --config .swiftformat

84+

run_step swiftlint lint --config config/swiftlint.yml

85+

run_step swiftformat --lint apps/macos/Sources --config config/swiftformat --exclude '**/OpenClawProtocol,**/HostEnvSecurityPolicy.generated.swift'

8686

run_step swift build --package-path apps/macos --configuration release

8787

run_step swift test --package-path apps/macos --parallel

8888

}

Original file line numberDiff line numberDiff line change

@@ -327,10 +327,13 @@ describe("scripts/changed-lanes", () => {

327327

".npmignore",

328328

".pre-commit-config.yaml",

329329

".swiftformat",

330+

".swiftlint.yml",

330331

"Makefile",

331332

"config/knip.config.ts",

332333

"config/markdownlint-cli2.jsonc",

333334

"config/shellcheckrc",

335+

"config/swiftformat",

336+

"config/swiftlint.yml",

334337

"deploy/fly.private.toml",

335338

"docker-setup.sh",

336339

"openclaw.podman.env",