only_rules: - colon - fatal_error_message - implicitly_unwrapped_optional - legacy_cggeometry_functions - legacy_constant - legacy_constructor - legacy_nsgeometry_functions - operator_usage_whitespace - return_arrow_whitespace - trailing_newline - unused_optional_binding - vertical_whitespace - void_return - custom_rules - line_length - type_body_length - identifier_name - type_name - function_body_length - force_try - force_cast - colon excluded: - Carthage - Pods - .bundle - .github - distribution - terraform - docs - vendor - "**/YB*.swift" - showroom - testroom - example analyzer_rules: - explicit_self - unused_declaration - unused_import colon: apply_to_dictionaries: false cyclomatic_complexity: ignores_case_statements: true force_cast: warning force_try: severity: warning line_length: ignores_urls: true ignores_interpolated_strings: true error: 100 type_body_length: warning: 500 function_body_length: warning: 50 type_name: min_length: 3 max_length: warning: 40 error: 50 excluded: iPhone allowed_symbols: ["_"] identifier_name: min_length: warning: 2 error: 1 allowed_symbols: ["_"] custom_rules: no_objcMembers: name: "@objcMembers" regex: "@objcMembers" message: "Explicitly use @objc on each member you want to expose to Objective-C" severity: error no_direct_standard_out_logs: name: "Writing log messages directly to standard out is disallowed" regex: "(\\bprint|\\bdebugPrint|\\bdump|Swift\\.print|Swift\\.debugPrint|Swift\\.dump)\\s*\\(" match_kinds: - identifier message: "Don't commit `print(…)`, `debugPrint(…)`, or `dump(…)` as they write to standard out in release. Either log to a dedicated logging system or silence this warning in debug-only scenarios explicitly using `// swiftlint:disable:next no_direct_standard_out_logs`" severity: warning docs_param_first_capital_letter: name: "Documentation style violation. Use Xcode shortcut `cmd+alt+/` to autogenerate docs for symbols." regex: "///\\s*-\\s*parameters:|///\\s*-\\s*parameter\\s*|///\\s*-\\s*remark:|///\\s*note|///\\s*NOTE" message: "Documentation tags should start with capital letter. No all-capital letter keywords allowed. Example `- Parameters:` or `- Remark:` or `- Note:`" severity: warning reporter: "xcode"