yaniksoeltzer / git_inspector

Inspect git repositories and report best practices violations.
MIT License
2 stars 1 forks source link
git gitinspector python

Git-Inspector

<yaniksoeltzer> Code style: black

Inspect git repositories and report best practices violations.

example_output

What is reported

The different reports are generated by python modules in git_inspector/reports. So far the following reports are generated:

Installation

1. Install with pip over https
python -m pip install git+https://github.com/yaniksoeltzer/git_inspector

Usage

usage: git_inspector [-h] [-l level] [path ...]

You can use git_inspector and git-inspector in like manner. For help about the usage run git-inspector --help.

Directory [path ...]

Provide one or multiple relative or absolute paths to the Git-Inspector.

# Inspect the home directory of the current user
git_inspector ~

# Inspect current directory
git_inspector .

# Inspect multiple directories
git_inspector ~/my_projects /opt/projects

Report Level [--report-level]

The Git-Inspector allows to set the report level, showing only reports with the provided report-level or a higher report-level. The report-level can be set to alert, warning, or hint using the --report-level / -l parameter. The default value is warning. To also show hints run

# Show everything
git_inspector -l hints

# Show only alerts and warnings
git_inspector -l warnings

# Show only alerts
git_inspector -l alerts

Uninstall Git-Inspector

To uninstall git_inspector run

> python -m pip uninstall git_inspector