Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add YAML-based lint rules #39

Open
Jeehut opened this issue May 16, 2021 · 0 comments · May be fixed by #43
Open

Add YAML-based lint rules #39

Jeehut opened this issue May 16, 2021 · 0 comments · May be fixed by #43
Labels
enhancement New feature or request
Milestone

Comments

@Jeehut
Copy link
Member

Jeehut commented May 16, 2021

Problem Statement

Currently the only possible way to setup simple Regex-based lint rules is to write Swift code. While this allows a maximum of flexibility, it has drawbacks:

  1. It's harder to write, understand or adjust rules for people who are not Swift developers
  2. It relies entirely on Swift scripting which is not properly supported yet (see here and there)

Suggested Solution

Add a YAML-based rule configuration option where of course only the checkFileContents and checkFilePaths kind of checks are supported. It should be extensible though to include other YAML or even Swift configuration files where AnyLint would automatically include everything the right way to check all that's needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant