Skip to content

Commit

Permalink
The profile validator would load any file whose name was a subset of …
Browse files Browse the repository at this point in the history
….prospector.yaml due to using the incorrect comparison operator.
  • Loading branch information
carlio committed Mar 1, 2015
1 parent 7004dd4 commit 8a03a50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Prospector Changelog
=======

## Version 0.9.10
* The profile validator would load any file whose name was a subset of '.prospector.yaml' due to using the incorrect comparison operator.
* Fixing a crash when using an empty `ignore-patterns` list in a profile.
* Fixing a crash when a profile is not valid YAML at all.
* [#105](https://github.com/landscapeio/prospector/pull/105) pyflakes was not correctly ignoring errors.
Expand Down
2 changes: 1 addition & 1 deletion prospector/tools/profile_validator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def run(self, found_files):
messages = []
for rel_filepath in found_files.iter_file_paths(abspath=False, include_ignored=True):
for possible in self.to_check:
if rel_filepath in possible:
if rel_filepath == possible:
abs_filepath = found_files.to_absolute_path(rel_filepath)
messages += self.validate(rel_filepath, abs_filepath)
break
Expand Down

0 comments on commit 8a03a50

Please sign in to comment.