jld3103
1 year ago
2 changed files with 20 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||||||
|
#!/bin/bash |
||||||
|
set -euxo pipefail |
||||||
|
cd "$(dirname "$0")/.." |
||||||
|
|
||||||
|
dart_io_usage=("$(grep -r packages --include "*\.dart" -e "dart:io" -l | grep -v "/\.dart_tool/" | grep -v "/bin/" | grep -v "/test_driver/" || true)") |
||||||
|
|
||||||
|
if [[ -n "${dart_io_usage[*]}" ]]; then |
||||||
|
printf "%s\n" "${dart_io_usage[@]}" |
||||||
|
exit 1 |
||||||
|
fi |
Loading…
Reference in new issue