-
Notifications
You must be signed in to change notification settings - Fork 56
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: 🎸 [jira: 2572] new card footer for Joule Object Card #706
Conversation
for (i, subview) in subviews.enumerated() { | ||
let x = cache.frames[i].origin.x + bounds.minX | ||
let y = cache.frames[i].origin.y + bounds.minY | ||
subview.place(at: CGPointMake(x, y), |
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.
Legacy Constructor Violation: Swift constructors are preferred over legacy convenience functions. (legacy_constructor)
|
||
/// .compact, .sameAndFill, same size, up to 2 buttons | ||
/// .reguar, .intrinsic, up to 3 buttons | ||
func calculateLayout(proposalWidth: CGFloat?, subViewSizes: [CGSize], hideRect: CGRect, layoutMode: LayoutMode, cache: inout CacheData) { |
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.
Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 15 (cyclomatic_complexity)
Function Body Length Violation: Function body should span 60 lines or less excluding comments and whitespace: currently spans 70 lines (function_body_length)
for (i, subview) in subviews.enumerated() { | ||
let x = cache.frames[i].origin.x + bounds.minX | ||
let y = cache.frames[i].origin.y + bounds.minY | ||
subview.place(at: CGPointMake(x, y), |
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.
Legacy Constructor Violation: Swift constructors are preferred over legacy convenience functions. (legacy_constructor)
|
||
/// .compact, .sameAndFill, same size, up to 2 buttons | ||
/// .reguar, .intrinsic, up to 3 buttons | ||
func calculateLayout(proposalWidth: CGFloat?, subViewSizes: [CGSize], hideRect: CGRect, layoutMode: LayoutMode, cache: inout CacheData) { |
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.
Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 15 (cyclomatic_complexity)
Function Body Length Violation: Function body should span 60 lines or less excluding comments and whitespace: currently spans 70 lines (function_body_length)
|
||
/// Sample cards for testing | ||
public static let cardSamples = [sampleCard1, sampleCard13, sampleCard2, sampleCard3, sampleCard4, sampleCard5, sampleCard6, sampleCard7, sampleCard9, sampleCard10, vbCard, sampleCard11, sampleCard8, fullCard] | ||
public static let cardFooterSamples = [sampleCard6, sampleCard16, sampleCard17, sampleCard12, sampleCard13, sampleCard14, sampleCard15, sampleCard20, sampleCard18, sampleCard19] |
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.
Missing Docs Violation: public declarations should be documented. (missing_docs)
for (i, subview) in subviews.enumerated() { | ||
let x = cache.frames[i].origin.x + bounds.minX | ||
let y = cache.frames[i].origin.y + bounds.minY | ||
subview.place(at: CGPointMake(x, y), |
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.
Legacy Constructor Violation: Swift constructors are preferred over legacy convenience functions. (legacy_constructor)
|
||
/// .compact, .sameAndFill, same size, up to 2 buttons | ||
/// .reguar, .intrinsic, up to 3 buttons | ||
func calculateLayout(proposalWidth: CGFloat?, subViewSizes: [CGSize], hideRect: CGRect, layoutMode: LayoutMode, cache: inout CacheData) { |
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.
Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 15 (cyclomatic_complexity)
Function Body Length Violation: Function body should span 60 lines or less excluding comments and whitespace: currently spans 70 lines (function_body_length)
for (i, subview) in subviews.enumerated() { | ||
let x = cache.frames[i].origin.x + bounds.minX | ||
let y = cache.frames[i].origin.y + bounds.minY | ||
subview.place(at: CGPointMake(x, y), |
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.
Legacy Constructor Violation: Swift constructors are preferred over legacy convenience functions. (legacy_constructor)
|
||
/// .compact, .sameAndFill, same size, up to 2 buttons | ||
/// .reguar, .intrinsic, up to 3 buttons | ||
func calculateLayout(proposalWidth: CGFloat?, subViewSizes: [CGSize], hideRect: CGRect, layoutMode: LayoutMode, cache: inout CacheData) { |
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.
Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 15 (cyclomatic_complexity)
Function Body Length Violation: Function body should span 60 lines or less excluding comments and whitespace: currently spans 70 lines (function_body_length)
|
||
/// Sample cards for testing | ||
public static let cardSamples = [sampleCard1, sampleCard13, sampleCard2, sampleCard3, sampleCard4, sampleCard5, sampleCard6, sampleCard7, sampleCard9, sampleCard10, vbCard, sampleCard11, sampleCard8, fullCard] | ||
public static let cardFooterSamples = [sampleCard6, sampleCard16, sampleCard17, sampleCard12, sampleCard13, sampleCard14, sampleCard15, sampleCard20, sampleCard18, sampleCard19] |
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.
Missing Docs Violation: public declarations should be documented. (missing_docs)
import Foundation | ||
import SwiftUI | ||
|
||
/** |
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.
Orphaned Doc Comment Violation: A doc comment should be attached to a declaration. (orphaned_doc_comment)
for (i, subview) in subviews.enumerated() { | ||
let x = cache.frames[i].origin.x + bounds.minX | ||
let y = cache.frames[i].origin.y + bounds.minY | ||
subview.place(at: CGPointMake(x, y), |
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.
Legacy Constructor Violation: Swift constructors are preferred over legacy convenience functions. (legacy_constructor)
|
||
/// .compact, .sameAndFill, same size, up to 2 buttons | ||
/// .reguar, .intrinsic, up to 3 buttons | ||
func calculateLayout(proposalWidth: CGFloat?, subViewSizes: [CGSize], hideRect: CGRect, layoutMode: LayoutMode, cache: inout CacheData) { |
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.
Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 15 (cyclomatic_complexity)
Function Body Length Violation: Function body should span 60 lines or less excluding comments and whitespace: currently spans 70 lines (function_body_length)
|
||
/// Sample cards for testing | ||
public static let cardSamples = [sampleCard1, sampleCard13, sampleCard2, sampleCard3, sampleCard4, sampleCard5, sampleCard6, sampleCard7, sampleCard9, sampleCard10, vbCard, sampleCard11, sampleCard8, fullCard] | ||
public static let cardFooterSamples = [sampleCard6, sampleCard16, sampleCard17, sampleCard12, sampleCard13, sampleCard14, sampleCard15, sampleCard20, sampleCard18, sampleCard19] |
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.
Missing Docs Violation: public declarations should be documented. (missing_docs)
import Foundation | ||
import SwiftUI | ||
|
||
/** |
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.
Orphaned Doc Comment Violation: A doc comment should be attached to a declaration. (orphaned_doc_comment)
import Foundation | ||
import SwiftUI | ||
|
||
/** |
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.
Orphaned Doc Comment Violation: A doc comment should be attached to a declaration. (orphaned_doc_comment)
* feat: 🎸 [jira: 2572] new card footer for Joule Object Card * fix: 🐛 [jira: 2572] change the backgroud of popup in footer
No description provided.