mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-27 04:46:13 +00:00
93e2798f37
This script ensures that either //@flow or //@no-flow is present in every js file. Every existing js file that would fail this check has been given //@no-flow, we should work to remove all of these in the future. Test plan: I verified that `yarn travis` fails before fixing the other js files, and passes afterwards.
8 lines
201 B
Bash
Executable File
8 lines
201 B
Bash
Executable File
#!/bin/bash
|
|
set -eu
|
|
comm -13 -z \
|
|
<(git grep -z --name-only -e @flow -e @no-flow | sort -z) \
|
|
<(find src config scripts -name '*.js' -print0 | sort -z) \
|
|
| tr '\0' '\n' \
|
|
| diff -u /dev/null -
|