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

Make Nimble SwiftLint compatible #370

Closed
7 tasks done
ltrainpr opened this issue Nov 16, 2016 · 7 comments
Closed
7 tasks done

Make Nimble SwiftLint compatible #370

ltrainpr opened this issue Nov 16, 2016 · 7 comments

Comments

@ltrainpr
Copy link

ltrainpr commented Nov 16, 2016

I asked a stackoverflow question with more detail but figured I'd open an issue. I'm attempting to add Quick and Nimble to an iOS wrapper app at work. I'm getting all of these errors:

image

We are using Swift 3 and Swiftlint. I was under the impression that Nimble 5.1.1 was compatible with Swift 3. Any and all help is greatly appreciated.


Rules left:

  • line_length
  • todo
  • variable_name identifier_name
  • force_try
  • function_parameter_count
  • force_cast
  • type_name
@ltrainpr
Copy link
Author

From the answers in StackOverflow it seems that these are Swiftlint errors. I'll have to figure out how to disable Swiftlint on 3rd party libraries so they don't fail the build.

You should be aware that a lot of the Swift code in Nimble has issues.

@jeffh
Copy link
Member

jeffh commented Nov 22, 2016

Hey @ltrainpr,

Thanks for filling an issue. We're aware that SwiftLint fails with Nimble, it's work schedule to be done, but it hasn't been completed yet. Related issue: Quick/Quick#641. I'm going to change this issue to be Nimble's equivalent issue.

@jeffh jeffh changed the title Errors in Nimble files Make Nimble SwiftLint compatible Nov 22, 2016
@sigito
Copy link
Contributor

sigito commented Dec 22, 2016

Hi guys,

I can do the initial setup of swiftlint. Do you have houndci attached to Nimble?
Do you have any specific set of rules in mind? Or would it be OK to just have SwiftLint with a default config (empty)?

@jeffh
Copy link
Member

jeffh commented Jan 7, 2017

I've enabled HoundCI on Nimble. Thanks for the contribution @sigito!

@jeffh jeffh closed this as completed Jan 7, 2017
@sigito
Copy link
Contributor

sigito commented Jan 8, 2017

There are still rules to enable left (.swiftlint.yml). Should you have the same bug open as Quick/Quick#641, or reopen this one?

@jeffh
Copy link
Member

jeffh commented Jan 11, 2017

Good point, I'll reopen this issue and update the body.

@jeffh jeffh reopened this Jan 11, 2017
@lferro9000
Copy link

Hi,

I'm pushing a pull request to solve all of the outstanding issues.

One of them is done by a disable rule, because i don't know the finer details to make more drastic code changes on that area and because the matchers are going to be changed if i read the PR / WIP correctly, so having a temporary disable on there will not be too bad in the short time.

Naturally, it would be better to avoid it, so if someone with better understanding of the codebase can fix that one and remove the disable rule, that would be better imho.

Cheers,
LF

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

No branches or pull requests

5 participants