;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\301\302!\210\301\303!\210\301\304!\210\301\305!\210\301\306!\210\307\310\311\312\313\302\314\315\316\317& \210\320\321\322\323\324DD\325\313\310\326\327&\210\320\330\322\323\331DD\332\313\310\326\327&\210\320\333\322\323\334DD\335\313\310\326\336&\210\320\337\322\323\340DD\341\313\310\326\342&\210\320\343\322\323\344DD\345\313\310\326\342&\210\320\346\322\323\347DD\350\313\310\326\336&\210\320\351\322\323\352DD\353\313\310\326\342&\210\320\354\322\323\355DD\356\313\310\326\342&\210\357!\360P\361!\203\252\362\363\"\210\207\364\365!\210\207" [load-file-name require lsp-mode dash cus-edit ht shr custom-declare-group lsp-sonarlint nil "Sonarlint lsp server group" :group :link (url-link "https://gitlab.com/sasanidas/lsp-sonarlint") :package-version (lsp-mode . "6.4") custom-declare-variable lsp-sonarlint-server-path funcall function #[0 "\301!\302P\207" [load-file-name file-name-directory "server/sonarlint-language-server.jar"] 2] "Sonarlint Language Server jar file location." :type file lsp-sonarlint-modes-enabled #[0 "\300\207" [(php-mode html-mode web-mode js-mode js2-mode python-mode java-mode ruby-mode scala-mode xml-mode nxml-mode)] 1] "List of enabled major modes." lsp-sonarlint-disable-telemetry #[0 "\300\207" [t] 1] "Disable sending anonymous usage statistics to SonarSource.\nTo see a sample of the data that are collected\nhttps://github.com/SonarSource/sonarlint-vscode/blob/master/telemetry-sample.md." boolean lsp-sonarlint-test-file-pattern #[0 "\300\207" [#1="{**/test/**,**/*test*,**/*Test*}"] 1 #1#] "Files whose name match java global are considered as test files by analyzers.\nMost rules are not evaluated on test files.\nExample: `{**/test/**,**/*test*,**/*Test*}`" string lsp-sonarlint-sonarqube-server-url #[0 "\300\207" [#2=""] 1 #2#] "URL of the server.\ne.g https://" lsp-sonarlint-show-analyzer-logs #[0 "\300\207" [nil] 1] "Show analyzer's logs in the SonarLint output." lsp-sonarlint-vmargs #[0 "\300\207" [#2#] 1 #2#] "Extra JVM arguments used to launch the SonarLint LSP.\ne.g. `-Xmx1024m`." lsp-sonarlint-server-download-url #[0 "\300\207" [#3="https://binaries.sonarsource.com/Distribution/sonarlint-language-server/sonarlint-language-server-4.6.0.2652.jar"] 1 #3#] "Sonarlint Language Server jar file download URL." file-name-directory "languages" file-directory-p add-to-list load-path error "There were and error with the `load-file-name` function"] 10) #@127 Check for the enabled extensions and return a path list. If the analyzer path is not a file, it ask for download the analyzer (defalias 'lsp-sonarlint--plugin-list #[0 "\300\301\302\303\304\"\"\305\306\"\207" [-filter #[257 "\300\301\302\303@\"\304P!!\205\305\207" [eval intern format "%s" "-enabled" t] 6 "\n\n(fn MEMBER)"] custom-group-members lsp-sonarlint t -map #[257 "\300\301\302\303@\"\304P!!\300\301\302\303@\"\305P!!\306!\204'\307\310!\203'\311\"\210\312\313Q\207" [eval intern format "%s" "-download-url" "-analyzer-path" file-exists-p yes-or-no-p "lsp-sonarlint language plugin not found, do you want to download it? " url-copy-file "file://" " "] 7 "\n\n(fn ENABLED-MEMBER)"]] 5 (#$ . 2533)]) #@69 Create an HTML rendered buffer with the RULE text in it. (fn RULE) (defalias 'lsp-sonarlint--code-action-open-rule #[257 "\300\301\302\"r\211q\210\303\304\"\216\305\306\307\310\311#\312H\"\313\314\315\313\316\315##\307\310\311#\317Hc\210\320c\210\211c\266\321p!*\207" [generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] format "%s" gethash "arguments" nil 1 replace-regexp-in-string ">" " " "<" 2 "\n" shr-render-buffer] 10 (#$ . 3257)]) #@69 Lsp-sonarlint start function, it need PORT as parameter. (fn PORT) (defalias 'lsp-sonarlint-server-start-fun #[257 "\301\302\303\304!\305!F\306 \"\207" [lsp-sonarlint-server-path -concat "java" "-jar" eval number-to-string lsp-sonarlint--plugin-list] 7 (#$ . 3770)]) (defconst lsp-sonarlint--action-handlers '(("SonarLint.OpenRuleDesc" lambda (rule) (lsp-sonarlint--code-action-open-rule rule)))) (byte-code "\302\303!\210\304\305\306\307\310!\311\312\313\314\315\316\315\317\320\321\322 !\323\324\325\326&!\210\327\330!\207" [lsp-sonarlint-modes-enabled lsp-sonarlint--action-handlers lsp-register-custom-settings (("sonarlint.disableTelemetry" lsp-sonarlint-disable-telemetry) ("sonarlint.testFilePattern" lsp-sonarlint-test-file-pattern) ("sonarlint.output.showAnalyzerLogs" lsp-sonarlint-show-analyzer-logs) ("sonarlint.ls.vmargs" lsp-sonarlint-vmargs)) lsp-register-client make-lsp-client :new-connection lsp-tcp-server-command lsp-sonarlint-server-start-fun :major-modes :priority -1 :multi-root t :add-on\? :server-id sonarlint :action-handlers ht<-alist :initialization-options #[0 "\300\301\302\303F\207" [:productKey "emacs" :productName "Emacs"] 4] :initialized-fn #[257 "\211\301\302\303!!)\207" [lsp--cur-workspace lsp--set-configuration lsp-configuration-section "sonarlint"] 4 "\n\n(fn WORKSPACE)"] provide lsp-sonarlint] 20)