Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
appstore-distribution ▾

xtool.git / .swiftlint.yml

.swiftlint.yml73 lines · 1.7 KiBRaw
1swiftlint_version: 0.65.1
2disabled_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
15opt_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
42analyzer_rules:
43 - unused_import
44custom_rules:
45 spaces_not_tabs:
46 name: "Spaces not Tabs"
47 regex: ^\t
48 message: "Use four spaces, not tabs"
49 point_zero:
50 name: "Point Zero"
51 regex: '(?<!iOS\s)(?<!macOS\s)(?<!\.)\b[\d_]+\.0\b'
52 match_kinds:
53 - number
54 - attribute.builtin
55 message: "Don't add a .0 to the end of floating point literals"
56force_try: warning
57force_cast: warning
58function_body_length: 100
59line_length: 135
60file_length: 1000
61type_body_length: 500
62cyclomatic_complexity: 12
63function_parameter_count: 7
64implicit_return:
65 included:
66 - closure
67included:
68 - Package.swift
69 - Sources
70 - Tests
71 - macOS/XToolMac
72excluded:
73 - Sources/DeveloperAPI/Generated