How to make the linter consider files only from the fork-point for a branch, rather than the current MASTER@HEAD? #2459
Unanswered
hacking-genie
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I usually run linters on all files, in case it catches issues added in upgraded linter versions |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A common workflow with our repository is the following:
A dev will checkout at the main repository, and create a feature branch. This branch then will get pushed up and perhaps worked on a bit. Eventually it's set as a PR, but sometimes before it gets to this stage, the master branch will have moved ahead of the branch the PR is based on.
What seems to happen at this stage is that the PR is compared against the current master@head. Which means the Linter will end up looking at all the files that have been added/modified that come AFTER the feature branch ends. So we might end up linting files we don't want to.
Is there any way to fix this, so it only lints files we've modified in some way in the feature branch itself?
Here's my current configs...
.mega-linter.yml
github linter action yml
Beta Was this translation helpful? Give feedback.
All reactions