MCPcopy Create free account
hub / github.com/Persper/code-analytics / onBeforeCommit

Method onBeforeCommit

persper/analytics/analyzer2.py:227–238  ·  view source on GitHub ↗

Called before the observed Analyzer is about to analyze a commit. Params: analyzer: the observed Analyzer instance. index: the index of the commit, depending on the behavior of the analyzer. This is usually a series of 1-based ordinal inde

(self, analyzer: Analyzer, commit: Commit, seeking_mode: CommitSeekingMode)

Source from the content-addressed store, hash-verified

225 pass
226
227 def onBeforeCommit(self, analyzer: Analyzer, commit: Commit, seeking_mode: CommitSeekingMode):
228 """
229 Called before the observed Analyzer is about to analyze a commit.
230 Params:
231 analyzer: the observed Analyzer instance.
232 index: the index of the commit, depending on the behavior of the analyzer.
233 This is usually a series of 1-based ordinal index for master commits,
234 and another series of 1-based ordinal index for branch commits.
235 commit: the commit to be analyzed.
236 isMaster: whether the current commit is one of the master commits.
237 """
238 pass
239
240 def onAfterCommit(self, analyzer: Analyzer, commit: Commit, seeking_mode: CommitSeekingMode):
241 """

Callers 1

_analyzeCommitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected