Skip to content
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

Hero causes excessive warnings in Bitrise #615

Closed
danielsaidi opened this issue Sep 27, 2019 · 2 comments
Closed

Hero causes excessive warnings in Bitrise #615

danielsaidi opened this issue Sep 27, 2019 · 2 comments

Comments

@danielsaidi
Copy link
Contributor

danielsaidi commented Sep 27, 2019

What did you do?

Build an app that uses Hero on Bitrise

What did you expect to happen?

Bitrise should builds with no warnings, or at least very few, so that we can focus on important warnings instead of unnecessary ones.

What happened instead?

Bitrise explodes in warning regarding code quality within Hero.

General Information

  • Hero Version: 1.4.0

  • iOS Version(s): 13

  • Swift Version: 5.1

  • Devices/Simulators: -

  • Reproducible in Examples? (Yes/No): Yes

When you build in Bitrise, the logs fill up with warnings about code issues in Hero, that are easily solved, for instance:

 /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/CAMediaTimingFunction+Hero.swift:30:3: 'public' modifier is redundant for static property declared in a public extension
[21:04:53]: ▸   public static let easeInOut = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)
[21:04:53]: ▸   ^~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/CAMediaTimingFunction+Hero.swift:33:3: 'public' modifier is redundant for static property declared in a public extension
[21:04:53]: ▸   public static let standard = CAMediaTimingFunction(controlPoints: 0.4, 0.0, 0.2, 1.0)
[21:04:53]: ▸   ^~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/CAMediaTimingFunction+Hero.swift:34:3: 'public' modifier is redundant for static property declared in a public extension
[21:04:53]: ▸   public static let deceleration = CAMediaTimingFunction(controlPoints: 0.0, 0.0, 0.2, 1)
[21:04:53]: ▸   ^~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/CAMediaTimingFunction+Hero.swift:35:3: 'public' modifier is redundant for static property declared in a public extension
[21:04:53]: ▸   public static let acceleration = CAMediaTimingFunction(controlPoints: 0.4, 0.0, 1, 1)
[21:04:53]: ▸   ^~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/CAMediaTimingFunction+Hero.swift:36:3: 'public' modifier is redundant for static property declared in a public extension
[21:04:53]: ▸   public static let sharp = CAMediaTimingFunction(controlPoints: 0.4, 0.0, 0.6, 1)
[21:04:53]: ▸   ^~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/CAMediaTimingFunction+Hero.swift:39:3: 'public' modifier is redundant for static property declared in a public extension
[21:04:53]: ▸   public static let easeOutBack = CAMediaTimingFunction(controlPoints: 0.175, 0.885, 0.32, 1.275)
[21:04:53]: ▸   ^~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/CG+Hero.swift:43:3: 'internal' modifier is redundant for property declared in an internal extension
[21:04:53]: ▸   internal var center: CGPoint {
[21:04:53]: ▸   ^~~~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/CG+Hero.swift:46:3: 'internal' modifier is redundant for property declared in an internal extension
[21:04:53]: ▸   internal var point: CGPoint {
[21:04:53]: ▸   ^~~~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/CG+Hero.swift:58:3: 'internal' modifier is redundant for property declared in an internal extension
[21:04:53]: ▸   internal var center: CGPoint {
[21:04:53]: ▸   ^~~~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/CG+Hero.swift:61:3: 'internal' modifier is redundant for property declared in an internal extension
[21:04:53]: ▸   internal var bounds: CGRect {
[21:04:53]: ▸   ^~~~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/UIView+Hero.swift:52:4: 'public' modifier is redundant for property declared in a public extension
[21:04:53]: ▸    public var id: String? {
[21:04:53]: ▸    ^~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/UIView+Hero.swift:61:3: 'public' modifier is redundant for property declared in a public extension
[21:04:53]: ▸   public var isEnabled: Bool {
[21:04:53]: ▸   ^~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/UIView+Hero.swift:70:3: 'public' modifier is redundant for property declared in a public extension
[21:04:53]: ▸   public var isEnabledForSubviews: Bool {
[21:04:53]: ▸   ^~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/UIView+Hero.swift:78:3: 'public' modifier is redundant for property declared in a public extension
[21:04:53]: ▸   public var modifiers: [HeroModifier]? {
[21:04:53]: ▸   ^~~~~~~
[21:04:53]: ▸ ⚠️  /Users/vagrant/Library/Developer/Xcode/DerivedData/BookBeat-fxafdpcsmubmsucbijoshrzlgggw/SourcePackages/checkouts/Hero/Sources/Extensions/UIView+Hero.swift:86:3: 'public' modifier is redundant for property declared in a public extension
[21:04:53]: ▸   public var modifierString: String? {
@danielsaidi danielsaidi changed the title Hero code issues result in excessive warnings in Bitrise Hero causes excessive warnings in Bitrise Sep 27, 2019
@danielsaidi
Copy link
Contributor Author

danielsaidi commented Sep 27, 2019

#616 solves this problem.

@JoeMatt
Copy link
Collaborator

JoeMatt commented Oct 8, 2019

Closed. Pr merged.

@JoeMatt JoeMatt closed this as completed Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants