Skip to content

Commit

Permalink
Fix v7 issue when using MEGALINTER_FILES_TO_LINT (#2917)
Browse files Browse the repository at this point in the history
* Fix v7 issue when using MEGALINTER_FILES_TO_LINT

Fixes #2744

* cspell
  • Loading branch information
nvuillam authored Aug 26, 2023
1 parent f2fc1d6 commit da6a41e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
"pacote",
"paren",
"pbab",
"pfiaux",
"pify",
"punycode",
"pushexample",
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- Fix rstcheck options & install
- Deprecate SCSS LINT as not maintained anymore (<https://github.com/sds/scss-lint#notice-consider-other-tools-before-adopting-scss-lint>)
- 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 !)

- Linter versions upgrades
- [mypy](https://mypy.readthedocs.io/en/stable/) from 1.4.1 to **1.5.0** on 2023-08-11
Expand Down
2 changes: 1 addition & 1 deletion megalinter/MegaLinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def collect_files(self):
all_files = list()
for file_to_lint in files_to_lint:
if os.path.isfile(self.workspace + os.path.sep + file_to_lint):
all_files += [self.workspace + os.path.sep + file_to_lint]
all_files += [file_to_lint]
else:
logging.warning(
"[File listing] Input file "
Expand Down

0 comments on commit da6a41e

Please sign in to comment.