`flow cadence lint` lints imports
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start in internal/cadence/lint.go at findAllCadenceFiles and the call that passes "." when --base-dir is unset. Run flow cadence lint on a standard project layout containing cadence/ and imports/ to confirm the current discovery behavior. Done means the command lints project .cdc files without processing imported dependencies when no base directory is provided.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Go
- Stars
- 209
- Forks
- 88
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from onflow/flow-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Feature
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·