Skip to content

Fix unused_import rule reported locations and corrections - #3106

Merged
jpsim merged 1 commit into
masterfrom
fix-unused_import-rule-reported-locations-and-corrections
Feb 11, 2020
Merged

jpsim merged 1 commit into
masterfrom
fix-unused_import-rule-reported-locations-and-corrections

Conversation

@jpsim

@jpsim jpsim commented Feb 11, 2020

Copy link
Copy Markdown
Collaborator

When multiple @testable imports are involved.

Because we use the .dotMatchesLineSeparators regular expression option, the dot was matching across lines when the intention was for it to just match \w_ characters.

When multiple `@testable` imports are involved.

Because we use the `.dotMatchesLineSeparators` regular expression
option, the dot was matching across lines when the intention was for it
to just match `\w_` characters.
@jpsim
jpsim merged commit 05a8a85 into master Feb 11, 2020
@jpsim
jpsim deleted the fix-unused_import-rule-reported-locations-and-corrections branch February 11, 2020 19:23
@SwiftLintBot

Copy link
Copy Markdown
12 Messages
📖 Linting Aerial with this PR took 0.51s vs 0.5s on master (2% slower)
📖 Linting Alamofire with this PR took 0.81s vs 0.8s on master (1% slower)
📖 Linting Firefox with this PR took 3.6s vs 3.52s on master (2% slower)
📖 Linting Kickstarter with this PR took 5.43s vs 5.26s on master (3% slower)
📖 Linting Moya with this PR took 0.47s vs 0.46s on master (2% slower)
📖 Linting Nimble with this PR took 0.56s vs 0.55s on master (1% slower)
📖 Linting Quick with this PR took 0.31s vs 0.3s on master (3% slower)
📖 Linting Realm with this PR took 0.97s vs 0.95s on master (2% slower)
📖 Linting SourceKitten with this PR took 0.5s vs 0.47s on master (6% slower)
📖 Linting Sourcery with this PR took 2.46s vs 2.46s on master (0% slower)
📖 Linting Swift with this PR took 7.59s vs 7.61s on master (0% faster)
📖 Linting WordPress with this PR took 6.14s vs 6.01s on master (2% slower)

Generated by 🚫 Danger

optionalendeavors added a commit to optionalendeavors/SwiftLint that referenced this pull request Jul 12, 2020
* master: (101 commits)
  JUnit reporter for GitLab artifact:report:junit (realm#3177)
  Add empty changelog section
  release 0.39.2
  Update CI to run jobs with Xcode 11.0 to 11.4 (realm#3168)
  Fix false positives in valid_ibinspectable rule when using Swift 5.2 (realm#3155)
  Fix attributes rule false positive with Swift 5.2 (realm#3154)
  Fix CHANGELOG link
  Fix false positives in redundant_objc_attribute with Swift 5.2 (realm#3152)
  Fix false positives on implicit_getter with Swift 5.2+ (realm#3151)
  Simplify regex (realm#3145)
  fix links about configuration rules (realm#3142)
  Add unused_import config options to require imports for each module used (realm#3123)
  Add empty changelog section
  release 0.39.1
  Temporarily remove all SwiftSyntax rules and support (realm#3107)
  Fix unused_import rule reported locations and corrections (realm#3106)
  release 0.39.0
  Fix false positive in `empty_string` rule with multiline literals (realm#3101)
  Fix PrivateActionRule in Swift 5.2 (realm#3092)
  Fix false positive in implicit_getter with Swift 5.2 (realm#3099)
  ...

# Conflicts:
#	Source/SwiftLintFramework/Extensions/SwiftLintFile+Regex.swift
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