A tool to enforce Swift style and conventions.
This report summarizes scanner evidence for realm/SwiftLint, a Swift project with 19,780 GitHub stars. SynthScan examined 110,107 lines of code across 911 source files, recording 60 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 57 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 3 finding(s).
Which changes need focused human review? 60 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 60 distinct pattern matches across 2 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …wiftLintBuildToolPlugin/SwiftLintBuildToolPlugin.swift | 21 | } | COMMENT |
| LOW | Source/SwiftLintCore/Models/RuleDescription.swift | 21 | COMMENT | |
| LOW | Source/SwiftLintCore/Models/RuleDescription.swift | 41 | public let triggeringExamples: [Example] | COMMENT |
| LOW | Source/SwiftLintCore/Models/RuleDescription.swift | 81 | /// | COMMENT |
| LOW | …wiftLintCore/Models/RuleConfigurationDescription.swift | 341 | } | COMMENT |
| LOW | …wiftLintCore/Models/RuleConfigurationDescription.swift | 401 | /// | COMMENT |
| LOW | …wiftLintCore/Models/RuleConfigurationDescription.swift | 421 | /// translated into `my_option` in the `.swiftlint.yml` configuration file. | COMMENT |
| LOW | …wiftLintCore/Models/RuleConfigurationDescription.swift | 441 | /// 2. It can be represented as a separate nested configuration. In this case, it must not have set the `inline` flag to | COMMENT |
| LOW | …wiftLintCore/Models/RuleConfigurationDescription.swift | 501 | /// Optional documentation describing this configuration entry in rendered docs. | COMMENT |
| LOW | …wiftLintCore/Models/RuleConfigurationDescription.swift | 541 | postprocessor(&wrappedValue) | COMMENT |
| LOW | Source/SwiftLintCore/Models/Example.swift | 1 | import Foundation | COMMENT |
| LOW | Source/SwiftLintCore/Models/Example.swift | 21 | /// - SeeAlso: addEmoji(_:) | COMMENT |
| LOW | Source/SwiftLintCore/Models/Example.swift | 41 | /// It can be set to `true` if an example has mainly been added as another test case, but is not suitable | COMMENT |
| LOW | Source/SwiftLintCore/Models/Region.swift | 1 | import SwiftSyntax | COMMENT |
| LOW | Source/SwiftLintCore/Models/Region.swift | 41 | } | COMMENT |
| LOW | Source/SwiftLintCore/Models/AccessControlLevel.swift | 1 | /// The accessibility of a Swift source declaration. | COMMENT |
| LOW | Source/SwiftLintCore/Extensions/Array+SwiftLint.swift | 121 | /// | COMMENT |
| LOW | …urce/SwiftLintCore/Extensions/Collection+Windows.swift | 1 | // swiftlint:disable:next blanket_disable_command | COMMENT |
| LOW | …urce/SwiftLintCore/Extensions/Collection+Windows.swift | 21 | /// Returns a collection of all the overlapping slices of a given size. | COMMENT |
| LOW | …urce/SwiftLintCore/Extensions/Collection+Windows.swift | 161 | // `endIndex` and the index before it both have `base.endIndex` as their | COMMENT |
| LOW | …tLintCore/Extensions/SwiftLintFile+BodyLineCount.swift | 1 | import SwiftSyntax | COMMENT |
| LOW | …tLintCore/Extensions/SwiftLintFile+BodyLineCount.swift | 21 | // | COMMENT |
| LOW | …Core/Extensions/RandomAccessCollection+Swiftlint.swift | 1 | public extension RandomAccessCollection where Index == Int { | COMMENT |
| LOW | …Core/Extensions/RandomAccessCollection+Swiftlint.swift | 21 | /// - complexity: O(log(*n*)), where *n* is the length of the collection. | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/CollectingRule.swift | 1 | /// Type-erased protocol used to check whether a rule is collectable. | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/CollectingRule.swift | 21 | /// - returns: The collected file information. | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/Rule.swift | 21 | /// Creates a rule by applying its configuration. | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/Rule.swift | 41 | func validate(file: SwiftLintFile, compilerArguments: [String]) -> [StyleViolation] | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/Rule.swift | 61 | /// - parameter file: The file for which to collect info. | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/Rule.swift | 81 | /// - Parameters: | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/Rule.swift | 161 | public extension Rule { | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/Rule.swift | 181 | /// - parameter file: The file for which to correct violations. | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/SwiftSyntaxRule.swift | 1 | import SwiftSyntax | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/SwiftSyntaxRule.swift | 81 | /// A violation produced by `ViolationsSyntaxVisitor`s. | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/SwiftSyntaxRule.swift | 101 | self.replacement = replacement | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/ASTRule.swift | 1 | import SourceKittenFramework | COMMENT |
| LOW | Source/SwiftLintCore/Protocols/ASTRule.swift | 21 | /// - parameter dictionary: The `SourceKittenDictionary` representing the source structure from which to extract the | COMMENT |
| LOW | Source/SwiftLintCore/Helpers/Macros.swift | 101 | ) | COMMENT |
| LOW | …ntBuiltInRules/Rules/Lint/InvisibleCharacterRule.swift | 21 | #"let url = "https://example.com/api""#, | COMMENT |
| LOW | …LintBuiltInRules/Rules/Lint/RequiredEnumCaseRule.swift | 1 | import SwiftLintCore | COMMENT |
| LOW | …LintBuiltInRules/Rules/Lint/RequiredEnumCaseRule.swift | 21 | /// case unauthorized: | COMMENT |
| LOW | …LintBuiltInRules/Rules/Lint/RequiredEnumCaseRule.swift | 41 | /// ```` | COMMENT |
| LOW | …les/Idiomatic/UnneededSynthesizedInitializerRule.swift | 1 | // swiftlint:disable file_header | COMMENT |
| LOW | …ltInRules/Rules/Idiomatic/XCTSpecificMatcherRule.swift | 141 | // | COMMENT |
| LOW | Source/SwiftLintFramework/UpdateChecker.swift | 1 | // swiftlint:disable file_header | COMMENT |
| LOW | …e/SwiftLintFramework/Configuration/Configuration.swift | 141 | /// - parameter includedPaths: Included paths to lint. | COMMENT |
| LOW | …ftLintFramework/Extensions/FileManager+SwiftLint.swift | 1 | import FilenameMatcher | COMMENT |
| LOW | Source/SwiftLintExtraRules/ExtraRules.swift | 1 | // DO NOT EDIT | COMMENT |
| LOW | Source/SwiftLintBase/URL+SwiftLint.swift | 1 | import Foundation | COMMENT |
| LOW | Tests/FileSystemAccessTests/ConfigurationTests.swift | 41 | #expect(!config.allowZeroLintableFiles) | COMMENT |
| LOW | Tests/FileSystemAccessTests/GlobTests.swift | 221 | // `subpathsOfDirectory(atPath:)` throw and drop every directory it had | COMMENT |
| LOW | …s/BuiltInRulesTests/LineLengthConfigurationTests.swift | 161 | try configuration.apply(configuration: config1) | COMMENT |
| LOW | Tests/FrameworkTests/SwiftSyntaxKindBridgeTests.swift | 41 | // Test operator and type mappings | COMMENT |
| LOW | Tests/FrameworkTests/SwiftVersionTests.swift | 81 | let version = "5.5.0" | COMMENT |
| LOW | Tests/FrameworkTests/SwiftVersionTests.swift | 101 | #expect(SwiftVersion(rawValue: "5.1.1") < SwiftVersion(rawValue: "5.1.2")) | COMMENT |
| LOW | Tests/FrameworkTests/StringViewExtensionTests.swift | 21 | #expect(StringView("a").byteOffset(forLine: 1, bytePosition: 1) == 0) | COMMENT |
| LOW | Tests/FrameworkTests/Resources/test.txt | 1 | // My file with | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …s/Rules/Style/ComputedAccessorsOrderRuleExamples.swift | 0 | class foo { subscript(i: int) -> int { ↓get { return 20 } } } | STRING |
| HIGH | …ltInRules/Rules/Style/ImplicitGetterRuleExamples.swift | 0 | class foo { subscript(i: int) -> int { ↓get { return 20 } } } | STRING |
| HIGH | Tests/BuiltInRulesTests/ImplicitGetterRuleTests.swift | 0 | class foo { subscript(i: int) -> int { ↓get { return 20 } } } | STRING |