-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rano/testkit/basecoin-store
- Loading branch information
Showing
34 changed files
with
451 additions
and
301 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- [ibc-core-host] Add remaining storage paths. | ||
([\#1065](https://github.com/cosmos/ibc-rs/issues/1065)) |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Security Audit | ||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
security_audit: | ||
|
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,21 @@ | ||
name: Code Quality Checks | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
code-quality: | ||
runs-on: ubuntu-latest | ||
env: | ||
RIPGREP_VERSION: 14.1.0 | ||
FD_VERSION: 9.0.0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Whitestapace lints | ||
run: bash ci/code-quality/whitespace-lints.sh | ||
|
||
- name: Spell Check with Typos | ||
uses: crate-ci/typos@master | ||
with: | ||
config: ./.github/typos.toml |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Check Markdown links | |
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
- cron: "0 0 * * *" | ||
|
||
workflow_dispatch: | ||
|
||
|
@@ -14,6 +14,6 @@ jobs: | |
- name: markdown-link-check | ||
uses: gaurav-nelson/[email protected] | ||
with: | ||
config-file: '.github/markdown-link-check.json' | ||
use-quiet-mode: 'yes' | ||
use-verbose-mode: 'yes' | ||
config-file: ".github/markdown-link-check.json" | ||
use-quiet-mode: "yes" | ||
use-verbose-mode: "yes" |
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 was deleted.
Oops, something went wrong.
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,54 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# use ggrep for macOS, and grep for Linux | ||
case "$OSTYPE" in | ||
darwin*) GREP="ggrep" ;; | ||
linux-gnu*) GREP="grep" ;; | ||
*) echo "Unknown OS: $OSTYPE" && exit 1 ;; | ||
esac | ||
|
||
check_binary() { | ||
# exactly one argument is passed | ||
if [ $# -ne 1 ] || [ "$1" = "" ]; then | ||
echo "Usage: check_binary <binary>" | ||
exit 1 | ||
fi | ||
|
||
if ! (type "$1" >/dev/null 2>&1); then | ||
echo "$1 is not present" | ||
exit 1 | ||
fi | ||
} | ||
|
||
check_binary "$GREP" | ||
check_binary find | ||
|
||
check_code_quality() { | ||
# exactly three arguments are passed | ||
if [ $# -ne 3 ] || [ "$1" = "" ] || [ "$2" = "" ] || [ "$3" = "" ]; then | ||
echo "Usage: check_code_quality <option> <pattern> <message>" | ||
exit 1 | ||
fi | ||
|
||
if find . -type f -name "*.toml" -o -name "*.rs" \ | ||
-not -path '*/.*' -not -path '*/target/*' \ | ||
-exec "$GREP" "$1" "$2" {} \; | "$GREP" '.*'; then | ||
echo "$3" | ||
return 1 | ||
else | ||
return 0 | ||
fi | ||
} | ||
|
||
exit_code=0 | ||
|
||
check_code_quality -nHIP "\s+$" "found: trailing whitespaces" || exit_code=1 | ||
check_code_quality -nHIP $"\t" "found: tabs" || exit_code=1 | ||
check_code_quality -zLIP ".*\n\Z" "found: no newline at EOF" || exit_code=1 | ||
|
||
if [ "$exit_code" -eq 0 ]; then | ||
echo "All code quality checks passed successfully." | ||
fi | ||
|
||
exit "$exit_code" |
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 |
---|---|---|
|
@@ -22,4 +22,4 @@ debug-assertions = false | |
opt-level = "s" | ||
overflow-checks = true | ||
panic = "abort" | ||
rpath = false | ||
rpath = 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
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
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
Oops, something went wrong.