Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GWL-53] SwiftLint 수정 #61

Merged
merged 3 commits into from
Nov 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iOS/.swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
--enable docComments
--enable isEmpty
--enable markTypes
--enable sortedSwitchCases
--enable sortSwitchCases
--enable wrapEnumCases
--enable wrapSwitchCases
--guardelse "next-line"
Expand Down
8 changes: 8 additions & 0 deletions iOS/.swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ only_rules:
- void_return
- unowned_variable_capture
- custom_rules
- trailing_comma
- line_length

excluded:
- Carthage
Expand All @@ -25,6 +27,12 @@ colon:

indentation: 2

trailing_comma:
mandatory_comma: true

line_length:
warning: 150
Comment on lines +30 to +34
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

적용하려면 only_rules에 본 룰을 먼저 적용해야합니다.

only_rules:에 - trailing_commaline_length를 넣어주세요!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그저 갓..


custom_rules:
no_objcMembers:
name: "@objcMembers"
Expand Down
19 changes: 19 additions & 0 deletions iOS/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
generate:
tuist fetch
TUIST_ROOT_DIR=${PWD} tuist generate

test:
tuist clean
tuist fetch
TUIST_ROOT_DIR=${PWD} tuist test
build:
TUIST_ROOT_DIR=${PWD} tuist build

clean:
rm -rf **/*.xcodeproj
rm -rf *.xcworkspace

reset:
tuist clean
rm -rf **/*.xcodeproj
rm -rf *.xcworkspace
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private let tuistRootDirectory = ProcessInfo.processInfo.environment["TUIST_ROOT

private func swiftFormatCommand() -> String {
if let tuistRootDirectory {
return "swiftformat --config \(tuistRootDirectory)/swiftformat ."
return "swiftformat . --config \(tuistRootDirectory)/.swiftformat"
} else {
return "swiftformat ."
}
Expand Down