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

FIX:修改String+KK-> underlineCased()风格问题 #7

Closed
wants to merge 4 commits into from

Conversation

jtyXcode
Copy link

No description provided.

@@ -39,7 +39,8 @@ struct FieldRecord {
let flags: Int32
var _mangledTypeName: RelativeDirectPointer<UInt8>
var _fieldName: RelativeDirectPointer<UInt8>
var isVar: Bool { (flags & 0x2) == 0x2 }
//todo : vesion:1.0.2 修改 返回值问题
var isVar: Bool { get { return (flags & 0x2) == 0x2 } }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implicit Getter Violation: Computed read-only properties should avoid using the get keyword. (implicit_getter)

if c >= "A",c <= "Z" {
newStr.append("_")
newStr.append(c.lowercased())
}else {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Statement Position Violation: Else and catch should be on the same line, one space after the previous declaration. (statement_position)

newStr += "_"
newStr += c.lowercased()
} else {
if c >= "A",c <= "Z" {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comma Spacing Violation: There should be no space before and one after any comma. (comma)

@CoderMJLee CoderMJLee closed this Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants