Skip to content

Instantly share code, notes, and snippets.

View noah0316's full-sized avatar
🍎
G.R.I.T

SeungHyun-Hong noah0316

🍎
G.R.I.T
View GitHub Profile
🌞 Morning 17 commits ▌░░░░░░░░░░░░░░░░░░░░ 2.6%
🌆 Daytime 93 commits ██▉░░░░░░░░░░░░░░░░░░ 14.0%
🌃 Evening 341 commits ██████████▊░░░░░░░░░░ 51.2%
🌙 Night 215 commits ██████▊░░░░░░░░░░░░░░ 32.3%
@noah0316
noah0316 / pre-commit
Last active September 3, 2023 10:29
SwiftLint를 Git Hook과 함께 사용하는 방법을 소개합니다 :)
#!/bin/sh
# written by Noah
# 자세한 사용 방법은 https://noah-ios.dev/swiftlint-githooks/ 제 블로그를 참조해주세요!
LINT=$(which swiftlint)
if [[ -e "${LINT}" ]]; then
echo "🚀 SwiftLint 시작..."
echo "🔍 lint 적용 경로: $(pwd)"
count=0
for file_path in $(git ls-files -m --exclude-from=.gitignore | grep ".swift$"); do