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

Setup SwiftLint #10

Closed
2 tasks done
stackotter opened this issue Mar 21, 2022 · 2 comments
Closed
2 tasks done

Setup SwiftLint #10

stackotter opened this issue Mar 21, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@stackotter
Copy link
Owner

stackotter commented Mar 21, 2022

Linting is a great way of ensuring that a repository's code is neat. Setting up SwiftLint consists of two steps:

  • Create the SwiftLint configuration file and decide which rules to use
  • Create a GitHub action to automatically run SwiftLint
@stackotter stackotter added the enhancement New feature or request label Mar 21, 2022
@ajstrand
Copy link

Do you have an idea of which rules you'd like to support?

From looking at swift lint it seems like there are quite a lot.

@stackotter
Copy link
Owner Author

I've setup a basic configuration now (on the dev branch). Many of the good SwiftLint rules are just enabled by default, so it's pretty close to a default configuration, just with a few changes (such as ignoring files generated by gyb). I've set up a simple GitHub Action for it too 👍

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

No branches or pull requests

2 participants