-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
"Variable Name" rules don't handle multibyte characters #279
Comments
The |
Potentially there is multi byte character issue in most of rules. |
When I copy the text from your sample above, and run SwiftLint on it, the violation occurs on line 3, character 44, which is correct:
So I suspect that @norio-nomura is right, as always 😉, that there are some multibyte characters in your file that you have not shared with us. Could you please share a complete reproducible sample with us so we can repro and fix this? Thanks! |
//
// Experiments.swift
// Project
//
// Created by Сергей Галездинов on 17.12.15.
// Copyright © 2015 Сергей Галездинов. All rights reserved.
//
import Foundation
import UIKit
protocol SampleProtocol {
func longMethodNameWithCompletion(completion: () -> Void)
func longMethodNameWithCompletionAndId(id: Int, completion: () -> Void)
func longMethodNameWithParameters(param1: Int, param2: Int, strParam: String, completion: () -> Void)
func yetAnotherMethodNameWithSomeParameters(fromTime: NSDate, toTime: NSDate, accountKey: AccountKey, completion: () -> Void)
} The file contains russian symbols |
From what I can tell, it seems like |
Having a warning:
The warning appears on several lines of code in my swift file, but I was able to reproduce this warning only on one code sample in a separate swift file:
The warning is on the
longMethodNameWithParameters
line..swiftlint.yml
:The file contains only structs and protocols with markdown comments. Removing
line_length
form.swiftlint.yml
doesn't help.Any thoughts?
The text was updated successfully, but these errors were encountered: