Update dependency com.lemonappdev:konsist to v0.15.1 #2529
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.13.0
->0.15.1
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
LemonAppDev/konsist (com.lemonappdev:konsist)
v0.15.1
What's Changed
Restore layer validation
Full Changelog: LemonAppDev/konsist@v0.15.0...v0.15.1
v0.15.0
What's Changed
1. Use Kotlin compiler
kotlin-compiler-embeddable
dependencyThis release updates Kotlin compiler dependency to
kotlin-compiler-embeddable
reducing dependency conflicts and simplifying dependency management.2. All all APIs accepting
varargs
now accept Kotlin collections (List
andSet
, etc.):💡 Improvements
kotlin-compiler
tokotlin-compiler-embeddable
by @igorwojda in #954Full Changelog: LemonAppDev/konsist@v0.14.0...v0.15.0
v0.14.0
What's Changed
1.0.0
, but this will be a big change, so instead we decided to follow more granular deprecation strategy to facilitate future upgrades. API with deprecation target for1.0.0
has beed updated to0.16.0
(#902). From now on deprecated methods will be available for 2 minor versions (until 1.0.0 release). After 1.0.0 release Konsist will follow semantic versioning scheme meaning breaking changes will be introduced only when major version of the Konsist changes. Deprecated methods (with initial removal targeted for1.0.0
) will be removed in next release (deprecation target has bee updated). Please update your by removingDeprecated
Konsist API to facilitate future migration.Thanks you for your feedback 🙏
New Contributors
1. Added
declaration references
Konsist understands the code's structure better. This new feature, highly requested by the community, provides link between declarations, giving you more control over code quality checks. Konsist now works with declarations directly, allowing you to precisely verify type properties, inheritance relationships, and more e.g.
All parent interfaces have
actual
modifier:All function parameters are interfaces:
All classes have test classes with
Test
annotation and a name containing its name:All interfaces have children (child classes and child interfaces) resided in
..somepackage..
package:See Declaration References docs.
2. Retrieve indirect parents
The
indirectParents
parameter has been added to parent retrieval methods (parents()
,hasParentClass()
,hasAllParentInterfacesOf
etc.). This parameter specifies whether or not to include parents such as parent of the parent. By default,indirectParents
isfalse
e.g.For above inheritance hierarchy is possible to retrieve direct parents of
ClassC
(ClassB
) as well as all parents present in the codebase (ClassB
andClassC
).3. Improved
assertArchitecture
methodsFollowing other
assert
methods, we added thetestName
andadditionalMessage
arguments to theassertArchitecture
methods.You can now manually set the test name that will be displayed in the test failure message and used to suppress tests. This is useful for
Kotest
and dynamic tests.4. Added support for variables
Now Konsist will allow to access and verify variables located inside functions, init blocks, getters, setters and enum constants.
5. Ability to check
tacit
typeNow Konsist can check whether the properties or variables have a tacit type. Tacit type means that the declaration has an explicitly or implicitly specified type.
One scenario where
tacit type
is useful is verification ofsut
(system under test / class under test) existence:6. Ability to check
sourceType
andbareSourceType
Now Konsist provides
sourceType
andbareSourceType
properties for better type analysis:One scenario where
bareSourceType
is useful is naming verification of property withList
type:7. Ability to check whether a property is read-only
Now Konsist provides
isReadOnly
property that checks whether a property is specified with aval
modifier:Complete list of changes
🐛 Bug Fixes
💡 Improvements
testName
ToassertArchitecture
by @nataliapeterwas in #712null
values in representsType() by @yonatankarp in #719toString
by @nataliapeterwas in #735isKotlinType
Property Where Generic Types Where Treated As Kotlin Collections by @igorwojda in #754KoSourceAndAliasTypeProviderCore.baseSourceType
by @igorwojda in #753sourcetype
stripping?
by @igorwojda in #756isKotlinBasicType
AndisKotlinCollectionType
by @igorwojda in #757baseSourceType
TobareSourcetype
by @igorwojda in #758bareType
by @igorwojda in #759check_kttxt_snippets
by @igorwojda in #764indirectParents=false
Parameter by @nataliapeterwas in #726containingDeclaration
by @nataliapeterwas in #715konsist-declaration-tester
by @nataliapeterwas in #858hasTacitType
by @nataliapeterwas in #773Unit
,Any
andNothing
by @nataliapeterwas in #926sourceX
Properties by @nataliapeterwas in #927sourceX
toasXDeclaration()
by @nataliapeterwas in #930📕 Documentation
🏗️ CI
📦 Dependency Upgrade
Full Changelog: LemonAppDev/konsist@v0.13.0...v0.14.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.