-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf0898b
commit a76367c
Showing
7 changed files
with
193 additions
and
1 deletion.
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,4 +1,5 @@ | ||
Dockerfile | ||
dymension-testnet.pem | ||
build/ | ||
vendor/ | ||
.github | ||
.gitignore |
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,41 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "**.go" | ||
push: | ||
# The branches below must be a subset of the branches above | ||
branches: | ||
- main | ||
- release/** | ||
paths: | ||
- "**.go" | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.20" | ||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: "go" | ||
queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality | ||
|
||
- name: Build | ||
run: make build | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
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,23 @@ | ||
name: golangci-lint | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
golangci: | ||
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.20" | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.58 | ||
skip-cache: true |
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,65 @@ | ||
run: | ||
concurrency: 4 | ||
timeout: 5m | ||
tests: true | ||
modules-download-mode: readonly | ||
|
||
output: | ||
# Format: colored-line-number|line-number|json|colored-tab|tab|checkstyle|code-climate|junit-xml|github-actions|teamcity | ||
# | ||
# Multiple can be specified by separating them by comma, output can be provided | ||
# for each of them by separating format name and path by colon symbol. | ||
# Output path can be either `stdout`, `stderr` or path to the file to write to. | ||
# Example: "checkstyle:report.xml,json:stdout,colored-line-number" | ||
# | ||
# Default: colored-line-number | ||
format: colored-line-number | ||
# Print lines of code with issue. | ||
# Default: true | ||
print-issued-lines: true | ||
# Print linter name in the end of issue text. | ||
# Default: true | ||
print-linter-name: true | ||
# Make issues output unique by line. | ||
# Default: true | ||
uniq-by-line: true | ||
# Add a prefix to the output file references. | ||
# Default: "" | ||
path-prefix: "" | ||
# Sort results by: filepath, line and column. | ||
# Default: false | ||
sort-results: true | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- errcheck | ||
- gocyclo | ||
- gofmt | ||
- gofumpt | ||
- goimports | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- revive | ||
- staticcheck | ||
- typecheck | ||
- unconvert | ||
- unused | ||
- errorlint | ||
|
||
issues: | ||
exclude-use-default: false | ||
exclude: | ||
- "^.*SA1019.*$" # Excluding SA1019 errors | ||
|
||
linters-settings: | ||
revive: | ||
rules: | ||
- name: exported | ||
severity: warning | ||
disabled: true | ||
errcheck: | ||
check-type-assertions: true |
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,24 @@ | ||
"default": true | ||
"MD001": false | ||
"MD004": false | ||
"MD007": | ||
"indent": 4 | ||
"MD024": | ||
"siblings_only": true | ||
"MD025": false | ||
"MD026": | ||
"punctuation": ".;:" | ||
"MD029": false | ||
"MD033": false | ||
"MD034": false | ||
"MD036": false | ||
"MD040": false | ||
"MD041": false | ||
"MD051": false | ||
"MD049": | ||
"style": "asterisk" | ||
"MD013": | ||
"line_length": 120 | ||
"code_blocks": false | ||
"tables": false | ||
"no-hard-tabs": false |
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 @@ | ||
CHANGELOG.md |
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