Skip to content

Commit

Permalink
Feature/update coverage (#19)
Browse files Browse the repository at this point in the history
* fix: Fix adding Kotlin sourceset
change: Add less strict coverage exclusions

* change: disable ktlint reports by default

* docs: update changelog

* docs: Update Readme
  • Loading branch information
mateuszkwiecinski authored Jan 23, 2020
1 parent 5f3fceb commit 1531835
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
11 changes: 10 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.5.0] - 2020-01-23

### Changed
- Disable _ktlint_ reports by default
- Add less strict coverage exclusions

## Fixed
- Fix setting `/src/*/kotlin/` source sets.

## [0.4.0] - 2020-01-12

Expand Down Expand Up @@ -42,7 +50,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Add Quality Plugin - `com.starter.quality`

[Unreleased]: https://github.com/mateuszkwiecinski/project-starter/compare/release/0.4.0...HEAD
[Unreleased]: https://github.com/mateuszkwiecinski/project-starter/compare/release/0.5.0...HEAD
[0.5.0]: https://github.com/mateuszkwiecinski/project-starter/compare/release/0.4.0.../release/0.5.0
[0.4.0]: https://github.com/mateuszkwiecinski/project-starter/compare/release/0.3.0.../release/0.4.0
[0.3.0]: https://github.com/mateuszkwiecinski/project-starter/compare/release/0.2.0.../release/0.3.0
[0.2.0]: https://github.com/mateuszkwiecinski/project-starter/compare/release/0.1.0.../release/0.2.0
Expand Down
1 change: 0 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ commonConfig {
- `formatOnCompile` - defines if ktlint should format source code on every compilation
- `versioningPlugin`:
- `enabled` - enables/disables [Versioning Plugin](#versioning-plugin)
- `enabled` - defines if ktlint should format source code on every compilation

### Day-to-day use
After applying library/application plugin there are appropriate tasks added:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ internal inline fun <reified T> Project.withExtension(crossinline action: Projec
}

private fun BaseExtension.addKotlinSourceSets() {
sourceSets.whenObjectAdded { set ->
sourceSets.all { set ->
val withKotlin = set.java.srcDirs.map { it.path.replace("java", "kotlin") }
set.java.setSrcDirs(set.java.srcDirs + withKotlin)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ private val dagger = listOf(
"**/*_MembersInjector.class",
"**/Dagger*Component.class",
"**/Dagger*Component${"$"}Builder.class",
"**/*Module_*Factory.class"
"**/*_*Factory.class",
"**/*_Factory.class"
)

private val excludes = databinding + framework + butterKnife + dagger
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal fun Project.configureKtlint() {
it.indentSize = 4
it.continuationIndentSize = 4
it.experimentalRules = true
it.reporters = arrayOf("checkstyle", "plain")
it.reporters = emptyArray()
it.disabledRules = arrayOf("import-ordering")
}

Expand Down

0 comments on commit 1531835

Please sign in to comment.