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

Don’t validate local vars in let_var_whitespace rule #2022

Merged
merged 1 commit into from
Jan 26, 2018
Merged

Don’t validate local vars in let_var_whitespace rule #2022

merged 1 commit into from
Jan 26, 2018

Conversation

marcelofabri
Copy link
Collaborator

As part of #2021

I know that the original idea was to validate local variables, but that seemed not so useful in a real project (SwiftLint itself), triggering a lot of warnings.

Since this didn't work until Swift 4.1 anyways, I've just removed it for now. If people feel that this is useful, we can add it back as a configuration.

@SwiftLintBot
Copy link

12 Messages
📖 Linting Aerial with this PR took 0.47s vs 0.41s on master (14% slower)
📖 Linting Alamofire with this PR took 3.49s vs 3.41s on master (2% slower)
📖 Linting Firefox with this PR took 13.66s vs 13.46s on master (1% slower)
📖 Linting Kickstarter with this PR took 21.16s vs 21.43s on master (1% faster)
📖 Linting Moya with this PR took 1.84s vs 1.83s on master (0% slower)
📖 Linting Nimble with this PR took 1.95s vs 1.98s on master (1% faster)
📖 Linting Quick with this PR took 0.58s vs 0.6s on master (3% faster)
📖 Linting Realm with this PR took 3.66s vs 3.76s on master (2% faster)
📖 Linting SourceKitten with this PR took 1.16s vs 1.2s on master (3% faster)
📖 Linting Sourcery with this PR took 5.06s vs 5.33s on master (5% faster)
📖 Linting Swift with this PR took 14.49s vs 14.52s on master (0% faster)
📖 Linting WordPress with this PR took 15.29s vs 15.52s on master (1% faster)

Generated by 🚫 Danger

@codecov-io
Copy link

Codecov Report

Merging #2022 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2022   +/-   ##
=======================================
  Coverage   89.65%   89.65%           
=======================================
  Files         254      254           
  Lines       14863    14863           
  Branches      968      968           
=======================================
  Hits        13326    13326           
  Misses       1519     1519           
  Partials       18       18
Impacted Files Coverage Δ
...wiftLintFramework/Rules/LetVarWhitespaceRule.swift 94.64% <ø> (ø) ⬆️
...ource/SwiftLintFramework/Models/SwiftVersion.swift 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0105b1c...5d7346b. Read the comment docs.

@marcelofabri marcelofabri merged commit be57d64 into realm:master Jan 26, 2018
@marcelofabri marcelofabri deleted the let-var-local-vars branch January 26, 2018 04:27
@Uncommon
Copy link
Contributor

I definitely want the rule to apply to local variables. In fact, that's more important to me (and I wrote this rule). Maybe it could be a config option?

@marcelofabri
Copy link
Collaborator Author

@Uncommon feel free to open an issue to track this 💯

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.

4 participants