xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / .swiftlint.yml
.swiftlint.yml75 lines · 1.7 KiBRaw
| 1 | swiftlint_version: 0.65.1 |
| 2 | disabled_rules: |
| 3 | - trailing_comma |
| 4 | - nesting |
| 5 | - fallthrough |
| 6 | - shorthand_operator |
| 7 | - todo |
| 8 | - large_tuple |
| 9 | - identifier_name |
| 10 | - type_name |
| 11 | - unneeded_override |
| 12 | - optional_data_string_conversion |
| 13 | - for_where |
| 14 | - blanket_disable_command |
| 15 | opt_in_rules: |
| 16 | - closure_end_indentation |
| 17 | - closure_spacing |
| 18 | - empty_count |
| 19 | - explicit_init |
| 20 | - fatal_error_message |
| 21 | - first_where |
| 22 | - implicit_return |
| 23 | - joined_default_parameter |
| 24 | - literal_expression_end_indentation |
| 25 | - overridden_super_call |
| 26 | - prohibited_super_call |
| 27 | - sorted_first_last |
| 28 | - unneeded_parentheses_in_closure_argument |
| 29 | - vertical_parameter_alignment_on_call |
| 30 | - yoda_condition |
| 31 | - nslocalizedstring_key |
| 32 | - unused_setter_value |
| 33 | - optional_enum_case_matching |
| 34 | - prefer_self_type_over_type_of_self |
| 35 | - contains_over_range_nil_comparison |
| 36 | - flatmap_over_map_reduce |
| 37 | - empty_collection_literal |
| 38 | - contains_over_first_not_nil |
| 39 | - contains_over_filter_count |
| 40 | - contains_over_filter_is_empty |
| 41 | - reduce_into |
| 42 | analyzer_rules: |
| 43 | - unused_import |
| 44 | custom_rules: |
| 45 | prefer_dependency_print: |
| 46 | name: "Dependency Output" |
| 47 | included: '/Sources/' |
| 48 | excluded: '/(Tests|Examples)/' |
| 49 | regex: '(?<![\w.])(?:Swift\s*\.\s*)?print\s*\(' |
| 50 | match_kinds: |
| 51 | - identifier |
| 52 | message: "Use d.out.print instead of print or Swift.print." |
| 53 | severity: error |
| 54 | spaces_not_tabs: |
| 55 | name: "Spaces not Tabs" |
| 56 | regex: ^\t |
| 57 | message: "Use four spaces, not tabs" |
| 58 | force_try: warning |
| 59 | force_cast: warning |
| 60 | function_body_length: 100 |
| 61 | line_length: 135 |
| 62 | file_length: 1000 |
| 63 | type_body_length: 500 |
| 64 | cyclomatic_complexity: 12 |
| 65 | function_parameter_count: 7 |
| 66 | implicit_return: |
| 67 | included: |
| 68 | - closure |
| 69 | included: |
| 70 | - Package.swift |
| 71 | - Sources |
| 72 | - Tests |
| 73 | - macOS/XToolMac |
| 74 | excluded: |
| 75 | - Sources/DeveloperAPI/Generated |