Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/ruling-diff-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,22 @@ jobs:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
submodules: true
submodules: recursive

- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: true

- name: Setup source directory symlinks
run: |
cd its/sources
# Create symlink for sonar-server to match expected path structure
ln -s sonarqube-6.5/server/sonar-server sonar-server

# Use the action from the branch we just pushed
- name: Post ruling diff comment
uses: SonarSource/core-languages-tooling-public/ruling-diff-comment@master
uses: SonarSource/core-languages-tooling-public/ruling-diff-comment@romain/read-sources-from-disk
with:
pr-number: ${{ inputs.pr-number || github.event.pull_request.number }}
repository: ${{ github.repository }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"commons-beanutils:commons-beanutils:src/main/java/org/apache/commons/beanutils2/BeanComparator.java": [
169,
62,
169,
172,
175
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
35,
45,
47,
49
49,
60
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
311
],
"org.eclipse.jetty:jetty-project:jetty-jmx/src/test/java/org/eclipse/jetty/jmx/MBeanContainerLifeCycleTest.java": [
95
60,
95
]
}
3 changes: 2 additions & 1 deletion its/ruling/src/test/resources/eclipse-jetty/java-S139.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"org.eclipse.jetty:jetty-project:jetty-http/src/main/java/org/eclipse/jetty/http/CookieCutter.java": [
351,
61,
351,
352
],
"org.eclipse.jetty:jetty-project:jetty-http/src/main/java/org/eclipse/jetty/http/HttpField.java": [
Expand Down
1 change: 1 addition & 0 deletions its/ruling/src/test/resources/guava/java-S103.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"com.google.guava:guava:src/com/google/thirdparty/publicsuffix/PublicSuffixPatterns.java": [
45,
53,
60,
62
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"jboss-ejb3-tutorial:cachedentity/src/org/jboss/tutorial/cachedentity/client/CachedEntityRun.java": [
0
0,
60
]
}
3 changes: 2 additions & 1 deletion its/ruling/src/test/resources/mall/java-S106.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"com.macro.mall:mall:mall-mbg/src/main/java/com/macro/mall/Generator.java": [
35
35,
60
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"org.regex-examples:regex-examples:src/main/java/org/regex/examples/RegexDatabase4.java": [
60,
1984
]
}
1 change: 1 addition & 0 deletions its/ruling/src/test/resources/sonar-server/java-S5838.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
146
],
"org.sonarsource.sonarqube:sonar-server:src/test/java/org/sonar/server/app/TomcatContextsTest.java": [
60,
94,
129,
135
Expand Down
1 change: 1 addition & 0 deletions its/ruling/src/test/resources/sonar-server/java-S8924.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"org.sonarsource.sonarqube:sonar-server:src/test/java/org/sonar/ce/log/CeLoggingTest.java": [
60,
64
],
"org.sonarsource.sonarqube:sonar-server:src/test/java/org/sonar/server/component/ws/TreeActionTest.java": [
Expand Down
Loading