Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Feb 2, 2024
1 parent 242efbe commit 24eede8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/nocopyreadall.bash
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ for file in $(find . -type f -name \*.go); do
continue
fi

if [ "$file" = "./pkg/gobash/version.go" ]; then
# We're allowed to use ReadAll and Copy in this file because
# this code is only used by the build system
continue
fi

if grep -q 'io\.ReadAll' $file; then
echo "in $file: do not use io.ReadAll, use netxlite.ReadAllContext" 1>&2
exitcode=1
Expand Down

0 comments on commit 24eede8

Please sign in to comment.