Example implementation: invoke TODO() only if not CI

This commit is contained in:
Jakub Chrzanowski 2022-05-19 09:25:53 +02:00 committed by Jakub Chrzanowski
parent 375f6963fa
commit 0644b59d8e
3 changed files with 7 additions and 3 deletions

View File

@ -10,6 +10,7 @@ internal class MyProjectManagerListener : ProjectManagerListener {
override fun projectOpened(project: Project) { override fun projectOpened(project: Project) {
project.service<MyProjectService>() project.service<MyProjectService>()
TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.") System.getenv("CI")
?: TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.")
} }
} }

View File

@ -7,6 +7,8 @@ class MyApplicationService {
init { init {
println(MyBundle.message("applicationService")) println(MyBundle.message("applicationService"))
TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.") System.getenv("CI")
?: TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.")
} }
} }

View File

@ -8,6 +8,7 @@ class MyProjectService(project: Project) {
init { init {
println(MyBundle.message("projectService", project.name)) println(MyBundle.message("projectService", project.name))
TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.") System.getenv("CI")
?: TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.")
} }
} }