-
Notifications
You must be signed in to change notification settings - Fork 84
flow cadence lint lints imports #2326
Copy link
Copy link
Open
Labels
BugThe issue represents a bug, malfunction, regressionThe issue represents a bug, malfunction, regressionImprovementTechnical work without new features, refactoring, improving testsTechnical work without new features, refactoring, improving tests
Metadata
Metadata
Assignees
Labels
BugThe issue represents a bug, malfunction, regressionThe issue represents a bug, malfunction, regressionImprovementTechnical work without new features, refactoring, improving testsTechnical work without new features, refactoring, improving tests
Type
Fields
Give feedbackNo fields configured for issues without a type.
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.