Skip to content

Commit 76d21f5

Browse files
committed
Add shared SwiftLint configuration
Inherit SwiftLint rules from the parent swift-standards repository.
1 parent 7408548 commit 76d21f5

File tree

1 file changed

+5
-50
lines changed

1 file changed

+5
-50
lines changed

.swiftlint.yml

Lines changed: 5 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,7 @@
1-
disabled_rules:
2-
- line_length
3-
- identifier_name
4-
- nesting
5-
- type_name
6-
- explicit_enum_raw_value
7-
- file_length
8-
- function_body_length
9-
- function_parameter_count # Allow 6+ parameters for DateTime and Area factory methods
10-
- type_body_length # Comprehensive test suites can be longer than 250 lines
11-
- trailing_comma # Conflicts with swift-format which prefers trailing commas
12-
- redundant_discardable_let # Preserve 'let _ =' in result builder contexts (required for Swift 6.0+)
1+
# SwiftLint configuration for swift-cssom
2+
# Inherits from the shared parent configuration in swift-standards
133

14-
opt_in_rules:
15-
- empty_count
16-
- explicit_init
17-
- sorted_imports
18-
- force_cast
19-
- force_try
20-
- closure_spacing
21-
- operator_usage_whitespace
22-
- private_outlet
23-
- redundant_nil_coalescing
24-
- empty_string
25-
- literal_expression_end_indentation
26-
- single_test_class
27-
- sorted_first_last
28-
- vertical_whitespace
29-
- strict_fileprivate
30-
- legacy_random
31-
- no_extension_access_modifier
32-
- colon
33-
34-
included:
35-
- Package.swift
36-
- Sources
37-
- Tests
4+
parent_config: https://raw.githubusercontent.com/swift-standards/swift-standards/main/.swiftlint.yml
385

39-
excluded:
40-
- Carthage
41-
- Pods
42-
- fastlane
43-
- build
44-
45-
analyzer_rules:
46-
- unused_import
47-
48-
colon:
49-
apply_to_dictionaries: true
50-
51-
vertical_whitespace:
52-
max_empty_lines: 1
6+
# Package-specific overrides (if needed)
7+
# Add any swift-cssom specific rules here

0 commit comments

Comments
 (0)