Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit d5914ed

Browse files
committed
Removed all TODOs from framework and API. Open problems and enhancements are now stored in the github issues of the main project.
1 parent 2cde2f9 commit d5914ed

File tree

18 files changed

+4
-47
lines changed

18 files changed

+4
-47
lines changed

bootstrap/src/main/scala/Bootstrap.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ object Bootstrap {
115115
val dependencies = getDependencies
116116

117117
// Download all libraries
118-
// TODO: Check validity if everything is downloaded
119118
// try downloading libs and only if it succeeded (returned true) then try to delete older libs
120119
downloadMissingLibraries(dependencies) && deleteUndesiredLibraries(dependencies)
121120
}

deployment-files/README.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
<body>
88
<p>Thank you for downloading Chat Overflow! For more information, please visit <a href="http://codeoverflow.org">codeoverflow.org</a>!
99
</p>
10-
<!-- TODO: Write proper readme with the most important information and version infos about the deployed framework, api, client, gui -->
1110
</body>
1211
</html>

project/BuildUtility.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ class BuildUtility(logger: ManagedLogger) {
118118
}
119119

120120
// Clean first
121-
// TODO: Should not be cleaned. Existent files should be overwritten.
122121
for (jarFile <- pluginTargetFolder.listFiles().filter(_.getName.endsWith(".jar"))) {
123122
try {
124123
jarFile.delete()
@@ -150,9 +149,6 @@ class BuildUtility(logger: ManagedLogger) {
150149
def createPluginTask(pluginFolderNames: List[String]): Unit = {
151150
withTaskInfo("CREATE PLUGIN") {
152151

153-
// TODO: Generated plugin structure should contain ready-to-implement files
154-
// TODO: BuildUtility / Build Environment should be refactored to enable separate plugin dev environments with a subset of sbt functionality
155-
156152
// Plugin folders have to be defined in the build.sbt file first
157153
if (pluginFolderNames.isEmpty) {
158154
println("Before creating a new plugin, please define at least one plugin source folder in the build.sbt file.")

src/main/scala/org/codeoverflow/chatoverflow/Launcher.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ object Launcher extends WithLogger {
3636
}
3737

3838
// Start plugins if specified
39-
// TODO: Move this down after server start when the REPL is history
4039
if (chatOverflow.isLoaded && config.startupPlugins.nonEmpty) {
4140
for (instanceName <- config.startupPlugins) {
4241
val instance = chatOverflow.pluginInstanceRegistry.getPluginInstance(instanceName)
@@ -49,8 +48,6 @@ object Launcher extends WithLogger {
4948
}
5049
}
5150

52-
// TODO: Delete REPL, update CLI, update wiki
53-
5451
// Launch UI
5552
config.ui match {
5653
case UI.GUI =>
@@ -80,7 +77,6 @@ object Launcher extends WithLogger {
8077
*/
8178
def exit(): Unit = {
8279
logger info "Shutting down Chat Overflow."
83-
// TODO: Deal with running plugins, connectors, ...
8480
System.exit(0)
8581
}
8682
}

src/main/scala/org/codeoverflow/chatoverflow/configuration/ConfigurationService.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ class ConfigurationService(val configFilePath: String) extends WithLogger {
107107
* Loads the config xml file and return its content.
108108
*/
109109
private def loadXML(): Node = {
110-
// TODO: Add some XML caching here
111110
if (!new File(configFilePath).exists()) {
112111
logger debug s"Config file '$configFilePath' not found. Initialising with default values."
113112
saveXML(defaultContent)
@@ -247,7 +246,6 @@ object ConfigurationService extends WithLogger {
247246
targetType: String, content: String,
248247
pluginInstanceRegistry: PluginInstanceRegistry,
249248
typeRegistry: TypeRegistry): Boolean = {
250-
// FIXME: Better handling of empty content (not set in the first place, then read from XML)
251249

252250
logger info s"Loading requirement '$requirementId' of type '$targetType'."
253251
val instance = pluginInstanceRegistry.getPluginInstance(instanceName)

src/main/scala/org/codeoverflow/chatoverflow/configuration/CryptoUtil.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import javax.crypto.{Cipher, SecretKeyFactory}
1717
*/
1818
object CryptoUtil {
1919

20-
// TODO: This code should be reviewed by an expert to find potential security issues.
21-
2220
// Used for the run-unique auth key
2321
private val runSpecificRandom = generateIV
2422

src/main/scala/org/codeoverflow/chatoverflow/connector/actor/JsonActor.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ import org.json4s.jackson.JsonMethods._
1010
*/
1111
class JsonActor extends Actor {
1212

13-
// TODO: Implement proper functionality with json4s. This is not more than a proof of concept
14-
// TODO: Test, when reflection kicks in to allow the most functionality without an actor call
15-
1613
/**
1714
* Receives a ParseJSON Object to start parsing.
1815
*

src/main/scala/org/codeoverflow/chatoverflow/framework/manager/PluginManagerImpl.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import scala.collection.mutable.ListBuffer
1515
*/
1616
class PluginManagerImpl(pluginInstanceName: String, logOutputOnConsole: Boolean) extends PluginManager with WithLogger {
1717

18-
// TODO: Add log datetime
1918
private val logMessages = new ListBuffer[String]
2019

2120
/**

src/main/scala/org/codeoverflow/chatoverflow/instance/PluginInstance.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,10 @@ class PluginInstance(val instanceName: String, pluginType: PluginType) extends W
164164
if (plugin.get.getLoopInterval > 0) {
165165
while (!threadStopAfterNextIteration) {
166166
plugin.get.loop()
167-
// FIXME: This is not a loop interval. Should be responsive to the loop runtime
168167
Thread.sleep(plugin.get.getLoopInterval)
169168
}
170169
}
171170

172-
// TODO: Also connectors & input/output should be shutdown somewhere (if the plugin ends OR is ended)
173-
174171
// After the loop (or setup) the plugin should end
175172
plugin.get.shutdown()
176173

src/main/scala/org/codeoverflow/chatoverflow/registry/TypeRegistry.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class TypeRegistry(requirementPackage: String) extends WithLogger {
5353
connectorTypes.clear()
5454

5555
// Use reflection magic to get all impl-annotated classes
56-
// FIXME: Does also find definitions not in the exact package - not intended should be filtered afterwards
5756
val reflections: Reflections = new Reflections(new ConfigurationBuilder()
5857
.setUrls(ClasspathHelper.forPackage(requirementPackage))
5958
.setScanners(new SubTypesScanner(), new TypeAnnotationsScanner()))

0 commit comments

Comments
 (0)