Skip to content

Commit

Permalink
Add .swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Nov 3, 2023
1 parent 9897550 commit 6344b31
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
disabled_rules:
- opening_brace
- trailing_comma

excluded:
- '**/build'
- '**/vendor'

#
# parameters
#

cyclomatic_complexity:
warning: 100
error: 150

file_length:
warning: 2000
error: 3000

function_body_length:
warning: 1200
error: 1500

function_parameter_count:
warning: 10
error: 20

identifier_name:
max_length:
warning: 100
min_length:
warning: 1

large_tuple:
warning: 5

line_length:
warning: 1000
error: 2000

nesting:
type_level:
warning: 2

type_body_length:
warning: 1200
error: 1500
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ check-staple:

swift-format:
$(MAKE) -C src swift-format

swiftlint:
swiftlint

0 comments on commit 6344b31

Please sign in to comment.