good-fences icon indicating copy to clipboard operation
good-fences copied to clipboard

Warn when there is an unused dependency

Open bernardoduarte opened this issue 2 years ago • 0 comments

I've configured my fences.json on my project and tried to add a unused dependency to see if it would warn. I've added axios and, despite it not beign used in any of the files watched by this fences.json, it didn't warn me about missing dependency usage or unused dependency. I think it would be a great addition to this package as it would help us to better maintain our modules.

Here is my fences.json example:

{
  "tags": [ "main" ],
  "exports": [
      {
          "modules": "adapters/*"
      },
      {
          "modules": "factories/*"
      },
      {
          "modules": "module"
      }
  ],    
  "imports": [
      "domain",
      "data",
      "infra",
      "presentation"
  ],
  "dependencies": [
      "@nestjs/*",
      "express",
      "axios"
  ]
}

bernardoduarte avatar Mar 06 '22 04:03 bernardoduarte