Skip to content

fix: File rules honour the user defined Source layer when a preset has no source paths - #502

Merged
samsonasik merged 2 commits into
mainfrom
source-paths
Oct 11, 2026
Merged

samsonasik merged 2 commits into
mainfrom
source-paths

Conversation

@samsonasik

@samsonasik samsonasik commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

when I define

->layer('Source', 'src')
->preset(Preset::PSR4(), Preset::CODEQUALITY(), Preset::YAGNI(sourcePaths: ['src', 'tests'])

The code quality rules apply to tests as well, while it should be only on src per defined

->layer('Source', 'src')

above it.

This PR fix it.

@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@samsonasik
samsonasik merged commit e45aee7 into main Oct 11, 2026
14 checks passed
@samsonasik
samsonasik deleted the source-paths branch October 11, 2026 11:18
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.

1 participant