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
SwiftLint version (run swiftlint version to be sure)?
0.27.0
Installation method used (Homebrew, CocoaPods, building from source, etc)?
Homebrew
Paste your configuration file:
# Disable some rules for gooddisabled_rules:
- closure_parameter_position # wanted: { \n [capture list] (parameters) in
- statement_position # `else {`on next line
- trailing_comma # c-style why not
- trailing_newline # To place code on eyes level not on bottom
- unused_closure_parameter # not used parameters may help to read semantics
- vertical_whitespace # cannot configure to w=3 / e=4
- force_cast # we are using it
- opening_brace # we have Stroustrup-style in codebase
- trailing_whitespace # we should soon enable it!
- cyclomatic_complexity # we should enable this later, code with too high complexity is impossible to support!
- nesting # we use deep nesting, but probably should't
- identifier_name # cannot satisfy this yet
- type_name # It's easy to fix this one!# Only source subdirectory (don't mess with Pods)included:
- Infrastructure
- Demo
- Core
- Applicationexcluded:
- Application/ViewControllers/Portfolio/Agreements # causes a crashshorthand_operator:
severity: warning# cyclomatic_complexity:# severity: warning # warning for now, should have error on very big complexity# Only way to support multiple protocol conformances on next linecolon:
flexible_right_spacing: trueforce_try:
severity: warning # warning for now, should be error# Max line lengthline_length: 150# only warning for now, 250 should be error# class / struct lengthtype_body_length: 500# should be aimed to value near 200# Max file sizefile_length: 500# should have an error if 1000 or so# Backend for error reportingreporter: xcode# Too many warnings becomes an errorwarning_threshold: 5000# will decrease that iteration by iteration# Too big functionsfunction_body_length: 80# warning for now, should be error# Too big tupleslarge_tuple: 3# Actually 2 is a default value, and it should be an error# How many arguments function may havefunction_parameter_count: 10# probably we should go even lower to 5# type_name with \`type_name:
allowed_symbols: ['\`']# identifier_name with \` and _# identifier_name:# allowed_symbols: ['\`', '_']# min_length: 2custom_rules:
strongify_over_self: # rule identifiername: "Custom rule - Strongify"# rule name. optional.regex: "(guard let `self`)"# matching patternmessage: "To recapture self use variable `strongify` e.g.: guard let strongify = self"# violation message. optional.severity: warning # violation severity. optional.
switch controlType {case0:// This doesn't triggers crashself.info ="\(minRequiredAmount)рублей"case1:// But this doesself.info ="\(minRequiredAmount) рублей"default:self.info =""}
The text was updated successfully, but these errors were encountered:
New Issue Checklist
Describe the bug
Swiftlint crashes when string literal with string interpolation followed by space character and any Cyrillic characters presents in code.
Complete output when running SwiftLint, including the stack trace and command used
Environment
SwiftLint version (run
swiftlint version
to be sure)?0.27.0
Installation method used (Homebrew, CocoaPods, building from source, etc)?
Homebrew
Paste your configuration file:
Are you using nested configurations?
No
Which Xcode version are you using (check
xcode-select -p
)?/Applications/Xcode.app/Contents/Developer
Version 9.4.1 (9F2000)
Do you have a sample that shows the issue?
$ swiftlint lint --path Application/ShowCase.swift --no-cache --enable-all-rules
Showcase project is available https://github.com/Megal/EmptyEnumArgumentsRuleBug.git
The text was updated successfully, but these errors were encountered: