-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read the path files correctly when setting new default workspace and VALIDATE_ALL_CODEBASE: false #2912
Comments
+1, facing same. setting default workplace explicitly with VALIDATE_ALL_CODEBASE: false not working, however VALIDATE_ALL_CODEBASE: true working fine. |
Have you already tried setting |
Yes both I have tried |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
Just tried 7.4, sadly hasn't fixed it yet. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
We want to make it possible to configure megalinter to lint only certain projects in a monorepo, without scanning the entire codebase. The problems as described below is now causing line 761 in MegaLinter.py to not read out the files correctly causing it to filter out modified files that should have been linted.
Discussed in #2906
How to configure mega-linter to only lint a certain folder in monorepo?
Originally posted by tomkortjak August 22, 2023
my configuration is as follows:
workflow job:
The project contains a react project in app/react. I basically want to linter to only check for modified files in this directory. When scanning for modified files a get a correct list from the git diff, but the filtered list only includes the .gitignore:
I suspect it's because of line 761 in MegaLinter.py
if os.path.isfile(self.workspace + os.path.sep + diff_line):
How should I configure the workflow so that it recognises files like "app/react/src/pages/administration/inbox/InboxEditForm.tsx" ?
Additional question, currently we are setting DEFAULT_WORKSPACE: app/react. Otherwise it can't find the .eslintrc.json file. Is there also another to configure the path to this lint file? I wasn't able to find any in the docs.
The text was updated successfully, but these errors were encountered: