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

Added possibility to make lint fail if using wrong version #2427

Closed
wants to merge 85 commits into from
Closed

Added possibility to make lint fail if using wrong version #2427

wants to merge 85 commits into from

Conversation

kimdv
Copy link
Contributor

@kimdv kimdv commented Sep 28, 2018

Fixes #2074

I don't know if this is the correct way solving it or the correct name of key in configuration file.

@SwiftLintBot
Copy link

SwiftLintBot commented Sep 28, 2018

1 Warning
⚠️ Big PR
12 Messages
📖 Linting Aerial with this PR took 2.1s vs 1.99s on master (5% slower)
📖 Linting Alamofire with this PR took 4.37s vs 4.05s on master (7% slower)
📖 Linting Firefox with this PR took 16.91s vs 14.85s on master (13% slower)
📖 Linting Kickstarter with this PR took 26.92s vs 22.58s on master (19% slower)
📖 Linting Moya with this PR took 2.52s vs 2.22s on master (13% slower)
📖 Linting Nimble with this PR took 2.5s vs 2.02s on master (23% slower)
📖 Linting Quick with this PR took 0.83s vs 0.63s on master (31% slower)
📖 Linting Realm with this PR took 4.64s vs 3.99s on master (16% slower)
📖 Linting SourceKitten with this PR took 1.45s vs 1.28s on master (13% slower)
📖 Linting Sourcery with this PR took 6.08s vs 5.3s on master (14% slower)
📖 Linting Swift with this PR took 39.07s vs 32.13s on master (21% slower)
📖 Linting WordPress with this PR took 29.05s vs 22.74s on master (27% slower)

Generated by 🚫 Danger

jpsim and others added 16 commits November 27, 2018 10:55
Motivation:

Sometimes, Homebrew bottling CI fails because it runs in the sandbox.

Modifications:

Add `testSimulateHomebrewTest()` to `IntegrationTests` that simulates test in `homebrew-core/Formula/swiftlint.rb` within sandbox.

Result:

Confirm that a test equivalent to `brew test swiftlint` will pass in the sandbox before publishing to homebrew.
also fixup Package.resolved and BoolExtensionTests
Fix false positive in nimble_operator rule
@jpsim
Copy link
Collaborator

jpsim commented Nov 28, 2018

I wonder if this should simply be the behavior when using swiftlint_version. I suspect that people who use this don't want this error lost in SwiftLint's logs.

@kimdv
Copy link
Contributor Author

kimdv commented Nov 28, 2018

@jpsim i agree ☝️
Will change it when I’m at my Mac again 😎

Sent with GitHawk

Jeehut and others added 8 commits November 28, 2018 10:30
* Add new multiline_literal_brackets rule with examples

* Implement rule

* Add changelog entry

* Fix CHANGELOG and rule name

* Fix tests + Update stuff after rebasing

* Add more examples & fix whitespace issue

* Address feedback from @ornithocoder

* Add multiline rules for arguments and parameters

* Fix false positives in rule multiline_parameters_brackets

* Fix false positive for trailing closures in multiline_arguments_brackets

* Add nested examples to rule multiline_arguments_brackets

* Fix more false positives in multiline_arguments_brackets rule

* Use guard where appropriate instead of if

* Update generated artifacts after rebase

* Add CHANGELOG entry for all three new rules

* Move changelog entries to new version

* Fix changelog entries position

* Move new rules to correct subfolder

* Update Rules.md file contents

* Fixup changelog

* Refactor rules
)

* #2435 - Adjust modifier_order rule to require explicit modifier order specified to conclude a violation

* #2435 - Move modifier order rule examples to a separate file

* #2435 - Add modifier interference tests

* #2435 - Fix whitespaces

* Minor edits

* Add changelog entry
@kimdv
Copy link
Contributor Author

kimdv commented Nov 29, 2018

Opened new PR as i screwed up rebase

#2491

@kimdv kimdv closed this Nov 29, 2018
@kimdv kimdv deleted the swiftlint-version-failable branch November 29, 2018 07:30
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.