Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Lint project using Swfitlint#79

Merged
liamnichols merged 5 commits intoCreateAPI:mainCreateAPI/CreateAPI:mainfrom
LePips:swiftlintLePips/CreateAPI:swiftlintCopy head branch name to clipboard
Aug 2, 2022
Merged

Lint project using Swfitlint#79
liamnichols merged 5 commits intoCreateAPI:mainCreateAPI/CreateAPI:mainfrom
LePips:swiftlintLePips/CreateAPI:swiftlintCopy head branch name to clipboard

Conversation

@LePips
Copy link
Contributor

@LePips LePips commented Aug 2, 2022

Initial swiftlint autocorrect but with no CI. Config rules are up for discussion.

@LePips LePips changed the title Swfitlint Add Initial Swfitlint Aug 2, 2022
@LePips
Copy link
Contributor Author

LePips commented Aug 2, 2022

The last file change seems odd, unless the test needed to be updated elsewhere and wasn't caught then.

Copy link
Member

@liamnichols liamnichols left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks for picking this up

Comment on lines 328 to 333
return """
\(access)init(from decoder: Decoder) throws {

struct Discriminator: Decodable {
let \(discriminator.propertyName): String
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what caused the change to generated code @LePips.

I don't think it's an issue since its just whitespace (better to strip it though) but its worth being mindful that the linter might mistakenly mess some other stuff up.

@liamnichols
Copy link
Member

I'll merge this now since there are minimal actual changes, we can discuss adding/adjusting rules later on 👍

@liamnichols liamnichols changed the title Add Initial Swfitlint Lint project using Swfitlint Aug 2, 2022
@liamnichols liamnichols merged commit f741039 into CreateAPI:main Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.