Skip to content

Commit 890a9de

Browse files
committed
add swiftlint.yml, fix lint errors
1 parent c85b568 commit 890a9de

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.swiftlint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
disabled_rules:
2+
- todo
3+
- trailing_comma
4+
- nesting
5+
6+
type_name:
7+
excluded:
8+
- ID
9+
10+
identifier_name:
11+
min_length: 2
12+
allowed_symbols: ['_']
13+
excluded:
14+
- c
15+
- id
16+
- vc

Sources/CodeEditKit/Targets/Target.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ public struct Target: Identifiable {
1717
* - Parameter executable: The executable to launch inside the pseudo terminal
1818
* - Parameter args: an array of strings that is passed as the arguments to the underlying process
1919
* - Parameter environment: an array of environment variables to pass to the child process.
20-
* - Parameter execName: If provided, this is used as the Unix argv[0] parameter, otherwise, the executable is used as the args [0], this is used when the intent is to set a different process name than the file that backs it.
20+
* - Parameter execName: If provided, this is used as the Unix argv[0] parameter, otherwise,
21+
* the executable is used as the args [0], this is used when the intent is to set a different process name
22+
* than the file that backs it.
2123
*/
2224
public init(id: String, displayName: String,
2325
executable: String, args: [String] = [],
@@ -45,6 +47,8 @@ public struct Target: Identifiable {
4547
/// ``environment`` is an array of environment variables to pass to the child process.
4648
public var environment: [String]?
4749

48-
/// ``execName`` If provided, this is used as the Unix argv[0] parameter, otherwise, the executable is used as the args [0], this is used when the intent is to set a different process name than the file that backs it.
50+
/// ``execName`` If provided, this is used as the Unix argv[0] parameter, otherwise,
51+
/// the executable is used as the args [0], this is used when the intent is to set a different
52+
/// process name than the file that backs it.
4953
public var execName: String?
5054
}

0 commit comments

Comments
 (0)