Lint any project in any language using Swift and regular expressions, with validation and autocorrect support.
AnyLint is a flexible linting tool that enables developers to enforce custom rules across any programming language or project type. It combines Swift scripting with regular expressions to create, validate, and automatically correct lint violations, replacing the need for language-specific linter extensions.
Developers and teams working on multi-language projects or those needing custom linting rules beyond what standard linters offer, particularly Swift developers seeking to extend or replace SwiftLint custom rules.
Developers choose AnyLint for its language-agnostic approach, allowing custom rule creation with Swift and regex for any file type, along with built-in validation and autocorrection features that ensure rule correctness and automate fixes.
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.
Allows linting any file type using Swift and regex, enabling enforcement of custom rules across multiple programming languages, as highlighted in the README's multi-language compatibility feature.
Supports matching and non-matching examples to validate regex patterns and autocorrections, ensuring rule correctness and reducing false positives, as demonstrated in the configuration examples.
Automatically fixes violations with replacement patterns referencing regex capture groups, saving manual effort in code cleanup, with examples provided for autocorrection validation.
Can be run as an Xcode build script to report violations directly in the sidebar, offering real-time feedback during iOS/macOS development, as detailed in the Xcode Build Script section.
Requires Swift and swift-sh to run, adding setup complexity and limiting adoption in environments without Swift tooling, which is a barrier for non-Swift projects.
Users must write and maintain Swift scripts for rules, which can be challenging for developers unfamiliar with Swift or regex intricacies, despite the detailed README.
At version 0.11.0, the tool is pre-1.0 and may introduce breaking changes, lacking the maturity and stability of established linters like ESLint or SwiftLint.
AnyLint is an open-source alternative to the following products: