Skip to content

Commit

Permalink
Fix IGNORE_GITIGNORED_FILES not working anymore (oxsecurity#2967)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam authored and sanmai-NL committed Oct 4, 2023
1 parent f30c6fc commit efe0c48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- Replace `https://megalinter.io/flavors` with `https://megalinter.io/latest/flavors` to avoid lychee 404 error
- Fix [v7 issue when using MEGALINTER_FILES_TO_LINT](https://github.com/oxsecurity/megalinter/issues/2744) ( thanks @pfiaux !)
- Fix [Ignore symlink files when VALIDATE_ALL_CODEBASE is false](https://github.com/oxsecurity/megalinter/issues/2944)
- Fix [IGNORE_GITIGNORED_FILES not working anymore](https://github.com/oxsecurity/megalinter/issues/2955)

- Media
- [Maximize your code consistency with Megalinter](https://codewithme.cloud/posts/2023/08/maximize-your-code-consistency-with-megalinter/) by [Tor Ivar Asbølmo](https://www.linkedin.com/in/torivara/) on [codewithme.cloud](https://codewithme.cloud)
Expand Down
2 changes: 0 additions & 2 deletions megalinter/MegaLinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,6 @@ def list_git_ignored_files(self):
]
).splitlines()
ignored_files = map(lambda x: x + "**" if x.endswith("/") else x, ignored_files)
# ignored_files will be match against absolute path (in all_files), so it should be absolute
ignored_files = map(lambda x: os.path.join(dirpath, x), ignored_files)
ignored_files = sorted(list(ignored_files))
return ignored_files

Expand Down

0 comments on commit efe0c48

Please sign in to comment.