Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync #310

Merged
merged 30 commits into from
May 26, 2024
Merged

Sync #310

merged 30 commits into from
May 26, 2024

Conversation

hahwul
Copy link
Member

@hahwul hahwul commented May 26, 2024

No description provided.

hahwul and others added 30 commits April 30, 2024 00:16
Add workflow_dispatch trigger to ghcr_publish.yml
Update ghcr_publish.yml
- Implemented various methods in `KotlinLexer` to tokenize Kotlin code based on logic
- Fixed bug in `trace` method in `minilexer.cr`

Signed-off-by: ksg <ksg97031@gmail.com>
- Defined the `AnnotationModel`, `ClassModel`, `MethodModel`, and `FieldModel` classes within the `KotlinParser` class
- Implemented various methods for parsing import statements, formal parameters, annotations, classes, class fields, and methods in the `KotlinParser` class

Signed-off-by: ksg <ksg97031@gmail.com>
- Updated `print_tokens` method to display token types
- Added `trace` method to display parsed data for classes, fields, and methods

Signed-off-by: ksg <ksg97031@gmail.com>
Signed-off-by: ksg <ksg97031@gmail.com>
Signed-off-by: ksg <ksg97031@gmail.com>
Signed-off-by: ksg <ksg97031@gmail.com>
- Fix typos and add missing commas in Kotlin lexer files

Signed-off-by: ksg <ksg97031@gmail.com>
Signed-off-by: ksg <ksg97031@gmail.com>
Signed-off-by: ksg <ksg97031@gmail.com>
Signed-off-by: ksg <ksg97031@gmail.com>
- Modified `KotlinLexer` in `src/minilexers/kotlin.cr`
- Added new punctuation types in `src/minilexers/kotlin.cr`
- Modified `AnalyzerKotlinSpring` in `src/analyzer/analyzers/analyzer_kotlin_spring.cr`
- Modified and added methods for parsing Kotlin files in `src/miniparsers/kotlin.cr`

Signed-off-by: ksg <ksg97031@gmail.com>
- Fixed a typo and refactored methods in the Kotlin miniparser
- Updated punctuation tokens and removed unnecessary tokens in the Kotlin minilexer

Signed-off-by: ksg <ksg97031@gmail.com>
- Removed test case for detecting Spring in `pom.xml` and `build.gradle`, added new test case for detecting it in `test.java`
- Various methods for parsing Kotlin files including import statements, class declarations, fields, and methods

Signed-off-by: ksg <ksg97031@gmail.com>
- Modified the expected endpoints in `kotlin_spring_spec.cr`.

Signed-off-by: ksg <ksg97031@gmail.com>
- Add `==` method to the `Param` struct in `src/models/endpoint.cr`

Signed-off-by: ksg <ksg97031@gmail.com>
- Modified method to include method parameters when parsing fields from class body
- Added support for multiple request mappings in processing method annotations
- Implemented support for optional parameters, headers, values, and paths in handling request methods and formats
- Added support for Pageable parameters in endpoint parameter extraction
- Implemented support for default values in extracting parameter details
- Added support for user-defined class fields in adding parameters to user-defined classes

Signed-off-by: ksg <ksg97031@gmail.com>
…_spring.cr`

- Added parameter `lorem` with value `ipsum` and type `cookie` to `/api/user/{login}` endpoint in `kotlin_spring_spec.cr`
- Deleted `pom.xml` file for `kotlin_spring` fixture in `pom.xml`

Signed-off-by: ksg <ksg97031@gmail.com>
- Added new support for Spring framework in Kotlin.
- Fixed the support status for Spring framework in Java (missed in the previous update).

Signed-off-by: ksg <ksg97031@gmail.com>
- :STRING_LITERAL tokens are always two characters or more, so the size condition check is redundant and has been removed.

Signed-off-by: ksg <ksg97031@gmail.com>
Signed-off-by: ksg <ksg97031@gmail.com>
- Deleted unnecessary `gradle-wrapper.jar` and `gradle-wrapper.properties` files.

Signed-off-by: ksg <ksg97031@gmail.com>
feat: Migrate and Enhance Spring Analyzer for Kotlin (#251)
@github-actions github-actions bot added 📑 documentation Improvements or additions to documentation 🔎 detector Issue for Detector 🔬 analyzer Issue for Analyzer 💊 spec Issue for test codes 🥢 mini-lexer Issue for mini-lexer and mini-parser labels May 26, 2024
@hahwul hahwul merged commit 6535f7a into dev May 26, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔬 analyzer Issue for Analyzer 🔎 detector Issue for Detector 📑 documentation Improvements or additions to documentation 🥢 mini-lexer Issue for mini-lexer and mini-parser 💊 spec Issue for test codes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants