-
Notifications
You must be signed in to change notification settings - Fork 0
chore: swiftlint & coderabbit 세팅 #21
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f2a08aa
[BOOK-41] chore: add swiftlint script
doyeonk429 f272559
[BOOK-41] fix: Resolve swiftlint error
clxxrlove d1025b9
[BOOK-41] chore: delete path debug
doyeonk429 524becc
[BOOK-41] feat: Add coderabbit settings
clxxrlove 2f454ff
[BOOK-41] chore: Fix coderabbit settings
clxxrlove File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| language: ko-KR | ||
|
|
||
| early_access: true | ||
| enable_free_tier: true | ||
|
|
||
| reviews: | ||
| profile: chill | ||
| request_changes_workflow: true | ||
| high_level_summary: true | ||
| high_level_summary_placeholder: '@coderabbitai 요약' | ||
| auto_title_placeholder: '@coderabbitai' | ||
| poem: true | ||
| review_status: true | ||
| collapse_walkthrough: false | ||
|
|
||
| abort_on_close: true | ||
|
|
||
| auto_review: | ||
| enabled: true | ||
| auto_incremental_review: true | ||
| ignore_title_keywords: [] | ||
| labels: [] | ||
| drafts: false | ||
| base_branches: [] | ||
|
|
||
| tools: | ||
| shellcheck: | ||
| enabled: true | ||
| ruff: | ||
| enabled: true | ||
| markdownlint: | ||
| enabled: true | ||
| github-checks: | ||
| enabled: true | ||
| timeout_ms: 90000 | ||
| languagetool: | ||
| enabled: true | ||
| disabled_rules: | ||
| - EN_UNPAIRED_BRACKETS | ||
| - EN_UNPAIRED_QUOTES | ||
| disabled_categories: | ||
| - TYPOS | ||
| - TYPOGRAPHY | ||
| - CASING | ||
| enabled_only: false | ||
| level: default | ||
| enabled_rules: [] | ||
| enabled_categories: [] | ||
| biome: | ||
| enabled: true | ||
| hadolint: | ||
| enabled: true | ||
| swiftlint: | ||
| enabled: true | ||
| phpstan: | ||
| enabled: true | ||
| level: default | ||
| golangci-lint: | ||
| enabled: true | ||
| yamllint: | ||
| enabled: true | ||
| gitleaks: | ||
| enabled: true | ||
| checkov: | ||
| enabled: true | ||
| ast-grep: | ||
| packages: [] | ||
| rule_dirs: [] | ||
| util_dirs: [] | ||
| essential_rules: true | ||
|
|
||
| chat: | ||
| auto_reply: true | ||
|
|
||
| knowledge_base: | ||
| web_search: | ||
| enabled: true | ||
| learnings: | ||
| scope: auto | ||
| issues: | ||
| scope: auto | ||
| jira: | ||
| project_keys: [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| disabled_rules: | ||
| - trailing_whitespace | ||
|
|
||
| opt_in_rules: | ||
| - attributes | ||
| - closure_spacing | ||
| - colon | ||
| - operator_usage_whitespace | ||
| - fatal_error_message | ||
| - trailing_closure | ||
| - empty_count | ||
| - function_default_parameter_at_end | ||
| - prefer_self_in_static_references | ||
| - identifier_name # 사용 전 Rule 확인 필요 | ||
| - sorted_imports # 알파벳 순서대로 임포트 | ||
| - duplicate_imports # 중복 임포트 제거 | ||
| - indentation_width | ||
|
|
||
| analyzer_rules: | ||
| - unused_declaration | ||
|
|
||
| line_length: | ||
| warning: 120 | ||
| error: 200 | ||
|
|
||
| type_name: | ||
| min_length: | ||
| warning: 3 | ||
| error: 1 | ||
| max_length: | ||
| warning: 40 | ||
| error: 50 | ||
| validates_start_with_lowercase: warning | ||
|
|
||
| identifier_name: | ||
| min_length: 3 | ||
|
|
||
| function_body_length: | ||
| warning: 30 | ||
| error: 50 | ||
|
|
||
| type_body_length: | ||
| warning: 200 | ||
| error: 400 | ||
|
|
||
| colon: | ||
| flexible_right_spacing: false | ||
| apply_to_dictionaries: true | ||
|
|
||
| operator_usage_whitespace: | ||
| severity: warning | ||
|
|
||
| control_statement: | ||
| severity: warning | ||
| if_else: false | ||
|
|
||
| void_return: | ||
| severity: warning | ||
|
|
||
| custom_rules: | ||
| ios17_uikit_api_usage: | ||
| name: "iOS 17+ UIKit API 사용" | ||
| regex: '\b(UITextView\.TextLayoutManager|UIPasteControl|UIBackgroundConfiguration\.cornerRadius|SectionHeaderPinToVisibleBounds|UIView\.animationsEnabled|UIEditingOverlayViewController)\b' | ||
| message: "이 UIKit API는 iOS 17 이상에서만 사용할 수 있습니다. 최소 지원 버전을 확인하거나 @available(iOS 17, *)로 감싸세요." | ||
| severity: warning |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import ProjectDescription | ||
| import Foundation | ||
|
|
||
| let projectDir = ProcessInfo.processInfo.environment["PROJECT_DIR"] ?? "" | ||
| let swiftLintConfigPath = "\(projectDir)/../../.swiftlint.yml" | ||
|
|
||
|
|
||
| public let swiftLintScript: TargetScript = .pre( | ||
| script: """ | ||
| export PATH="/opt/homebrew/bin:$PATH" | ||
|
|
||
| SWIFTLINT_PATH=$(which swiftlint) | ||
| SWIFTLINT_CONFIG_PATH="${SRCROOT%/*/*}/.swiftlint.yml" | ||
|
|
||
| if [ -n "$SWIFTLINT_PATH" ]; then | ||
| swiftlint --config "$SWIFTLINT_CONFIG_PATH" | ||
| else | ||
| echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint" | ||
| fi | ||
| """, | ||
| name: "SwiftLint", | ||
| basedOnDependencyAnalysis: false | ||
| ) | ||
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.