@@ -168,7 +168,7 @@ SonarLint LSP server."
168168 (+ to (line-beginning-position ))
169169 (current-buffer )))))
170170
171- (ert-deftest lsp-sonarlint-test--overlays-string ()
171+ (ert-deftest lsp-sonarlint-test--overlay-strings ()
172172 " Test `lsp-sonarlint-test--buf-string-with-overlay-strings' on corner cases"
173173 (with-temp-buffer
174174 (unwind-protect
@@ -212,7 +212,8 @@ next str
212212
213213(ert-deftest lsp-sonarlint-test--display-secondary-messages ()
214214 " Test that secondary locations are displayed correctly."
215- (let ((target-file-buf (find-file-noselect lsp-sonarlint-test--file-path)))
215+ (let ((target-file-buf (find-file-noselect lsp-sonarlint-test--file-path))
216+ (lsp-sonarlint--scale-inline-msg-offset nil ))
216217 (with-current-buffer target-file-buf
217218 (let* ((primary-range (lsp-sonarlint-test-range-make
218219 (buffer-string )
@@ -243,10 +244,10 @@ next str
243244int divide_seventeen(int param) {
244245 Redundant branching
245246 if (param == 0) {
246- Identical code
247+ Identical code
247248 1int a = 0;
248249 } else {
249- Identical code
250+ Identical code
250251 2int b = 0;
251252 }
252253 return 10 / param;
@@ -265,7 +266,8 @@ int divide_seventeen(int param) {
265266
266267(ert-deftest lsp-sonarlint-test--navigate-to-sec-location ()
267268 " Test that point moves to locations of selected messages."
268- (let ((target-file-buf (find-file-noselect lsp-sonarlint-test--file-path)))
269+ (let ((target-file-buf (find-file-noselect lsp-sonarlint-test--file-path))
270+ (lsp-sonarlint--scale-inline-msg-offset nil ))
269271 (with-current-buffer target-file-buf
270272 (let* ((primary-range (lsp-sonarlint-test-range-make
271273 (buffer-string )
@@ -300,7 +302,8 @@ int divide_seventeen(int param) {
300302
301303(ert-deftest lsp-sonarlint-test--display-execution-flow ()
302304 " Test that flow steps are displayed correctly and in order."
303- (let ((target-file-buf (find-file-noselect lsp-sonarlint-test--file-path)))
305+ (let ((target-file-buf (find-file-noselect lsp-sonarlint-test--file-path))
306+ (lsp-sonarlint--scale-inline-msg-offset nil ))
304307 (with-current-buffer target-file-buf
305308 (let* ((primary-range (lsp-sonarlint-test-range-make
306309 (buffer-string )
@@ -352,15 +355,15 @@ int divide_seventeen(int param) {
352355 "
353356int divide_seventeen(int param) {
354357 Taking true branch
355- Evaluating condition
358+ Evaluating condition
356359 3if (1param 2== 0) {
357- Assuming param is 0
358- Assigning a 0
360+ Assuming param is 0
361+ Assigning a 0
359362 int 4a = 0;
360363 } else {
361364 int b = 0;
362365 }
363- Division by 0
366+ Division by 0
364367 return 10 5/ param;
365368}
366369" )))))
@@ -380,7 +383,8 @@ Some long line with words clearly separated
380383 `(:message " first"
381384 :overlay ,(lsp-sonarlint-test--place-overlay
382385 " Some long line with words clearly separated"
383- " ^^^^ " )))))
386+ " ^^^^ " ))))
387+ (lsp-sonarlint--scale-inline-msg-offset nil ))
384388 (unwind-protect
385389 (progn
386390 (lsp-sonarlint--add-inline-messages locations)
@@ -406,7 +410,8 @@ Some long line with words clearly separated
406410 `(:message " second"
407411 :overlay ,(lsp-sonarlint-test--place-overlay
408412 " Some long line with words clearly separated"
409- " ^^^^ " )))))
413+ " ^^^^ " ))))
414+ (lsp-sonarlint--scale-inline-msg-offset nil ))
410415 (unwind-protect
411416 (progn
412417 (lsp-sonarlint--add-inline-messages locations)
@@ -441,15 +446,16 @@ Some long line with words clearly separated
441446 `(:message " fourth"
442447 :overlay ,(lsp-sonarlint-test--place-overlay
443448 " Some long line with words clearly separated"
444- " ^ " )))))
449+ " ^ " ))))
450+ (lsp-sonarlint--scale-inline-msg-offset nil ))
445451 (unwind-protect
446452 (progn
447453 (lsp-sonarlint--add-inline-messages locations)
448454 (should (equal (lsp-sonarlint-test--buf-string-with-overlay-strings)
449455 "
450- first fourth
456+ first fourth
451457Some long line with words clearly separated
452- third second
458+ third second
453459" )))
454460 (remove-overlays )))))
455461
0 commit comments