Skip to content

feat(cli): add duplicate dependency linter#1256

Open
hashwnath wants to merge 4 commits intowalmartlabs:masterfrom
hashwnath:add-duplicate-dependency-linter
Open

feat(cli): add duplicate dependency linter#1256
hashwnath wants to merge 4 commits intowalmartlabs:masterfrom
hashwnath:add-duplicate-dependency-linter

Conversation

@hashwnath
Copy link

Summary

Following feedback on #1255, this PR implements a CLI linter warning for duplicate dependencies instead of a fail-fast validation error.

Addresses #19 by adding a non-breaking linting rule.

Changes

  • Add DuplicateDependencyLinter.java - detects duplicate entries in configuration.dependencies
  • Register linter in Lint.java
  • Add test case lintV2DuplicateDepsTest with corresponding test resources

Behavior

  • Reports duplicates as warnings (not errors)
  • Does not break existing workflows
  • Provides helpful feedback to flow designers when running concord lint

Testing

  • Added lintV2DuplicateDepsTest test case
  • Test verifies exit code is 0 (valid) with 1 warning

References

hashwnath and others added 4 commits January 21, 2026 19:49
Adds a new linter to detect duplicate entries in configuration.dependencies.
Reports duplicates as warnings (not errors) to avoid breaking existing flows
while still providing helpful feedback to flow designers.

Closes issue discussion in walmartlabs#19.

Changes:
- Add DuplicateDependencyLinter.java
- Register linter in Lint.java
- Add test case with duplicate dependencies
Added configuration.runtime: concord-v2 to lintV2DuplicateDeps/concord.yml
to match the pattern used by the existing lintV2 test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants