forked from cerc-io/laconicd-deprecated
chore: Update linter and protogen configuration (#1478)
* add protolint yaml * Update .protolint.yml with Evmos settings * Add super-linter.yml for GH action * Copy .markdownlint.yml settings from Evmos * Sort proto imports * address protolint error in all Protobuf files * update Makefile to mirror Proto commands for Evmos * remove unnecessary go get command in protocgen.sh when using cosmos docker image * copy .clang-format from Evmos repo * apply make proto-format * Execute make proto-all after changes to config are complete * address last linter comment
This commit is contained in:
@@ -9,9 +9,11 @@ set -eo pipefail
|
||||
echo "Generating gogo proto code"
|
||||
proto_dirs=$(find ./proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
|
||||
for dir in $proto_dirs; do
|
||||
for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do
|
||||
if grep go_package $file &>/dev/null; then
|
||||
buf generate --template proto/buf.gen.gogo.yaml $file
|
||||
proto_files=$(find "${dir}" -maxdepth 1 -name '*.proto')
|
||||
for file in $proto_files; do
|
||||
# Check if the go_package in the file is pointing to evmos
|
||||
if grep -q "option go_package.*ethermint" "$file"; then
|
||||
buf generate --template proto/buf.gen.gogo.yaml "$file"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user