• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pmd / pmd / 674
79%

Build:
DEFAULT BRANCH: main
Ran 18 Jul 2026 04:37PM UTC
Jobs 1
Files 2192
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Jul 2026 04:15PM UTC coverage: 79.164% (-0.04%) from 79.203%
674

push

github

web-flow
[kotlin] Add kotlin-type-mapper infrastructure (#6795)

* feat(kotlin): add KotlinNodeTypeData with package-private setters and InternalApiBridge

KotlinNodeTypeData stores type-mapper results on AST nodes via DataMap.
Setters are package-private; InternalApiBridge exposes them to callers
outside the types package (e.g. KotlinLanguageProcessor).

* feat(kotlin): add KotlinTypeAnalysisContext and holder with kotlin-type-mapper deps

Add KotlinTypeAnalysisContext (indexes call sites, declarations, type
hierarchy from TypedAst) and KotlinTypeAnalysisContextHolder (global +
thread-local slots). Add kotlin-type-mapper-model and -analyzer deps.

* feat(kotlin): integrate kotlin-type-mapper AST annotation phase

Add KotlinTypeAnnotationVisitor, AnnotationAttributeAnnotator, and
DelegationSpecifierAnnotator to walk parsed ASTs and set @TypeName /
@ReturnTypeName attributes on declaration nodes. KotlinLanguageProcessor
now runs kotlin-type-mapper before parsing and annotates each file via
InternalApiBridge; falls back gracefully when no auxClasspath is set.

* test(kotlin): expand KotlinTypeAnnotationVisitorTest to full visitor coverage

9 tests covering all node types with specific type assertions:
PropertyDeclaration, FunctionDeclaration, CatchBlock, ForStatement (loop var
+ collection param), ClassParameter, ClassDeclaration (simple name without
package; FQN with package declaration), annotation FQN. Uses
KotlinParsingHelper for production-like parsing.

* fix(kotlin): upgrade ktm to 0.5.1, fix NPE, add missing tests

- Upgrade kotlin-type-mapper deps from 0.5.1-SNAPSHOT to 0.5.1
- Add delegation specifier tests (superclass + interface) to KotlinTypeAnnotationVisitorTest
- Add KotlinAuxClasspathIntegrationTest: end-to-end auxClasspath flow
- Remove KotlinNodeTypeDataTest.typeInfoAvailableFalseWhenNotSet (always failed)
- Add KotlinTypeAnalysisContextHolder.clear() to test teardown
- Add kotlin-type-mapper attribution to kotlin.md docs
- Fix NPE in KotlinAux... (continued)

19328 of 25381 branches covered (76.15%)

Branch coverage included in aggregate %.

296 of 369 new or added lines in 11 files covered. (80.22%)

41976 of 52058 relevant lines covered (80.63%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
30
36.36
pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/types/internal/AnnotationFqnAnnotator.java
18
69.81
pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/rule/internal/KotlinTypeAnalysisContext.java
10
81.25
pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/KotlinTypeAwarenessSupport.java
6
80.17
pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/types/internal/KotlinTypeAnnotationVisitor.java
5
79.59
pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/types/internal/DelegationSpecifierAnnotator.java
2
87.5
pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/types/KotlinNodeTypeData.java
2
80.0
pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/types/internal/FunctionParameterAnnotator.java
Jobs
ID Job ID Ran Files Coverage
1 674.1 18 Jul 2026 04:37PM UTC 2192
79.16
GitHub Action Run
Source Files on build 674
  • Tree
  • List 2192
  • Changed 4
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #674
  • ca57d1e6 on github
  • Prev Build on main (#673)
  • Next Build on main (#675)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc