Summary
flow cadence lint discovers .cdc files starting from . (the project root) when no --base-dir is provided. The standard Flow project layout puts own .cdc files in cadence/.
Linting from . causes the linter to process files it shouldn't — in particular, imports/.
Expected behavior
Don't lint imported dependencies.
Root cause
In internal/cadence/lint.go, findAllCadenceFiles is called with "." when --base-dir is not set.
Summary
flow cadence lintdiscovers.cdcfiles starting from.(the project root) when no--base-diris provided. The standard Flow project layout puts own .cdc files incadence/.Linting from
.causes the linter to process files it shouldn't — in particular,imports/.Expected behavior
Don't lint imported dependencies.
Root cause
In
internal/cadence/lint.go,findAllCadenceFilesis called with"."when--base-diris not set.