-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
DESCRIPTION
- Its often to not format all files
- Example: vendor folder, protobuf generated files, etc
REQUEST
- Add an option where the image accepts a list of files to process
- Or provide options to ignore vendor and/or protobuf generated files since they are used often
WORKAROUND
- Running
docker runon each file is much slower with this workaround
#!/bin/bash
files=$(find . -type f -name "*.go" | grep -v vendor | grep -v pb.go)
for f in $files; do
diff=$(docker run --rm -v $(pwd):/data cytopia/goimports -d $f)
if [[ "$diff" != "" ]]; then
echo "File fails goimports linter: $f"
exit 2
fi
done
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels