-
Notifications
You must be signed in to change notification settings - Fork 223
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
Condition Matcher for displaying notifications #5093
base: feature/ideNotifs
Are you sure you want to change the base?
Conversation
Qodana Community for JVM7 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
import com.intellij.openapi.project.Project | ||
import software.aws.toolkits.jetbrains.utils.notifySticky | ||
|
||
object DisplayToastNotifications { |
Check warning
Code scanning / QDJVMC
Unused symbol Warning
notifySticky(notifyType, title, message, null, action) | ||
} | ||
|
||
fun shouldShow(project: Project, notificationData: NotificationData) { |
Check warning
Code scanning / QDJVMC
Unused symbol Warning
return shouldShow | ||
} | ||
|
||
fun matchesAllRules(notificationConditions: NotificationDisplayCondition, project: Project): Boolean { |
Check notice
Code scanning / QDJVMC
Class member can have 'private' visibility Note
return SystemDetails(computeType, computeArchitecture, osType, osVersion, ideType, ideVersion, pluginVersionMap) | ||
} | ||
|
||
data class AuthDetails( |
Check warning
Code scanning / QDJVMC
Unused symbol Warning
Description
TODO: Adding tests
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.