chore: Sprachmittler OpenCode starter kit
This commit is contained in:
commit
374085ec2f
94 files changed
+4563
No files matched your search
@@ -0,0 +1,64 @@
|
||||
included:
|
||||
- App
|
||||
- Packages/SprachmittlerKit/Sources
|
||||
- Packages/SprachmittlerKit/Tests
|
||||
excluded:
|
||||
- .build
|
||||
- Packages/SprachmittlerKit/.build
|
||||
- Sprachmittler.xcodeproj
|
||||
disabled_rules:
|
||||
- trailing_comma # handled by swiftformat
|
||||
- todo # TODOs reference task IDs during development
|
||||
opt_in_rules:
|
||||
- force_unwrapping
|
||||
- implicitly_unwrapped_optional
|
||||
- fatal_error_message
|
||||
- empty_count
|
||||
- first_where
|
||||
- sorted_first_last
|
||||
- unowned_variable_capture
|
||||
line_length:
|
||||
warning: 120
|
||||
error: 160
|
||||
type_body_length:
|
||||
warning: 300
|
||||
file_length:
|
||||
warning: 500
|
||||
identifier_name:
|
||||
excluded: [id, i, t, x, y, ok, to]
|
||||
custom_rules:
|
||||
no_print_in_app:
|
||||
included: "App/.*\\.swift"
|
||||
regex: "\\bprint\\("
|
||||
message: "Use os.Logger instead of print in the app target."
|
||||
severity: error
|
||||
no_prompt_literals_outside_engines:
|
||||
included: "Packages/SprachmittlerKit/Sources/.*\\.swift"
|
||||
excluded: "Packages/SprachmittlerKit/Sources/SprachmittlerEngines/.*"
|
||||
regex: "(Translate the following text into|only output the translated result|Please accurately translate the following|### Task|Reference the following translations)"
|
||||
message: "Model prompts live only in SprachmittlerEngines (ADR-002, ADR-012)."
|
||||
severity: error
|
||||
no_pasteboard_outside_capture:
|
||||
included: "Packages/SprachmittlerKit/Sources/.*\\.swift"
|
||||
excluded:
|
||||
- "Packages/SprachmittlerKit/Sources/SprachmittlerCapture/.*"
|
||||
- "Packages/SprachmittlerKit/Sources/SprachmittlerTestSupport/.*"
|
||||
regex: "\\bNSPasteboard\\b"
|
||||
message: "Pasteboard access belongs in SprachmittlerCapture (ADR-004, ADR-005)."
|
||||
severity: error
|
||||
no_accessibility_outside_capture:
|
||||
included: "Packages/SprachmittlerKit/Sources/.*\\.swift"
|
||||
excluded:
|
||||
- "Packages/SprachmittlerKit/Sources/SprachmittlerCapture/.*"
|
||||
- "Packages/SprachmittlerKit/Sources/SprachmittlerTestSupport/.*"
|
||||
regex: "(AXUIElement|AXIsProcessTrusted|kAXSelectedText|kAXFocusedUIElement)"
|
||||
message: "Accessibility APIs belong in SprachmittlerCapture (docs/SELECTION_AND_CLIPBOARD.md)."
|
||||
severity: error
|
||||
no_network_outside_ollama:
|
||||
included: "Packages/SprachmittlerKit/Sources/.*\\.swift"
|
||||
excluded:
|
||||
- "Packages/SprachmittlerKit/Sources/SprachmittlerOllama/.*"
|
||||
- "Packages/SprachmittlerKit/Sources/SprachmittlerTestSupport/.*"
|
||||
regex: "(URLSession|URLRequest\\()"
|
||||
message: "Networking belongs in SprachmittlerOllama (SP-4)."
|
||||
severity: error
|
||||
Reference in new issue
Block a user