Skip to content

Commit

Permalink
plugin: feature: git: cloc: Log if no binaries are in path
Browse files Browse the repository at this point in the history
Fixes: intel#7
  • Loading branch information
sudharsana-kjl authored and pdxjohnny committed Mar 18, 2019
1 parent bb67660 commit 0ac6d8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 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 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added update functionality to the CSV source
### Changed
- Restructured documentation to docs folder and moved from rST to markdown
- Git feature cloc logs if no binaries are in path
### Fixed
- Enable source.file to read from /dev/fd/XX

Expand Down
2 changes: 2 additions & 0 deletions feature/git/dffml_feature_git/feature/cloc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class GitClocFeature(GitMonthlyFeature):
def __init__(self):
super().__init__()
self.binary = self.BINARY
if not inpath(self.binary):
LOGGER.error("%s not in path", self.binary)
for binary in self.FASTER_THAN_CLOC:
if inpath(binary):
self.binary = binary
Expand Down

0 comments on commit 0ac6d8a

Please sign in to comment.