# Exclude automatically generated Swift files excluded: - MeshtasticProtobufs line_length: 400 type_name: min_length: 1 max_length: warning: 60 error: 70 excluded: iPhone # excluded via string allowed_symbols: ["_"] # these are allowed in type names identifier_name: min_length: 1 max_length: warning: 60 allowed_symbols: ["_"] # these are allowed in type names # TODO: should review force_try: severity: warning # explicitly # TODO: should review file_length: warning: 3500 error: 4000 # TODO: should review cyclomatic_complexity: warning: 70 error: 80 ignores_case_statements: true # TODO: should review function_body_length: warning: 200 # TODO: should review type_body_length: warning: 400 # TODO: should review disabled_rules: # rule identifiers to exclude from running - operator_whitespace - multiple_closures_with_trailing_closure - todo # TODO: should review nesting: type_level: warning: 3 custom_rules: disable_print: included: ".*\\.swift" name: "Disable `print()`" regex: "((\\bprint)|(Swift\\.print))\\s*\\(" message: "Consider using a dedicated log message or the Xcode debugger instead of using `print`. ex. logger.debug(...)" severity: warning