A Swift-based linter that uses scripts and regex to enforce custom rules across any language or project.
AnyLint is a versatile linting tool that allows developers to create custom lint checks using Swift scripts and regular expressions. It solves the problem of enforcing project-specific rules that standard linters don't cover, working across any programming language or file type. By combining scriptable logic with regex pattern matching, it provides both validation and autocorrection capabilities.
Developers and teams who need to enforce custom coding standards, naming conventions, or project structure rules that aren't covered by existing linters. Particularly useful for Swift projects looking to extend beyond SwiftLint's capabilities.
AnyLint offers unmatched flexibility by allowing developers to write lint checks in Swift, leveraging the language's full power and package ecosystem. Unlike rigid linters, it supports autocorrection, multi-language linting, and complex custom logic through scripting.
Lint anything by combining the power of scripts & regular expressions.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Enables writing custom lint checks in Swift, allowing complex logic and integration with Swift packages, as demonstrated in the customCheck examples for tasks like updating LinuxMain.swift.
Supports named capture groups, lookarounds, and validation with matching/non-matching examples, ensuring regex correctness and reducing false positives.
Automatically fixes violations using replacement strings and validates corrections with before/after examples, streamlining enforcement and reducing manual work.
Lints any project in any language via regex patterns, making it versatile beyond Swift, as highlighted in the multi-language support feature.
Requires Swift and swift-sh to run, limiting usability to environments where these are installed and adding overhead for non-Swift teams.
Setting up custom rules involves writing Swift scripts and regex, which can be daunting and error-prone, especially without prior experience.
Without careful use of include/exclude filters, it recursively scans all files, potentially slowing down runs on large codebases, as noted in the configuration recommendations.
AnyLint is an open-source alternative to the following products: