[ 
https://issues.apache.org/jira/browse/GROOVY-12095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18097177#comment-18097177
 ] 

ASF GitHub Bot commented on GROOVY-12095:
-----------------------------------------

sonarqubecloud[bot] commented on PR #2716:
URL: https://github.com/apache/groovy/pull/2716#issuecomment-5006255602

   ## [![Quality Gate 
Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png
 'Quality Gate 
Passed')](https://sonarcloud.io/dashboard?id=apache_groovy&pullRequest=2716) 
**Quality Gate passed**  
   Issues  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [2 New 
issues](https://sonarcloud.io/project/issues?id=apache_groovy&pullRequest=2716&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png
 '') [0 Accepted 
issues](https://sonarcloud.io/project/issues?id=apache_groovy&pullRequest=2716&issueStatuses=ACCEPTED)
   
   Measures  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_groovy&pullRequest=2716&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [90.5% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_groovy&pullRequest=2716&metric=new_coverage&view=list)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Duplication on New 
Code](https://sonarcloud.io/component_measures?id=apache_groovy&pullRequest=2716&metric=new_duplicated_lines_density&view=list)
  
     
   <!

> Code in groovydoc does not display correctly
> --------------------------------------------
>
>                 Key: GROOVY-12095
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12095
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-groovydoc
>    Affects Versions: 6.0.0-alpha-1
>            Reporter: Daniel Sun
>            Priority: Major
>         Attachments: image-2026-06-22-00-29-39-966.png
>
>
> Let's take a look at javadoc of {{groovy.concurrent.AsyncScope}} first:
> {code:java}
> /**
>  *
>  * <pre>{@code
>  * def results = AsyncScope.withScope { scope ->
>  *     def userTask  = scope.async { fetchUser(id) }
>  *     def orderTask = scope.async { fetchOrders(id) }
>  *     return [user: await(userTask), orders: await(orderTask)]
>  * }
>  * // Both tasks guaranteed complete here
>  * }</pre> 
>  *
>  */
> {code}
> As we can see, groovydoc generates {{</CODE>}} at the wrong place shown as 
> follows:
> {code:html}
>  <pre class="language-groovy"><code><CODE>def results = AsyncScope.withScope 
> { scope -&gt;
>      def userTask  = scope.async { fetchUser(id) </CODE>
>      def orderTask = scope.async { fetchOrders(id) }
>      return [user: await(userTask), orders: await(orderTask)]
>  }
>  // Both tasks guaranteed complete here
>  }</code></pre>
> {code}
>  
> Also, {{<code>...</code>}} and {{<CODE>...</CODE>}} are redundant too.
> Here is the result rendered in chrome:
> !image-2026-06-22-00-29-39-966.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to