You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,11 @@ danger(args) {
47
47
48
48
### Setup
49
49
50
+
### Docker
51
+
```sh
52
+
docker run --rm -v "${PWD}:/code" -w /code ghcr.io/danger/danger-kotlin:1.3.3 danger-kotlin local
53
+
```
54
+
50
55
#### macOS (ARM)
51
56
```sh
52
57
brew install danger/tap/danger-kotlin
@@ -130,6 +135,9 @@ You can activate the autocomplete following this additional steps:
130
135
- Make sure the script template `DangerFileScript` is active and above the default `Kotlin Script`
131
136
- Apply changes
132
137
- If opening the `Dangerfile.df.kts` the autocomplete and syntax highlighting doesn't work, try to reboot your IDE or open the Dangerfile from your IDE as a single file.
138
+
- If it still doesn't work, go to `Help -> Edit Custom VM Options...` and add `-Dkotlin.script.classpath=<path>/danger-kotlin.jar` (replace the `<path>` with the absolute path to the JAR). Then restart the IDE.
139
+
- You may also need to disable the "K2 mode" (search the settings for it) if you enabled it previously.
140
+
133
141
134
142
### Using external maven dependencies into your Dangerfile
135
143
You can use any external dependency by adding the following lines at the top of your `Dangerfile.df.kts`
0 commit comments