Skip to content

Commit

Permalink
Fix IGNORE_GITIGNORED_FILES not working anymore (#2967)
Browse files Browse the repository at this point in the history
Fixes #2955
  • Loading branch information
nvuillam committed Sep 20, 2023
1 parent 3ab9a1e commit fc6a2e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
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
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 fc6a2e4

Please sign in to comment.