forked from microsoft/soundscape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
66 lines (64 loc) · 1.08 KB
/
.swiftlint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
disabled_rules:
- force_cast
- line_length
- function_body_length
- type_body_length
- file_length
- cyclomatic_complexity
- implicit_getter
- valid_ibinspectable
- todo
excluded:
- Pods/*
- Carthage/*
- RLMSupport.swift
large_tuple:
warning: 3
error: 4
trailing_whitespace:
ignores_empty_lines: true
identifier_name:
excluded: # excluded via string array
- id
- db
- to
- on
- On
- of
- ui
- i
- j
- k
- x
- y
- z
- w
- a
- b
- aX
- aY
- bX
- bY
- cX
- cY
- vc
- pt
- ln
- at
- en
- ih
custom_rules:
nslocalizedstring_usage:
included: ".*\\.swift"
name: "NSLocalizedString Usage"
regex: "(NSLocalizedString)"
match_kinds:
- identifier
message: "Consider using GDLocalizedString."
severity: error
gdlocalizedstring_empty_usage:
included: ".*\\.swift"
name: "GDLocalizedString Empty Usage"
regex: "(GDLocalizedString\\(\"\"\\))"
message: "Consider using GDLocalizationUnnecessary(\"\")."
severity: error