# `mix lei.bulk_analyze`
[🔗](https://github.com/gtri/lowendinsight/blob/main/lib/mix/tasks/bulk_analyze.ex#L5)

This is used to run a LowEndInsight scan against a repository, by cloning it locally, then looking
into it.  Pass in the repo URL as a parameter to the task.

Skipping validation is possible:
➜  lowendinsight git:(develop) ✗ mix lei.bulk_analyze test/fixtures/npm.short.csv
invalid file contents
➜  lowendinsight git:(develop) ✗ mix lei.bulk_analyze test/fixtures/npm.short.csv no_validation
11:45:39.773 [error] Not a Git repo URL, is a subdirectory
11:45:40.102 [info]  Cloned -> 3: git+https://github.com/SuzuNohara/zzzROOTPreloader.git
11:45:40.134 [info]  Cloned -> 7: git+https://github.com/zenghongyang/test.git
11:45:40.177 [info]  Cloned -> 5: git+https://github.com/chameleonbr/zzzz-test-module.git

#Usage
```
cat url_list | mix lei.bulk_analyze | jq
```
This will return a big report (prettied by jq), depending on your list quantity.
```
{
"state": "complete",
"report": {
  "uuid": "2916881c-67d7-11ea-be2b-88e9fe666193",
  "repos": [
    {
      "header": {
        "uuid": "25b55c30-67d6-11ea-9764-88e9fe666193",
        "start_time": "2020-03-16T22:32:45.324687Z",
        "source_client": "mix task",
        "library_version": "",
        "end_time": "2020-03-16T22:33:24.152148Z",
        "duration": 39
      },
      "data": {
        "risk": "high",
        "results": {
          "top10_contributors": [
            {
...
```

# `run`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
