Skip to content

Commit 1210f75

Browse files
qodana-cloud[bot]qodana-botoldratlee
committed
chore(CI): add qodana CI checks on github workflow (#317) 🧠
Co-authored-by: Qodana Application <qodana-support@jetbrains.com> Co-authored-by: Jerry Lee <oldratlee@gmail.com>
1 parent f0c20f8 commit 1210f75

File tree

4 files changed

+40
-1
lines changed

4 files changed

+40
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# https://www.jetbrains.com/help/qodana/github.html
2+
name: Qodana
3+
on: [ push, pull_request, workflow_dispatch ]
4+
5+
jobs:
6+
qodana:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
checks: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
16+
fetch-depth: 0 # a full history is required for pull request analysis
17+
- name: 'Qodana Scan'
18+
uses: JetBrains/qodana-action@v2024.3
19+
with:
20+
pr-mode: false
21+
env:
22+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
23+
QODANA_ENDPOINT: 'https://qodana.cloud'

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<a href="https://github.com/foldright/cffu/actions/workflows/fast_ci.yaml"><img src="https://img.shields.io/github/actions/workflow/status/foldright/cffu/fast_ci.yaml?branch=main&logo=github&logoColor=white&label=fast ci" alt="Github Workflow Build Status"></a>
55
<a href="https://github.com/foldright/cffu/actions/workflows/ci.yaml"><img src="https://img.shields.io/github/actions/workflow/status/foldright/cffu/ci.yaml?branch=main&logo=github&logoColor=white&label=strong ci" alt="Github Workflow Build Status"></a>
66
<a href="https://app.codecov.io/gh/foldright/cffu/tree/main"><img src="https://img.shields.io/codecov/c/github/foldright/cffu/main?logo=codecov&logoColor=white" alt="Codecov"></a>
7+
<a href="https://qodana.cloud/projects/A61Yy/reports/5rvgd"><img src="https://img.shields.io/github/actions/workflow/status/foldright/cffu/qodana_code_quality.yml?branch=main&logo=jetbrains&logoColor=white&label=qodana" alt="Github Workflow Build Status"></a>
78
<a href="https://openjdk.java.net/"><img src="https://img.shields.io/badge/Java-8+-339933?logo=openjdk&logoColor=white" alt="Java support"></a>
89
<a href="https://www.apache.org/licenses/LICENSE-2.0.html"><img src="https://img.shields.io/github/license/foldright/cffu?color=4D7A97&logo=apache" alt="License"></a>
910
<a href="https://foldright.io/api-docs/cffu/"><img src="https://img.shields.io/github/release/foldright/cffu?label=javadoc&color=339933&logo=read-the-docs&logoColor=white" alt="Javadocs"></a>

cffu-ttl-executor-wrapper/src/main/java/io/foldright/cffu/ttl/CffuTtlExecutorWrapperProvider.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.alibaba.ttl.threadpool.TtlExecutors;
44
import edu.umd.cs.findbugs.annotations.NonNull;
5-
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
65
import io.foldright.cffu.spi.ExecutorWrapperProvider;
76

87
import java.util.concurrent.Executor;

qodana.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://www.jetbrains.com/help/qodana/qodana-yaml.html
2+
version: "1.0"
3+
linter: jetbrains/qodana-jvm-community:2024.3
4+
profile:
5+
# https://www.jetbrains.com/help/qodana/inspection-profiles.html
6+
name: qodana.recommended
7+
# https://www.jetbrains.com/help/qodana/qodana-yaml.html#Configure+the+JDK+version
8+
projectJDK: 21
9+
include:
10+
- name: CheckDependencyLicenses
11+
exclude:
12+
# https://www.jetbrains.com/help/inspectopedia/UnusedParameters.html#locating-this-inspection
13+
- name: UnusedSymbol
14+
# # https://www.jetbrains.com/help/qodana/qodana-yaml.html#exclude-paths
15+
paths:
16+
- cffu-kotlin/src/main/java/io/foldright/cffu/kotlin/CompletableFutureExtensions.kt

0 commit comments

Comments
 (0)