Swiftlint: Question: Configure nesting rule

Created on 30 Mar 2017  ·  3Comments  ·  Source: realm/SwiftLint

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...

question

Most helpful comment

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?

All 3 comments

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?

Upgraded to 0.18 and it works now.

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

Was this page helpful?
0 / 5 - 0 ratings