-
Notifications
You must be signed in to change notification settings - Fork 11
Feature: Readonly bindings #2240
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
base: main
Are you sure you want to change the base?
Conversation
9d0dc96 to
760e30f
Compare
3a4c1d9 to
3cba36e
Compare
Test Results 241 files + 98 241 suites +98 48m 20s ⏱️ - 3m 51s Results for commit 9922f41. ± Comparison against base commit c2c9512. This pull request removes 1 and adds 598 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
3cba36e to
7cd12ec
Compare
760e30f to
14563d4
Compare
c0e7dc3 to
280bab0
Compare
JVM coverage report
|
| class SolutionProducer(private val myProject: IMPSProject) { | ||
|
|
||
| fun create(name: String, id: ModuleId): Solution { | ||
| fun create(name: String, id: ModuleId, readOnly: Boolean = false): Solution { |
Check warning
Code scanning / detekt
The function create is missing documentation. Warning
| } | ||
|
|
||
| fun create(namespace: String, id: ModuleId, moduleDir: IFile): Solution { | ||
| fun create(namespace: String, id: ModuleId, moduleDir: IFile, readOnly: Boolean): Solution { |
Check warning
Code scanning / detekt
The function create is missing documentation. Warning
| private fun IWritableNode.unwrap() = if (this is NodeWrapper) this.node else this | ||
|
|
||
| inner class NodeWrapper(private val model: IMutableModel, val node: IWritableNode) : IWritableNode by node, ISyncTargetNode { | ||
| open inner class NodeWrapper(private val model: IMutableModel, val node: IWritableNode) : IWritableNode by node, ISyncTargetNode { |
Check warning
Code scanning / detekt
NodeWrapper is missing required documentation. Warning
| private fun IWritableNode.unwrap() = if (this is NodeWrapper) this.node else this | ||
|
|
||
| inner class NodeWrapper(private val model: IMutableModel, val node: IWritableNode) : IWritableNode by node, ISyncTargetNode { | ||
| open inner class NodeWrapper(private val model: IMutableModel, val node: IWritableNode) : IWritableNode by node, ISyncTargetNode { |
Check warning
Code scanning / detekt
Class 'NodeWrapper' with '15' functions detected. Defined threshold inside classes is set to '11' Warning
| private fun IWritableNode.unwrap() = if (this is NodeWrapper) this.node else this | ||
|
|
||
| inner class NodeWrapper(private val model: IMutableModel, val node: IWritableNode) : IWritableNode by node, ISyncTargetNode { | ||
| open inner class NodeWrapper(private val model: IMutableModel, val node: IWritableNode) : IWritableNode by node, ISyncTargetNode { |
Check warning
Code scanning / detekt
The property node is missing documentation. Warning
mps-sync-plugin3/src/main/kotlin/org/modelix/mps/sync3/SyncTargetModel.kt
Fixed
Show fixed
Hide fixed
mps-sync-plugin3/src/main/kotlin/org/modelix/mps/sync3/SyncTargetModel.kt
Fixed
Show fixed
Hide fixed
|
we tested it on this branch. In 18.1.0-readonly-bindings-SNAPSHOT, we observed the following exceptions: |
280bab0 to
e985e70
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
detekt found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
e985e70 to
9922f41
Compare
Changes
Todos