shouldSkipBinaryContent function

bool shouldSkipBinaryContent(
  1. String path
)

Whether path should bypass the annotation transform pipeline.

Implementation

bool shouldSkipBinaryContent(String path) {
  if (binaryContentBasenames.contains(p.basename(path))) {
    return true;
  }
  return binaryContentExtensions.contains(
    p.extension(path).toLowerCase(),
  );
}