Skip to content
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ assignees: ''
> _Please complete the following information._
- OS: [e.g. Windows 10]
- Java version: [e.g. 1.8]
- i-Code version: [e.g. 3.1.0]
- i-Code version: [e.g. 3.1.1]
- Plugin version: [e.g. 2.0.0]

#### Additional context
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ assignees: ''
> _Please complete the following information._
- OS: [e.g. Windows 10]
- Java version: [e.g. 1.8]
- i-Code version: [e.g. 3.1.0]
- i-Code version: [e.g. 3.1.1]
- Plugin version: [e.g. 2.0.0]

#### Additional context
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
java-version: '17'
- name: Cache Maven packages
uses: actions/cache@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/java-continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This workflow is triggered each time
# commits are pushed to GitHub or a pull request is opened.
# It launches three jobs in parallel : a build with java 8,
# a build with java 11 and a SonarCloud analysis.
# a build with java 17 and a SonarCloud analysis.
---
name: Java CI

Expand All @@ -18,7 +18,7 @@ jobs:
permissions:
packages: read
runs-on: ubuntu-latest
name: Java 11 CI
name: Java 17 CI
steps:
- name: Check out repository code
uses: actions/checkout@v2
Expand All @@ -28,7 +28,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v2
with:
Expand All @@ -54,7 +54,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
java-version: '17'
- name: Cache Maven packages
uses: actions/cache@v2
with:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Here is the compatibility matrix of the plugin:
| 3.0.0 | 4.1.0 | 7.9 -> 8.2 | Fortran |
| 3.0.1 | 4.1.2 | 7.9 -> 8.2 | Fortran |
| 3.1.0 | 4.1.2 | 7.9 -> 9.9 | Fortran |
| 3.1.1 | 4.1.2 | 7.9 -> 9.9 | Fortran |
| 3.1.2 | 5.0.0 | 7.9 -> 9.9 | Fortran |

#### Run i-Code manually
Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.8</jdk.version>
<jdk.min.version>11</jdk.min.version>
<jdk.max.version>11</jdk.max.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<jdk.version>17</jdk.version>
<jdk.min.version>17</jdk.min.version>
<jdk.max.version>17</jdk.max.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<sonar.apiVersion>9.8.0.203</sonar.apiVersion>
<sonar.testingHarnessVersion>9.5.0.56709</sonar.testingHarnessVersion>
<sonar.apiImplVersion>9.9.1.69595</sonar.apiImplVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ public static void saveMeasure(final SensorContext context, final Map<String, In
// Get i-Code rule id to test if issue must be saved here.
final String metricKey = icodeMeasure.getAnalysisRuleId();
// Take F77 / F90 ncloc and number of comment lines into account
if (metricKey.contains("MET.Line")) {
if (metricKey.contains("MET.LineOfCode")) {
saveSonarQubeNewMeasure(context, files, CoreMetrics.NCLOC, icodeMeasure);
}
// Take F77 / F90 number of comment lines into account
else if (metricKey.contains("MET.LineOfComment")) {
saveSonarQubeNewMeasure(context, files, CoreMetrics.COMMENT_LINES, icodeMeasure);
}
}
Expand Down
Loading