Module: Overcommit

Defined in:
lib/overcommit/version.rb,
lib/overcommit/os.rb,
lib/overcommit/cli.rb,
lib/overcommit/utils.rb,
lib/overcommit/logger.rb,
lib/overcommit/printer.rb,
lib/overcommit/git_repo.rb,
lib/overcommit/constants.rb,
lib/overcommit/installer.rb,
lib/overcommit/git_config.rb,
lib/overcommit/subprocess.rb,
lib/overcommit/git_version.rb,
lib/overcommit/hook_runner.rb,
lib/overcommit/hook_signer.rb,
lib/overcommit/configuration.rb,
lib/overcommit/command_splitter.rb,
lib/overcommit/message_processor.rb,
lib/overcommit/configuration_loader.rb,
lib/overcommit/configuration_validator.rb,
lib/overcommit/hook/pre_commit/rails_best_practices.rb

Overview

rubocop:disable Metrics/ClassLength, Metrics/CyclomaticComplexity, Metrics/MethodLength

Defined Under Namespace

Modules: Exceptions, GitConfig, GitRepo, Hook, HookContext, HookLoader, OS, Utils Classes: CLI, CommandSplitter, Configuration, ConfigurationLoader, ConfigurationValidator, HookRunner, HookSigner, Installer, Logger, MessageProcessor, Printer, Subprocess

Constant Summary collapse

VERSION =
'0.51.0'
HOME =
File.expand_path(File.join(File.dirname(__FILE__), '..', '..')).freeze
CONFIG_FILE_NAME =
'.overcommit.yml'
HOOK_DIRECTORY =
File.join(HOME, 'lib', 'overcommit', 'hook').freeze
REPO_URL =
'https://github.com/sds/overcommit'
BUG_REPORT_URL =
"#{REPO_URL}/issues"
GIT_VERSION =
begin
  version = `git --version`.chomp[/\d+(\.\d+)+/, 0]
  Overcommit::Utils::Version.new(version)
end