Skip to content

add --base-dir flag to flow lint for custom search directory#2311

Open
holyfuchs wants to merge 1 commit intomasterfrom
holyfuchs/basedir-lint
Open

add --base-dir flag to flow lint for custom search directory#2311
holyfuchs wants to merge 1 commit intomasterfrom
holyfuchs/basedir-lint

Conversation

@holyfuchs
Copy link
Copy Markdown
Member

@holyfuchs holyfuchs commented Apr 2, 2026

Adds a --base-dir flag to flow cadence lint, mirroring the equivalent flag added to flow test in #2301. When no explicit file arguments are provided, lint now searches for .cdc files starting from the specified directory instead of always defaulting to the current working directory. This is useful for monorepos or projects where the CLI is invoked from a directory above the Cadence source tree.

right now such commands are used: find cadence/contracts -name "*.cdc" | xargs flow cadence lint

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 2ad07e3.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/cadence/lint.go 0.00% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants