Skip to content

Adds a second library for a job an installed one already does (dayjs beside moment) ​

Code that already exists: one of the ways AI coding agents bloat software, from lessloc's pattern catalog. What lessloc does: new-dependency names the library that is already installed.

What makes a second library for a job an installed one already does a bad practice? ​

The standards that call it a bad practice: One obvious way to do it (PEP 20); OWASP Top 10 A06:2021 and A03:2025 Software Supply Chain Failures.

What does lessloc do about a second library for a job an installed one already does? ​

new-dependency names the library that is already installed.

  • new-dependency (tier 2): A new dependency, when there is no approvedDependencies list. It says when an installed one already does the job, or when the lockfile does not pin it.

The other patterns in Code that already exists:

Released under the Apache-2.0 license. · llms.txt