You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I want to create new custom_rules to validate that SwiftUI Text has .multilineTextAlignment. But I had a lot of problems
Right now my regex rule looks like this: \\bText\\([^\\)]*\\)(?!\\s*\\.(multilineTextAlignment|modifier\\())
Do you have any ideas on how to avoid this problem?
Full custom_rule:
custom_rules:
multiline_text_alignment_rule:
name: "Multiline Text Alignment"
regex: "\\bText\\([^\\)]*\\)(?!\\s*\\.(multilineTextAlignment|modifier\\())"
message: "Text should have a .multilineTextAlignment() or .modifier()"
severity: error
The text was updated successfully, but these errors were encountered:
SimplyDanny
added
the
help
Questions or user problems that require more explanation rather than code changes.
label
Aug 26, 2024
Hi! I want to create new custom_rules to validate that SwiftUI Text has .multilineTextAlignment. But I had a lot of problems
Right now my regex rule looks like this:
\\bText\\([^\\)]*\\)(?!\\s*\\.(multilineTextAlignment|modifier\\())
And everything works fine until it hits:
Do you have any ideas on how to avoid this problem?
Full custom_rule:
The text was updated successfully, but these errors were encountered: