this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at fix/fnm-node-path-resolution 160 lines 3.3 kB view raw
1# SwiftLint configuration for Peekaboo - Swift 6 compatible 2 3# Paths to include 4included: 5 - Sources 6 - Tests 7 8# Paths to exclude 9excluded: 10 - .build 11 - DerivedData 12 - "**/Generated" 13 - "**/Resources" 14 - "**/.build" 15 - "**/Package.swift" 16 - "**/Tests/Resources" 17 - "Apps/CLI/.build" 18 - "**/DerivedData" 19 - "**/.swiftpm" 20 - Pods 21 - Carthage 22 - fastlane 23 - vendor 24 - "*.playground" 25 # Exclude specific files that should not be linted/formatted 26 - "Core/PeekabooCore/Sources/PeekabooCore/Extensions/NSArray+Extensions.swift" 27 28# Analyzer rules (require compilation) 29analyzer_rules: 30 - unused_declaration 31 - unused_import 32 33# Enable specific rules 34opt_in_rules: 35 - array_init 36 - closure_spacing 37 - contains_over_first_not_nil 38 - empty_count 39 - empty_string 40 - explicit_init 41 - fallthrough 42 - fatal_error_message 43 - first_where 44 - joined_default_parameter 45 - last_where 46 - literal_expression_end_indentation 47 - multiline_arguments 48 - multiline_parameters 49 - operator_usage_whitespace 50 - overridden_super_call 51 - pattern_matching_keywords 52 - private_outlet 53 - prohibited_super_call 54 - redundant_nil_coalescing 55 - sorted_first_last 56 - switch_case_alignment 57 - unneeded_parentheses_in_closure_argument 58 - vertical_parameter_alignment_on_call 59 60# Disable rules that conflict with Swift 6 or our coding style 61disabled_rules: 62 # Swift 6 requires explicit self - disable explicit_self rule 63 - explicit_self 64 65 # SwiftFormat handles these 66 - trailing_whitespace 67 - trailing_newline 68 - trailing_comma 69 - vertical_whitespace 70 - indentation_width 71 72 # Too restrictive or not applicable 73 - identifier_name # Single letter names are fine in many contexts 74 - file_header 75 - explicit_top_level_acl 76 - explicit_acl 77 - explicit_type_interface 78 - missing_docs 79 - required_deinit 80 - prefer_nimble 81 - quick_discouraged_call 82 - quick_discouraged_focused_test 83 - quick_discouraged_pending_test 84 - anonymous_argument_in_multiline_closure 85 - no_extension_access_modifier 86 - no_grouping_extension 87 - switch_case_on_newline 88 - strict_fileprivate 89 - extension_access_modifier 90 - convenience_type 91 - no_magic_numbers 92 - one_declaration_per_file 93 - vertical_whitespace_between_cases 94 - vertical_whitespace_closing_braces 95 - superfluous_else 96 - number_separator 97 - prefixed_toplevel_constant 98 - opening_brace 99 - trailing_closure 100 - contrasted_opening_brace 101 - sorted_imports 102 - redundant_type_annotation 103 - shorthand_optional_binding 104 - untyped_error_in_catch 105 - file_name 106 - todo 107 108# Rule configurations 109force_cast: warning 110force_try: warning 111 112# identifier_name rule disabled - see disabled_rules section 113 114type_name: 115 min_length: 116 warning: 2 117 error: 1 118 max_length: 119 warning: 60 120 error: 80 121 122function_body_length: 123 warning: 150 124 error: 300 125 126file_length: 127 warning: 1500 128 error: 2500 129 ignore_comment_only_lines: true 130 131type_body_length: 132 warning: 800 133 error: 1200 134 135cyclomatic_complexity: 136 warning: 20 137 error: 120 138 139large_tuple: 140 warning: 4 141 error: 5 142 143nesting: 144 type_level: 145 warning: 4 146 error: 6 147 function_level: 148 warning: 5 149 error: 7 150 151line_length: 152 warning: 120 153 error: 250 154 ignores_comments: true 155 ignores_urls: true 156 157# Custom rules can be added here if needed 158 159# Reporter type 160reporter: "xcode"