Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: convert qodana config to new format #5404

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
27da111
chore: convert qodana config to new format
MartinWitt Aug 28, 2023
6690d8e
up
MartinWitt Aug 28, 2023
fdd7294
Update qodana.yaml
MartinWitt Aug 28, 2023
36b21b7
Update qodana.yaml
MartinWitt Aug 28, 2023
3b3d1f4
Update qodana.yml
MartinWitt Aug 28, 2023
d9c7b09
add qodana token
MartinWitt Aug 28, 2023
d5f4cda
Add qodana cloud
MartinWitt Aug 28, 2023
5c150f0
up
MartinWitt Aug 28, 2023
e79ce7a
add fixes in PR
MartinWitt Aug 28, 2023
2804b06
up
MartinWitt Aug 28, 2023
099e75a
up
MartinWitt Aug 28, 2023
fbdf8f7
remove apply fixes
MartinWitt Aug 28, 2023
622e5bc
up
MartinWitt Aug 28, 2023
7368f2b
up
MartinWitt Aug 28, 2023
b5d7a05
up
MartinWitt Aug 28, 2023
d725738
up
MartinWitt Aug 28, 2023
6f8648d
up
MartinWitt Aug 28, 2023
c6d7d25
pin linter
MartinWitt Aug 28, 2023
22db052
disable reaction
MartinWitt Aug 28, 2023
20724b1
up
MartinWitt Aug 30, 2023
a190abf
ignore new rule
MartinWitt Aug 30, 2023
f7bfcd9
Merge branch 'master' into qodana-tests
MartinWitt Aug 30, 2023
a6aca12
Update CtInvocationImpl.java
MartinWitt Aug 30, 2023
7d3b14b
Merge branch 'master' into qodana-tests
MartinWitt Aug 31, 2023
c4253bf
Update qodana.yaml
MartinWitt Sep 3, 2023
f667aa6
enable for PRs
MartinWitt Sep 3, 2023
bc7c8a5
Update qodana.yaml
MartinWitt Sep 3, 2023
b91c2a4
Update qodana-cloud.yaml
MartinWitt Sep 3, 2023
f99eb05
Update qodana-cloud.yaml
MartinWitt Sep 3, 2023
9269e5a
Update qodana-cloud.yaml
MartinWitt Sep 3, 2023
4cb508e
Update qodana-cloud.yaml
MartinWitt Sep 3, 2023
ea489e9
Update qodana.yaml
MartinWitt Sep 3, 2023
ae18a4c
Update OutputType.java
MartinWitt Sep 3, 2023
d4632d0
Update qodana.yaml
MartinWitt Sep 3, 2023
6e659cc
Update OutputType.java
MartinWitt Sep 3, 2023
660c2d1
Create qodana-inspections.yaml
MartinWitt Sep 3, 2023
528ba78
Update qodana.yaml
MartinWitt Sep 3, 2023
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
33 changes: 33 additions & 0 deletions .github/workflows/qodana-cloud.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Qodana-Cloud-Scan
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
pull_request:
branches:
- master
push:
branches:
- master

permissions:
contents: read
jobs:
qodana:
I-Al-Istannen marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@77f0ff0c702065648df9fd0340a48919dca5a1ff # v2023.2.1
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
pr-mode: false
post-pr-comment: false
args: --cleanup, -l, jetbrains/qodana-jvm:2023.2
I-Al-Istannen marked this conversation as resolved.
Show resolved Hide resolved
push-fixes: pull-request

64 changes: 36 additions & 28 deletions qodana.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,39 @@
profile:
name: qodana.recommended
version: "1.0"
include:
- name: Anonymous2MethodRef
- name: AssignmentToCatchBlockParameter
- name: AssignmentToLambdaParameter
- name: AssignmentToMethodParameter
# disabled as it does not support nullability annotations
#- name: AssignmentToNull
- name: Convert2Lambda
- name: DoubleBraceInitialization
- name: EqualsAndHashcode
- name: JavaLangImport
# Disabled for annotations applied to type
#- name: MissortedModifiers
- name: NestedAssignment
- name: NonShortCircuitBoolean
- name: RedundantFieldInitialization
- name: RedundantSuppression
- name: Reformat
- name: ReturnNull
- name: SamePackageImport
- name: StringEquality
- name: UnnecessaryBoxing
- name: UnnecessaryLocalVariable
- name: UnnecessaryUnboxing
- name: UNUSED_IMPORT
- name: PointlessBooleanExpression
exclude:
- name: UseOfClone
groups:
- groupId: IncludedPaths
groups:
- "category:Java"
- "GLOBAL"
- groupId: ExcludedInspections # list of inspections disabled by specific reason
inspections:
- "!IncludedPaths"
- Annotator # substituted by JavaAnnotator in sanity
# - JavaAnnotator # works in "sanity" inspections
- SyntaxError # should work on sanity level
- Since15 # Detects wrong language level. Should work on sanity.
- JavadocBlankLines # Questionable. Spam on mockito, RxJava and other projects.
- UseOfClone # We often use clone (correctly implemented as a deep copy). It's not a problem.
- UnstableApiUsage
- MissortedModifiers # Disabled for annotations applied to type
- AssignmentToNull # Disabled as it does not support nullability annotations
inspections:
- group: ExcludedInspections
enabled: false
- group: IncludedPaths
ignore:
- "vendor/**"
- "build/**"
- "buildSrc/**"
- "builds/**"
- "dist/**"
- "tests/**"
- "tools/**"
- "vendor/**"
- "**.test.ts"
- "scope#$gitignore" # $gitignore scope available only in qodana execution
- "scope#test:*..*"
- "scope#file:buildSrc/*"
- inspection: JavadocReference
severity: WARNING # It has default ERROR severity. It's understandable for unresolved references in javadocs for editor but not on CI.
Loading