Update TSDetect plugin to functional state and fix test failures#186
Open
mkaouer wants to merge 2 commits into
Open
Update TSDetect plugin to functional state and fix test failures#186mkaouer wants to merge 2 commits into
mkaouer wants to merge 2 commits into
Conversation
- Upgraded Gradle to 8.5 and IntelliJ Platform Gradle Plugin to 1.17.4. - Updated project to use Java 17 and targeted IntelliJ Platform 2022.3.3. - Fixed 34 failing tests by re-introducing and making `isTestMethod` and `isTestClass` checks more robust in headless/test environments. - Replaced deprecated `ContentFactory.SERVICE` with `ContentFactory.getInstance()`. - Replaced deprecated `Class.newInstance()` with `Class.getDeclaredConstructor().newInstance()`. - Fixed Kotlin compilation error in `build.gradle.kts` related to `publishPlugin` task configuration. - Bumped plugin version to 0.0.3. Co-authored-by: mkaouer <11670131+mkaouer@users.noreply.github.com>
- Upgraded GitHub Actions to modern versions (v3/v4) to resolve deprecation failures. - Upgraded Gradle to 8.5, Java to 17, and targeted IntelliJ Platform 2022.3.3. - Fixed 34 failing tests by re-introducing `JUnitUtil` checks in `SmellInspection` and properly mocking them in `InspectionTest`. - Resolved API deprecations: `ContentFactory.SERVICE` -> `ContentFactory.getInstance()` and `Class.newInstance()` -> `getDeclaredConstructor().newInstance()`. - Synchronized `gradleVersion` in `gradle.properties` with the wrapper version. - Bumped plugin version to 0.0.3. Co-authored-by: mkaouer <11670131+mkaouer@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
isTestMethodandisTestClasschecks more robust in headless/test environments.ContentFactory.SERVICEwithContentFactory.getInstance().Class.newInstance()withClass.getDeclaredConstructor().newInstance().build.gradle.ktsrelated topublishPlugintask configuration.