config_version = "0" exclude_patterns = [ "**/vendor/**", "**/node_modules/**", "**/testdata/**", "**/dist/**", "**/.build/**", "**/build/**", "**/*.min.*", "**/generated/**", ".claude/**", "**/Pods/**", # DEBUG-only seed data for the accessibility audit tests. "DomainDig/AuditFixtures.swift", ] test_patterns = [ "**/test/**", "**/tests/**", "**/Tests/**", "**/*_test.*", "**/test_*.*", "**/*.test.*", "**/*Tests.swift", "e2e/**", ] [[source]] name = "default" default = true [[plugin]] name = "osv-scanner" [[plugin]] name = "trufflehog" # Early returns are guard clauses, which keep the happy path unindented. [smells.return_statements] enabled = false # Function and file complexity are left to review rather than counted. [smells.function_complexity] enabled = false [smells.file_complexity] enabled = false # Exhaustive switch-over-enum lookup tables share shape but not content. [language.swift.smells.duplication] # ownershipHistory and dnsHistory each pair a local history with an external one and merge # them; one generic version would take six closures. filter_patterns = [ "(import_declaration _)", "(switch_statement _)", "(function_declaration name: (simple_identifier) @_n (#match? @_n \"^(ownershipHistory|dnsHistory)$\"))", ]