Skip to content

Commit

Permalink
#99 Now handling generated sources gracefully
Browse files Browse the repository at this point in the history
Creating a placeholder ScmLogInfo object when a source file has been generated.
  • Loading branch information
jimbethancourt committed Sep 25, 2024
1 parent 9cf5d34 commit 128b886
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ <T extends Disharmony> List<ScmLogInfo> getRankedChangeProneness(List<T> disharm
} catch (GitAPIException | IOException e) {
log.error("Error reading Git repository contents.", e);
} catch (NullPointerException e) {
log.error("Encountered nested class in a class containing a violation. Class: {}", path);
log.info("Encountered nested class in a class containing a violation. Class: {}", path);
scmLogInfo = new ScmLogInfo(path, 0,0,0);
}
return scmLogInfo;
})
Expand Down

0 comments on commit 128b886

Please sign in to comment.