File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -275,13 +275,18 @@ See `lsp-sonarlint-available-analyzers' and `lsp-sonarlint-enabled-analyzers'"
275275Extracts the title ahd htmlDescription, and renders the HTML in a
276276temporary buffer."
277277 (with-temp-buffer
278- (let* ((rule-title (format " <h1>%s </h1><hr/> " (ht-get params " name" )))
279- (rule-tab (aref (ht-get params " htmlDescriptionTabs" ) 0 ))
280- (tab-section (ht-get rule-tab " ruleDescriptionTabNonContextual" ))
281- (rule-body (ht-get tab-section " htmlContent" )))
278+ (let* ((rule-title (format " <h1>%s </h1> " (ht-get params " name" )))
279+ (rule-summary (format " %s <hr/>" (ht-get params " htmlDescription" )))
280+ (rule-body-array (ht-get params " htmlDescriptionTabs" )))
282281 (insert rule-title)
283- (insert " \n " )
284- (insert rule-body))
282+ (insert rule-summary)
283+ (insert " \n " )
284+ (seq-doseq (rule-body rule-body-array)
285+ (let ((rule-body-title (format " <h2>%s </h2> " (ht-get rule-body " title" )))
286+ (rule-body-content (format " %s <hr/>" (ht-get (ht-get rule-body " ruleDescriptionTabNonContextual" ) " htmlContent" ))))
287+ (insert rule-body-title)
288+ (insert " \n " )
289+ (insert rule-body-content))))
285290 (shr-render-buffer (current-buffer ))))
286291
287292(defun lsp-sonarlint--analyze-folder (dirname )
You can’t perform that action at this time.
0 commit comments