-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: [FC-0072] setup linting on ci/cd #549
feat: [FC-0072] setup linting on ci/cd #549
Conversation
Thanks for the pull request, @IvanStepanok! What's next?Please work through the following steps to get your changes ready for engineering review: 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently maintained by Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:
When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
9ac9080
to
d43620f
Compare
48723c6
to
4cbed7c
Compare
4cbed7c
to
a3a9dac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
viewModel.config.ssoButtonTitle[languageCode] as! String, | ||
action: { | ||
viewModel.router | ||
.showSSOWebBrowser(title: CoreLocalization.SignIn.logInBtn) | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curly bracket should have own line and indentation
}, | ||
color: .white, | ||
textColor: Theme.Colors.accentColor, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix indentations here please
get { | ||
return type == .webview && webview.baseURL != nil | ||
} | ||
return type == .webview && webview.baseURL != nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return is redundant here
@@ -38,6 +38,18 @@ public extension DataLayer { | |||
} | |||
} | |||
|
|||
public extension DataLayer.CourseMedia { | |||
var domain: CourseMedia { | |||
return CourseMedia( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return is redundant here
import Core | ||
import Theme | ||
|
||
struct StyleBlock: View { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we need to be more specific in naming here - not just StyleBlock, but somehow related to Course Date? WDYT?
OpenEdX/DI/ScreenAssembly.swift
Outdated
connectivity: r.resolve(ConnectivityProtocol.self)!, | ||
playerHolder: holder | ||
) | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the closing bracket should have its own line here
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #549 +/- ##
========================================
Coverage ? 0
========================================
Files ? 0
Lines ? 0
Branches ? 0
========================================
Hits ? 0
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. |
0d4fdb8
@rnr Thanks for the review! All feedback has been addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you
Integrates SwiftLint more strictly into the project workflow and resolves all existing lint warnings. CI pipeline will now block PRs with SwiftLint warnings to maintain code quality.
Changes
Updated SwiftLint configuration with adjusted rules and limits
Modified CI to reject PRs with SwiftLint warnings
Fixed all existing warnings in codebase
Motivation
Ensures consistent code quality through automated static analysis and enforced coding standards.
Testing
Run SwiftLint locally to verify no warnings
Confirm CI blocks PRs with warnings
Review code changes maintain functionality