Skip to content

Commit

Permalink
Merge pull request #5 from aymenbs2/scan/report
Browse files Browse the repository at this point in the history
Scan/report
  • Loading branch information
aymenbs2 authored Jul 17, 2024
2 parents 3dfe573 + 36a5178 commit da42e0c
Show file tree
Hide file tree
Showing 14 changed files with 471 additions and 299 deletions.
Empty file.
18 changes: 5 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "com.aymenDev"
version = "1.1.2"
version = "1.2.1"

repositories {
mavenCentral()
Expand All @@ -17,10 +17,11 @@ repositories {
dependencies {
implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.3")
implementation("com.google.code.gson:gson:2.8.9") // Add Gson dependency
testImplementation ("org.junit.jupiter:junit-jupiter-api:5.8.1")
implementation("org.apache.xmlgraphics:xmlgraphics-commons:2.6")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
testImplementation ("org.mockito:mockito-core:4.0.0")
testImplementation ("org.jetbrains.kotlin:kotlin-test:1.7.20")
testImplementation("org.mockito:mockito-core:4.0.0")
testImplementation("org.jetbrains.kotlin:kotlin-test:1.7.20")


}
Expand Down Expand Up @@ -54,15 +55,6 @@ tasks {
privateKey.set(System.getenv("AYMOAI_CERTIF"))
password.set(System.getenv("AYMOAI_PASS"))
}
// Ensure AYMOAPI_KEY is set as a system property for the build process
gradle.taskGraph.whenReady {
tasks.map { task ->
task.doFirst {
val aymoapiKey = System.getenv("AYMOAPI_KEY") ?: ""
System.setProperty("AYMOAPI_KEY", aymoapiKey)
}
}
}
publishPlugin {
token.set(System.getenv("AYMOAI_TOCKEN"))
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package com.aymendev.aymoai.actions

import com.aymendev.aymoai.data.model.ProgramingLanguageFile
import com.aymendev.aymoai.util.Constants.ERROR_NO_FILE_SELECTED
import com.aymendev.aymoai.util.Constants.ERROR_TITLE
import com.aymendev.aymoai.util.Constants.GENERATING_UNIT_TEST
import com.aymendev.aymoai.util.Constants.RAFACTORING
import com.aymendev.aymoai.util.Constants.SUCCESS_TITLE
import com.aymendev.aymoai.viewModel.AymoAiViewModel
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.ui.Messages
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.fileEditor.FileDocumentManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class RefactorSelectionAction : AnAction() {
val editor = event.getData(CommonDataKeys.EDITOR) ?: return
val selectedText = editor.selectionModel.selectedText ?: return

if (apiKey.isNullOrBlank()) {
if (apiKey.isBlank()) {
Messages.showMessageDialog(
"API Key not found in environment variables",
"Error",
Expand Down
Loading

0 comments on commit da42e0c

Please sign in to comment.