Skip to content

non_optional_string_data_conversion does not trigger with non-literal strings #6094

@NachoSoto

Description

@NachoSoto

New Issue Checklist

Bug Description

https://realm.github.io/SwiftLint/non_optional_string_data_conversion.html only triggers with code like "foo".data(using: .utf8) but not string.data(using: .utf8)

Environment

  • SwiftLint version: 0.59.1

Metadata

Metadata

Assignees

Labels

enhancementIdeas for improvements of existing features and rules.good first issueIssue to be taken up by new contributors yet unfamiliar with the project.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions