Skip to content
Snippets Groups Projects

[fix] Versioned Function Analyzer Ignore Comments

Merged Ursa (9R) requested to merge ursa/version-functions into develop
2 files
+ 6
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -13,10 +13,12 @@ go run tools/versioned-functions/main.go --version="$VERSION" >/tmp/versioned-fn
@@ -13,10 +13,12 @@ go run tools/versioned-functions/main.go --version="$VERSION" >/tmp/versioned-fn
git fetch https://gitlab.com/thorchain/thornode.git develop
git fetch https://gitlab.com/thorchain/thornode.git develop
git checkout FETCH_HEAD
git checkout FETCH_HEAD
git checkout - -- tools
git checkout - -- tools scripts
go run tools/versioned-functions/main.go --version="$VERSION" >/tmp/versioned-fns-develop
go run tools/versioned-functions/main.go --version="$VERSION" >/tmp/versioned-fns-develop
git checkout -
git checkout -
 
gofumpt -w /tmp/versioned-fns-develop /tmp/versioned-fns-current
 
if ! diff -u -F '^func' -I '^//' --color=always /tmp/versioned-fns-develop /tmp/versioned-fns-current; then
if ! diff -u -F '^func' -I '^//' --color=always /tmp/versioned-fns-develop /tmp/versioned-fns-current; then
echo "Detected change in versioned function."
echo "Detected change in versioned function."
if [[ $CI_MERGE_REQUEST_TITLE == *"#check-lint-warning"* ]]; then
if [[ $CI_MERGE_REQUEST_TITLE == *"#check-lint-warning"* ]]; then
Loading