Skip to content

Commit d2c0ffe

Browse files
committed
Deprecate curl as a dependency
1 parent 3de6484 commit d2c0ffe

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ SonarLint in Emacs supports analysis of JavaScript, TypeScript, Python, Java, HT
1616

1717
- emacs >= 25
1818
- [lsp-mode](https://github.com/emacs-lsp/lsp-mode)
19-
- [curl](https://curl.haxx.se/)
2019
- [ht](https://github.com/Wilfred/ht.el)
2120
- [dash](https://github.com/magnars/dash.el)
2221

lsp-sonarlint.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ analyzer"
116116
(enabled-member--analyzer-path
117117
(eval (intern (concat (format "%s" (car enabled-member) ) "-analyzer-path")))))
118118
(unless (file-exists-p
119-
enabled-member--analyzer-path)
120-
(when (yes-or-no-p "lsp-sonarlint language plugin not found, do you want to download it? ")
121-
(shell-command (concat "curl " enabled-member--download-url " --output " enabled-member--analyzer-path)))))
122-
(concat "file://" (eval (intern (concat (format "%s" (car enabled-member) ) "-analyzer-path"))) " "))
119+
enabled-member--analyzer-path)
120+
(when (yes-or-no-p "lsp-sonarlint language plugin not found, do you want to download it? ")
121+
(url-copy-file enabled-member--download-url enabled-member--analyzer-path)))
122+
(concat "file://" enabled-member--analyzer-path " ")))
123123
lsp-sonarlint--enabled-plugins)))
124124

125125
(defun lsp-sonarlint--code-action-open-rule (rule)

0 commit comments

Comments
 (0)