How to Setup SwiftLint on XCode 14
Вставка
- Опубліковано 2 сер 2024
- Today we learn how to setup Swiftlint in our iOS project to foster a clean and consistent codebase.
Resources:
1. Swiftlint Docs: github.com/realm/SwiftLint
2. SwiftLint Rules realm.github.io/SwiftLint/rul...
Say Hi on Social Media:
LinkedIn: /
Instagram: its_macco?...
Twitter: / its_macco
Project Setup 00:00
Install Swiftlint 03:03
Fix Lint Issues 04:39
Swiftlint Config 08:49
Disable Rule 14:54
What Next 19:55 - Наука та технологія
thanks sooo much this was really helpful am waiting for the next vid
The pleasure is all mine 😊
Useful video. Thanks for sharing 😃👍
best explaining
3:07
your terminal is Colorful and it was guiding u with placeholders
i want same in my Mac
will you make one video on this ??
Where did you added your rules file and how you have given that path ??
Hi, I'm getting this error "Command PhaseScriptExecution failed with a nonzero exit code" when I add the script and built the project.
how did you get your terminal to be that cool
I answered your question here. 😊
ua-cam.com/video/Hd1tCGY7st8/v-deo.html
disabled_rules:
- trailing_whitespace
- force_cast
- force_try
- unused_setter_value
- file_lenght
- valid_ibinspectable
- shorthand_operator
- file_header
- discarded_notification_center_observer
- empty_enum_arguments
- prohibited_super_call
- missing_docs
- unneeded_override
opt_in_rules:
- empty_count
- explicit_init
- yoda_condition
- closure_end_indentation
- closure_spacing
- fatal_error_message
- first_where
- operator_usage_whitespace
- overriden_super_call
- redundant_nil_coalescing
- multiline_parameters
- vertical_parameter_alignment_on_call
- joined_default_parameter
- unneeded_parenthesis_in_closure_argument
excluded:
- Carthage/
- Pods/
- Generated/
# Rule to enforce camelCase for variable and constant names
identifier_name:
min_length: 1
max_length:
warning: 50
error: 60
excluded: ["id", "url"] # Exclude certain identifiers from the rule
# Rule to limit the length of function bodies
function_body_length:
warning: 100
error: 200