| desc | A programmatic approach to marking and tagging code that is strongly typed and consistent |
| date | 2019-03-22 |
| version | 0.9.17 |
| jar | slatekit.common.jar |
| namespace | slatekit.common |
| artifact | com.slatekit:slatekit-common |
| source folder | src/lib/kotlin/slatekit-common/src/main/kotlin/slatekit/common |
| example | src/lib/kotlin/slate-examples/src/main/kotlin/slatekit/examples/Example_Todo.kt |
| depends on | slatekit-results |
// other setup ...
repositories {
maven { url "https://dl.bintray.com/codehelixinc/slatekit" }
}
dependencies {
// other libraries
// slatekit-common: Utilities for Android or Server
compile 'com.slatekit:slatekit-common:0.9.17'
}// required
import slatekit.common.TODO
// optional
import slatekit.core.cmds.Cmd
import slatekit.results.Success
import slatekit.results.Tryn/a // About: Strongly typed, structured representation of code notes/tasks
// This is in code to enforce consistent usage and to be able
// to track code usages
// Use case 1: Implement
TODO.IMPLEMENT("Component 1", "This code needs further error handling" )
// Use case 2: Supply a block of code to refactor
TODO.REFACTOR("Feature 2", "Refactor logic to handle empty values") {
// Your code to refactor goes here
}
// Use case 3: Mark a bug
TODO.BUG("Component 3", "invalid data, bug fix needed", "JIRA:12434" )
// Use case 4: Code removal tag
TODO.REMOVE("Story 123", "@kishore, this code no longer needed") {
// Your code to remove here.
}