You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The getChangelog task isn't correctly handling pre-formated markdown text.
Compare the getChangelog output with the current changelog.
> cat changelog.md
# Changelog
## [Unreleased]
### Added
- `RedundantCoroutineScopeDetector` warns when a `androidx.lifecycle.LifecycleOwner`, `androidx.lifecycle.ViewModel`, or `android.view.View` implements or has a field assignable to `kotlinx.coroutines.CoroutineScope`.
Existing scopes are bound to relevant lifecycle events in the system and will prevent coroutines from running past their utility.
- `LifecycleOwner` should use `lifecycleScope`
- `Fragment` should use `viewLifecycleOwner.lifecycleScope`,
- `ViewModel` should use `viewModelScope`
- `View` should use `findViewTreeLifecycleOwner()?.lifecycleScope`
- `FiniteWhenCasesDetector` warns when `else` is used as a `when` branch when the `when` subject has finite possibilities
- This detector works best when applied to an app project with `lint.checkDependencies = true` in the app module AGP DSL.
- `ForEachFunctionDetector` reports `forEach` and `forEachIndexed` use and encourages a language for loop replacement
- `SkippedClassLocalOverrideDetector` warns when an explicit super method is called outside of the corresponding override.
### Changed
- Updated build tooling
- Treat lint warnings as errors for issues in this library
- Add spotless
## [1.1.6]
### Changed
- Java version is increased to Java 11
### Fixed
- Multiple build variants are published after upgrading gradle maven publish plugin to [0.19.0](https://github.com/vanniktech/gradle-maven-publish-plugin/blob/master/CHANGELOG.md#version-0190-2022-02-26)
- A NPE in SingleApostropheDetector for atypical resource definitions
[...]
> ./gradlew getChangelog -q --unreleased
## Unreleased
### Added
- - `LifecycleOwner` should use `lifecycleScope`
- `Fragment` should use `viewLifecycleOwner.lifecycleScope`,
- `ViewModel` should use `viewModelScope`
- `View` should use `findViewTreeLifecycleOwner()?.lifecycleScope`
- - This detector works best when applied to an app project with `lint.checkDependencies = true` in the app module AGP DSL.
- `ForEachFunctionDetector` reports `forEach` and `forEachIndexed` use and encourages a language for loop replacement
- `SkippedClassLocalOverrideDetector` warns when an explicit super method is called outside of the corresponding override.
### Changed
- Updated build tooling
- Treat lint warnings as errors for issues in this library
- Add spotless
Describe the bug
The
getChangelog
task isn't correctly handling pre-formated markdown text.Compare the
getChangelog
output with the current changelog.To Reproduce
Run
./gradlew getChangelog -q --unreleased
on https://github.com/Faithlife/AndroidLintExpected behavior
I expect the output of
getChangelog
to reflect the input markdown, including pre-formatted text with backticks `.Environment:
The text was updated successfully, but these errors were encountered: