Skip to content

Commit f8d19be

Browse files
committed
Updating the Swiftlint config
1 parent dfc638c commit f8d19be

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

.swiftlint.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
11
disabled_rules:
2+
# - colon
3+
# - comma
4+
# - control_statement
5+
# - file_length
6+
# - force_cast
7+
# - force_try
8+
# - function_body_length
9+
# - leading_whitespace
10+
# - line_length
11+
# - nesting
12+
# - opening_brace
13+
# - operator_whitespace
14+
# - return_arrow_whitespace
15+
# - statement_position
16+
# - todo
17+
# - trailing_newline
18+
# - trailing_semicolon
19+
# - trailing_whitespace
20+
# - type_body_length
21+
# - type_name
22+
# - variable_name_max_length
23+
# - variable_name_min_length
224
- variable_name
325
- large_tuple
426
line_length:
527
- 150 # warning
628
excluded:
729
- Examples/
830
statement_position:
9-
statement_mode: uncuddled_else
31+
statement_mode: uncuddled_else

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: objective-c
22
osx_image: xcode9
33
script:
44
- brew install swiftlint || brew upgrade swiftlint
5-
- swiftlint lint --path Sources/
5+
- swiftlint lint --path Sources/ --config ../.swiftlint.yml
66
- cd Examples
77
- xcodebuild -version
88
- xcodebuild -project DynamicColorExample.xcodeproj -scheme iOSTests -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 6" -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test

Sources/DynamicColor+Mixing.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public extension DynamicColor {
7777
- Returns: A darker DynamicColor.
7878
*/
7979
public final func shaded(amount: CGFloat = 0.2) -> DynamicColor {
80-
return mixed(withColor: DynamicColor(red:0, green:0, blue: 0, alpha:1), weight: amount)
80+
return mixed(withColor: DynamicColor(red: 0, green: 0, blue: 0, alpha: 1), weight: amount)
8181
}
8282

8383
// MARK: - Convenient Internal Methods

Sources/DynamicColor.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public extension DynamicColor {
100100
- returns: A string similar to this pattern "#f4003b".
101101
*/
102102
public final func toHexString() -> String {
103-
return String(format:"#%06x", toHex())
103+
return String(format: "#%06x", toHex())
104104
}
105105

106106
/**

0 commit comments

Comments
 (0)