Rellum Rellum

S0015: len expects one argument

Generated from rellum-diagnostics/src/db.rs.

Explanation

The len built-in has exactly one operand: the array whose element count should be read. Extra arguments leave the compiler with no defined interpretation, and missing arguments leave it without an array value.

Common causes

Canonical fixes

Before:

count = len(a, b)

After:

count = len([a, b])

Before:

count = len(items, fallback)

After:

count = len(items)

Code example

count = len(a, b)