Skip to content

Commit

Permalink
Bug 1598485 - Exclude files that are not part of the nss repository f…
Browse files Browse the repository at this point in the history
…rom the analysis artifact. r=jcj

Differential Revision: https://phabricator.services.mozilla.com/D55963

--HG--
extra : moz-landing-system : lando
  • Loading branch information
abpostelnicu committed Dec 9, 2019
1 parent 7b397c0 commit d480f0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mach
Expand Up @@ -244,6 +244,9 @@ class coverityAction(argparse.Action):
print('Skipping CID: {0} from file: {1} since it\'s not related with the current patch.'.format(
issue['stateOnServer']['cid'], issue['strippedMainEventFilePathname']))
continue
# If path does not start with `cwd` skip it
if not path.startswith(cwd):
continue
path = relpath(path)
if path in files_list:
files_list[path]['warnings'].append(build_element(issue))
Expand Down

0 comments on commit d480f0e

Please sign in to comment.