-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: fixed warning by sonarqube * chore: remove duplicate code * add sonarcloud workflow * refactor: rename package identifier to prevent potential conflicts * chore: remove duplicate code * refactor: use optional chain expression to more readable * config: update exclusions for sonar * refactor: reduce Cognitive Complexity * chore: add func assert * chore: split complex logic to function * refactor: reduce Cognitive Complexity * refactor: split code to func to reduce Cognitive Complexity * refactor: split code to func to reduce Cognitive Complexity * style: remove redundant comment in css * style: remove redundant comment in css * style: remove redundant comment in css * sonar: update sonar rules * chore: remove comment * sonar: update sonar rules * sonar: update sonar rules * sonar: update sonar rules * sonar: update sonar rules * sonar: update sonar rules * style: remove empty block * sonar: update sonar rules * sonar: fixed medium issues * sonar: update sonar rules * style: remove empty block --------- Co-authored-by: phutx <[email protected]>
- Loading branch information
Showing
130 changed files
with
1,068 additions
and
1,823 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
name: Reuseable Sonaqube | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'feat/sonarqube' | ||
|
||
jobs: | ||
scan-repository: | ||
name: scan repository with Sonaqube | ||
sonarcloud: | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: sonarsource/sonarqube-scan-action@master | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Function to remove single-line comments starting with // | ||
remove_single_line_comments() { | ||
sed -i '' 's#//.*$##' "$1" | ||
} | ||
|
||
# Find and remove comments in all .scss files | ||
find . -name '*.scss' | while read filename; do | ||
echo "Removing comments from $filename" | ||
remove_single_line_comments "$filename" | ||
done | ||
|
||
echo "Comments removed from all .scss files." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
sonar.projectKey=oraichain_oraiswap-frontend_AYpL50t8tGfUdSAJ_QO4 | ||
sonar.projectKey=oraichain_oraiswap-frontend | ||
sonar.organization=oraichain | ||
sonar.exclusions=src/tests/**,src/components/LuckyDraw/luckyDrawClient/LuckyWheelContract.client.ts,src/components/LuckyDraw/luckyDrawClient/LuckyWheelContract.types.ts | ||
sonar.issue.ignore.multicriteria=e1,e2,e3,e4 | ||
|
||
# Non-interactive elements shouldn't have event handlers. | ||
sonar.issue.ignore.multicriteria.e1.ruleKey=typescript:S6847 | ||
sonar.issue.ignore.multicriteria.e1.resourceKey=** | ||
|
||
# Remove this commented out code. | ||
sonar.issue.ignore.multicriteria.e2.ruleKey=typescript:S125 | ||
sonar.issue.ignore.multicriteria.e2.resourceKey=** | ||
|
||
# Prefer using an optional chain expression instead, as it's more concise and easier to read. | ||
sonar.issue.ignore.multicriteria.e3.ruleKey=typescript:S6582 | ||
sonar.issue.ignore.multicriteria.e3.resourceKey=** | ||
|
||
# Avoid non-native interactive elements. | ||
sonar.issue.ignore.multicriteria.e4.ruleKey=typescript:S6848 | ||
sonar.issue.ignore.multicriteria.e4.resourceKey=** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
.input{ | ||
|
||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,8 +67,5 @@ | |
.chooseWalletModalWrapper { | ||
color: #f7f7f7; | ||
background: #121511; | ||
|
||
.downloadPlatform { | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,6 @@ | |
|
||
/* aiRight/White */ | ||
|
||
// color: #ffffff;f | ||
@include theme() { | ||
color: theme-get('text-color'); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,6 @@ | |
|
||
path { | ||
fill: #777E91; | ||
; | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.