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

Empty count configuration #3052

Merged
merged 4 commits into from
Feb 9, 2020

Conversation

lordzsolt
Copy link
Contributor

@lordzsolt lordzsolt commented Jan 22, 2020

This PR provides an improvement for #827

It adds a a configuration option, to ignore variables named count. This option is disabled by default.

@SwiftLintBot
Copy link

SwiftLintBot commented Jan 22, 2020

12 Messages
📖 Linting Aerial with this PR took 1.29s vs 1.26s on master (2% slower)
📖 Linting Alamofire with this PR took 2.33s vs 2.3s on master (1% slower)
📖 Linting Firefox with this PR took 9.65s vs 9.58s on master (0% slower)
📖 Linting Kickstarter with this PR took 15.9s vs 15.75s on master (0% slower)
📖 Linting Moya with this PR took 1.32s vs 1.33s on master (0% faster)
📖 Linting Nimble with this PR took 1.43s vs 1.41s on master (1% slower)
📖 Linting Quick with this PR took 0.56s vs 0.57s on master (1% faster)
📖 Linting Realm with this PR took 2.48s vs 2.48s on master (0% slower)
📖 Linting SourceKitten with this PR took 1.12s vs 1.08s on master (3% slower)
📖 Linting Sourcery with this PR took 7.08s vs 7.31s on master (3% faster)
📖 Linting Swift with this PR took 13.09s vs 13.17s on master (0% faster)
📖 Linting WordPress with this PR took 16.03s vs 16.01s on master (0% slower)

Generated by 🚫 Danger

@lordzsolt lordzsolt force-pushed the empty-count-configuration branch 3 times, most recently from 5da9770 to 31f6624 Compare February 3, 2020 08:42
}

public struct EmptyCountConfiguration: RuleConfiguration, Equatable {
private(set) var severityConfiguration = SeverityConfiguration(.warning)
Copy link
Collaborator

Choose a reason for hiding this comment

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

the existing default is error, can you change it to keep the same behavior?

Copy link
Contributor Author

@lordzsolt lordzsolt Feb 9, 2020

Choose a reason for hiding this comment

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

Updated.

Sorry, I didn't notice it was .error before

@marcelofabri marcelofabri merged commit ab8cd43 into realm:master Feb 9, 2020
@marcelofabri
Copy link
Collaborator

Thanks! Great first contribution! 🎉

@lordzsolt lordzsolt deleted the empty-count-configuration branch February 18, 2020 20:12
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.

3 participants