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

Question: Configure nesting rule #1405

Closed
jcarroll-mediafly opened this issue Mar 30, 2017 · 3 comments
Closed

Question: Configure nesting rule #1405

jcarroll-mediafly opened this issue Mar 30, 2017 · 3 comments
Labels

Comments

@jcarroll-mediafly
Copy link

Hey there,

I've been trying to configure the nesting type_level rule from 1 to 2 and can't seem to get it. I'm using 0.17.0 and my config looks like this

nesting:
  type_level:
    warning: 2

Based on my understanding I would think this is the correct syntax...

@jcarroll-mediafly jcarroll-mediafly changed the title Configure nesting rule Question: Configure nesting rule Mar 30, 2017
@marcelofabri
Copy link
Collaborator

That should work:

nesting:
  type_level:
    warning: 2
  statement_level:
    warning: 10

I've tried this with SwiftLint 0.18.1 and it worked. Could you try that? If it doesn't work, could you provide your full configuration file and the output for swiftlint rules?

@jcarroll-mediafly
Copy link
Author

Upgraded to 0.18 and it works now.

@marcelofabri
Copy link
Collaborator

Thanks for the feedback. Feel free to reopen if you have more issues with this!

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

No branches or pull requests

2 participants