Modus Operandi
==============

.. rubric:: Modus Operandi is the method of operation. It's the signature
            for how you work with the codebase and lets you discover trends in
            the type of coding you do.

What is Modus Operandi?
-----------------------

Forensic psychologists refer to Modus Operandi as the method of operation, a criminal signature.
Software teams have a modus operandi, too. Our analyses help you uncover it to better understand how the team works.
The information will never be precise, but lets you ask the right questions and guide your discussions by opening a new perspective
on your daily work.

Inspect Trends in Your Commit Messages
--------------------------------------

CodeScene's JIRA integration (see :doc:`/guides/pm/project-management-analyses`) lets you discover trends in the
type of work you do. However, not all organizations use JIRA. There may also be work-related information that isn't available in
JIRA.

Thus, CodeScene provides a second data source for work-related trends: your commit messages. Your commit messages is an
interesting data source too, as illustrated in :numref:`modus-operandi-commit-log`

.. figure:: modus-operandi-commit-log.png
   :alt: A Git commit log
   :name: modus-operandi-commit-log

   Your commit messages contains work-related information.

By default, CodeScene will identify all commit messages that contain the texts `bug`, `fix`, or `defect`, but you can override
the defaults and provide any patterns as illustrated in :numref:`modus-operandi-commit-message-trend`.

.. figure:: modus-operandi-commit-message-trend.png
   :alt: A commit message trend
   :name: modus-operandi-commit-message-trend

   Inspect all commits that mention a particular word or phrase.

Note that the matches are always case insensitive. That is, if you
specify `bug`, CodeScene will match both `bug` and `Bug`.
