scancode.io icon indicating copy to clipboard operation
scancode.io copied to clipboard

Fix issue 1875 scala case classes

Open pradhyum6144 opened this issue 1 year ago • 3 comments

Problem In Scala, case classes and inner classes defined within sealed traits or objects compile to separate .class files that may not follow the standard $-separated naming convention. Solution Implemented a fallback mechanism specifically for Scala that searches for source files in the same package directory when an exact match is not found. Testing All syntax checks passed New test case covers the specific scenario described in issue #1875 Maintains backward compatibility with existing Java, Kotlin, and other JVM language mappings

pradhyum6144 avatar Nov 30 '25 21:11 pradhyum6144

Hey @chinyeungli I've created a fix for this issue! I’d like you to review my code and accept it.

pradhyum6144 avatar Nov 30 '25 22:11 pradhyum6144

@tdruez perhaps you are in a better position for the review

chinyeungli avatar Dec 01 '25 03:12 chinyeungli

@tdruez can you please review this and merge it. thank you.

pradhyum6144 avatar Jan 29 '26 14:01 pradhyum6144