Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

35 add ci #45

Merged
merged 20 commits into from
Aug 19, 2018
Merged

35 add ci #45

merged 20 commits into from
Aug 19, 2018

Conversation

JonasWanke
Copy link
Owner

@JonasWanke JonasWanke commented Aug 17, 2018

Fixes: #35

Description

Travis is integrated as CI. Danger with detekt and Android Lint perform automated linting.

Checklist

  • Tested on actual devices
  • Commit messages follow conventionalcommits.org

@jwbot
Copy link
Collaborator

jwbot commented Aug 17, 2018

2 Warnings
⚠️ PR is classed as Work in Progress
⚠️ a large PR

Generated by 🚫 Danger

@@ -52,8 +52,7 @@ class HoursView @JvmOverloads constructor(
hourHeightMin = getDimension(R.styleable.HoursView_hourHeightMin, 0f)
hourHeightMax = getDimension(R.styleable.HoursView_hourHeightMax, 0f)
hourSize = getDimensionPixelSize(R.styleable.HoursView_hourSize, 16)
Copy link
Collaborator

@jwbot jwbot Aug 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This expression contains a magic number. Consider defining it to a well named constant.

throw IllegalStateException("datePaint is null")

val text = weekDayStrings[cal.get(Calendar.DAY_OF_WEEK)]
?: throw IllegalStateException("weekDayString for day ${cal.get(Calendar.DAY_OF_WEEK)} not found")
val textLeft = left + width * day / 7 + .3f * dateSize
Copy link
Collaborator

@jwbot jwbot Aug 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This expression contains a magic number. Consider defining it to a well named constant.

@JonasWanke JonasWanke changed the title [WIP] 35 add ci 35 add ci Aug 19, 2018
@JonasWanke JonasWanke merged commit 3f981c2 into dev Aug 19, 2018
@JonasWanke JonasWanke deleted the ci/35-add-ci branch August 19, 2018 09:48
@JonasWanke JonasWanke added this to the v0.0.5 milestone Aug 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants