repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/commit_msg/message_format_spec.rb
spec/overcommit/hook/commit_msg/message_format_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::CommitMsg::MessageFormat do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do context.stub(:commit_message_li...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/commit_msg/single_line_subject_spec.rb
spec/overcommit/hook/commit_msg/single_line_subject_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::CommitMsg::SingleLineSubject do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do context.stub(:commit_messag...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/commit_msg/russian_novel_spec.rb
spec/overcommit/hook/commit_msg/russian_novel_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::CommitMsg::RussianNovel do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do context.stub(:commit_message_lin...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/commit_msg/text_width_spec.rb
spec/overcommit/hook/commit_msg/text_width_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::CommitMsg::TextWidth do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do context.stub(:commit_message_lines)...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/commit_msg/empty_message_spec.rb
spec/overcommit/hook/commit_msg/empty_message_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::CommitMsg::EmptyMessage do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do context.stub(:empty_message?).an...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/commit_msg/capitalized_subject_spec.rb
spec/overcommit/hook/commit_msg/capitalized_subject_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::CommitMsg::CapitalizedSubject do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do context.stub(:commit_messa...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/commit_msg/hard_tabs_spec.rb
spec/overcommit/hook/commit_msg/hard_tabs_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::CommitMsg::HardTabs do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do context.stub(:commit_message).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/pub_test_spec.rb
spec/overcommit/hook/pre_push/pub_test_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::PubTest do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when pub test exits successfully' do let...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/rake_target_spec.rb
spec/overcommit/hook/pre_push/rake_target_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::RakeTarget do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'without targets parameters' do let(:r...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/pronto_spec.rb
spec/overcommit/hook/pre_push/pronto_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::Pronto do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_retu...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/cargo_test_spec.rb
spec/overcommit/hook/pre_push/cargo_test_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::CargoTest do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when all tests succeed' do before do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/r_spec_spec.rb
spec/overcommit/hook/pre_push/r_spec_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::RSpec do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when rspec exits successfully' do let(:res...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/golangci_lint_spec.rb
spec/overcommit/hook/pre_push/golangci_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::GolangciLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when golangci-lint exits successfully' ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/minitest_spec.rb
spec/overcommit/hook/pre_push/minitest_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::Minitest do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context', all_files: ['test/test_foo.rb']) } subject { described_class.new(config, context) } context 'when minit...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/protected_branches_spec.rb
spec/overcommit/hook/pre_push/protected_branches_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'overcommit/hook_context/pre_push' describe Overcommit::Hook::PrePush::ProtectedBranches do let(:hook_config) { {} } let(:config) do Overcommit::ConfigurationLoader.default_configuration.merge( Overcommit::Configuration.new( 'PrePush' =...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/flutter_test_spec.rb
spec/overcommit/hook/pre_push/flutter_test_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::FlutterTest do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when flutter test exits successfully' do...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/python_nose_spec.rb
spec/overcommit/hook/pre_push/python_nose_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::PythonNose do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when nose exits successfully' do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/php_unit_spec.rb
spec/overcommit/hook/pre_push/php_unit_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::PhpUnit do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when phpunit exits successfully' do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/mix_test_spec.rb
spec/overcommit/hook/pre_push/mix_test_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::MixTest do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when mix test exits successfully' do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/pytest_spec.rb
spec/overcommit/hook/pre_push/pytest_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::Pytest do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when pytest exits successfully' do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/go_test_spec.rb
spec/overcommit/hook/pre_push/go_test_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::GoTest do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when go test exits successfully' do let(:...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/base_spec.rb
spec/overcommit/hook/pre_push/base_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::Base do let(:remote_name) { 'origin' } let(:remote_ref_deletion?) { false } let(:config) { double('config') } let(:context) { double('context') } let(:hook) { described_class.new(config, context) } describe '#run?' do...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/brakeman_spec.rb
spec/overcommit/hook/pre_push/brakeman_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::Brakeman do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when brakeman exits successfully' do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_push/test_unit_spec.rb
spec/overcommit/hook/pre_push/test_unit_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PrePush::TestUnit do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context', all_files: ['test/foo_test.rb']) } subject { described_class.new(config, context) } context 'when test...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/post_commit/yarn_install_spec.rb
spec/overcommit/hook/post_commit/yarn_install_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PostCommit::YarnInstall do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:result) { double('result') } before do...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/post_commit/index_tags_spec.rb
spec/overcommit/hook/post_commit/index_tags_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PostCommit::IndexTags do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:execute_in_backgroun...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/post_commit/bundle_install_spec.rb
spec/overcommit/hook/post_commit/bundle_install_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PostCommit::BundleInstall do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:result) { double('result') } before ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/post_commit/commitplease_spec.rb
spec/overcommit/hook/post_commit/commitplease_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PostCommit::Commitplease do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:result) { double('result') } before d...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/post_commit/composer_install_spec.rb
spec/overcommit/hook/post_commit/composer_install_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PostCommit::ComposerInstall do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:result) { double('result') } befor...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/post_commit/bower_install_spec.rb
spec/overcommit/hook/post_commit/bower_install_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PostCommit::BowerInstall do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:result) { double('result') } before d...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/post_commit/git_guilt_spec.rb
spec/overcommit/hook/post_commit/git_guilt_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PostCommit::GitGuilt do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when git-guilt exits successfully' do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/post_commit/submodule_status_spec.rb
spec/overcommit/hook/post_commit/submodule_status_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PostCommit::SubmoduleStatus do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:submodule_status) { double('submodule...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/post_commit/npm_install_spec.rb
spec/overcommit/hook/post_commit/npm_install_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PostCommit::NpmInstall do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:result) { double('result') } before do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/prepare_commit_msg/base_spec.rb
spec/overcommit/hook/prepare_commit_msg/base_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'overcommit/hook_context/prepare_commit_msg' describe Overcommit::Hook::PrepareCommitMsg::Base do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { Overcommit::HookContext::PrepareCommitMsg.new(config, [], StringIO.n...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/prepare_commit_msg/replace_branch_spec.rb
spec/overcommit/hook/prepare_commit_msg/replace_branch_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'overcommit/hook_context/prepare_commit_msg' describe Overcommit::Hook::PrepareCommitMsg::ReplaceBranch do def checkout_branch(branch) allow(Overcommit::GitRepo).to receive(:current_branch).and_return(branch) end def new_config(opts = {}) defa...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/swift_lint_spec.rb
spec/overcommit/hook/pre_commit/swift_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::SwiftLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/bundle_audit_spec.rb
spec/overcommit/hook/pre_commit/bundle_audit_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::BundleAudit do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when Gemfile.lock is ignored' do a...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/merge_conflicts_spec.rb
spec/overcommit/hook/pre_commit/merge_conflicts_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::MergeConflicts do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } let(:staged_file) { 'filename.txt' } subject { described_class.new(config, ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/rake_target_spec.rb
spec/overcommit/hook/pre_commit/rake_target_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::RakeTarget do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'without targets parameters' do let(...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/rails_schema_up_to_date_spec.rb
spec/overcommit/hook/pre_commit/rails_schema_up_to_date_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::RailsSchemaUpToDate do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } let(:ruby_schema_file) { 'db/schema.rb' } let(:sql_schema_file) { ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/mdl_spec.rb
spec/overcommit/hook/pre_commit/mdl_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Mdl do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:result) { double('result') } before do resu...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/author_email_spec.rb
spec/overcommit/hook/pre_commit/author_email_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::AuthorEmail do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:result) { double('result') } shared_examp...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/execute_permissions_spec.rb
spec/overcommit/hook/pre_commit/execute_permissions_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::ExecutePermissions do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:staged_file) { 'filename.txt' } d...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/w3c_html_spec.rb
spec/overcommit/hook/pre_commit/w3c_html_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::W3cHtml do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:fake_exception) { Class.new(StandardError) } ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/hlint_spec.rb
spec/overcommit/hook/pre_commit/hlint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Hlint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:result) { double('result') } before do su...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/go_fmt_spec.rb
spec/overcommit/hook/pre_commit/go_fmt_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::GoFmt do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:files) do %w[ pkg1/file1.go pkg1...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/pronto_spec.rb
spec/overcommit/hook/pre_commit/pronto_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Pronto do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/nginx_test_spec.rb
spec/overcommit/hook/pre_commit/nginx_test_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::NginxTest do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:result) { double('result') } before do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/image_optim_spec.rb
spec/overcommit/hook/pre_commit/image_optim_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::ImageOptim do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).an...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/rails_best_practices_spec.rb
spec/overcommit/hook/pre_commit/rails_best_practices_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::RailsBestPractices do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_f...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/html_hint_spec.rb
spec/overcommit/hook/pre_commit/html_hint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::HtmlHint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/mix_format_spec.rb
spec/overcommit/hook/pre_commit/mix_format_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::MixFormat do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/yaml_syntax_spec.rb
spec/overcommit/hook/pre_commit/yaml_syntax_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::YamlSyntax do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:staged_file) { 'file1.yml' } before do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/html_tidy_spec.rb
spec/overcommit/hook/pre_commit/html_tidy_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::HtmlTidy do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/credo_spec.rb
spec/overcommit/hook/pre_commit/credo_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Credo do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_ret...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/rst_lint_spec.rb
spec/overcommit/hook/pre_commit/rst_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::RstLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:result) { double('result') } before do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/travis_lint_spec.rb
spec/overcommit/hook/pre_commit/travis_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::TravisLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).an...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/case_conflicts_spec.rb
spec/overcommit/hook/pre_commit/case_conflicts_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::CaseConflicts do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do Overcommit::GitRepo.stub(:initi...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/es_lint_spec.rb
spec/overcommit/hook/pre_commit/es_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::EsLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/slim_lint_spec.rb
spec/overcommit/hook/pre_commit/slim_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::SlimLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/bundle_check_spec.rb
spec/overcommit/hook/pre_commit/bundle_check_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::BundleCheck do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when Gemfile.lock is ignored' do a...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/coffee_lint_spec.rb
spec/overcommit/hook/pre_commit/coffee_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::CoffeeLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).an...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/code_spell_check_spec.rb
spec/overcommit/hook/pre_commit/code_spell_check_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::CodeSpellCheck do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/css_lint_spec.rb
spec/overcommit/hook/pre_commit/css_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::CssLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_r...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/fix_me_spec.rb
spec/overcommit/hook/pre_commit/fix_me_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::FixMe do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:staged_file) { 'filename.txt' } before do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/hadolint_spec.rb
spec/overcommit/hook/pre_commit/hadolint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Hadolint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } let(:applicable_files) { %w[Dockerfile Dockerfile.web] } subject { described_class.new(config, conte...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/line_endings_spec.rb
spec/overcommit/hook/pre_commit/line_endings_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::LineEndings do let(:config) do Overcommit::ConfigurationLoader.default_configuration.merge( Overcommit::Configuration.new( 'PreCommit' => { 'LineEndings' => { 'eol' => eol } ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/foodcritic_spec.rb
spec/overcommit/hook/pre_commit/foodcritic_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Foodcritic do let(:context) { double('context') } let(:result) { double(success?: true) } subject { described_class.new(config, context) } before do modified_files = applicable_files.map do |file| File.join(Ov...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/license_finder_spec.rb
spec/overcommit/hook/pre_commit/license_finder_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::LicenseFinder do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when license_finder exits succ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/dart_analyzer_spec.rb
spec/overcommit/hook/pre_commit/dart_analyzer_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::DartAnalyzer do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files)....
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/kt_lint_spec.rb
spec/overcommit/hook/pre_commit/kt_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::KtLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/r_spec_spec.rb
spec/overcommit/hook/pre_commit/r_spec_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::RSpec do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when rspec exits successfully' do let(:r...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/js_lint_spec.rb
spec/overcommit/hook/pre_commit/js_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::JsLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/chamber_compare_spec.rb
spec/overcommit/hook/pre_commit/chamber_compare_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::ChamberCompare do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/pylint_spec.rb
spec/overcommit/hook/pre_commit/pylint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Pylint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/erb_lint_spec.rb
spec/overcommit/hook/pre_commit/erb_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::ErbLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/golangci_lint_spec.rb
spec/overcommit/hook/pre_commit/golangci_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::GolangciLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:files) do %w[ pkg1/file1.go ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/berksfile_check_spec.rb
spec/overcommit/hook/pre_commit/berksfile_check_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::BerksfileCheck do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } context 'when Berksfile.lock is ignored' do ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/go_vet_spec.rb
spec/overcommit/hook/pre_commit/go_vet_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::GoVet do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_ret...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/ruby_lint_spec.rb
spec/overcommit/hook/pre_commit/ruby_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::RubyLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/xml_syntax_spec.rb
spec/overcommit/hook/pre_commit/xml_syntax_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'rexml/document' describe Overcommit::Hook::PreCommit::XmlSyntax do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:staged_file) { 'file...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/chamber_security_spec.rb
spec/overcommit/hook/pre_commit/chamber_security_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::ChamberSecurity do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicabl...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/forbidden_branches_spec.rb
spec/overcommit/hook/pre_commit/forbidden_branches_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::ForbiddenBranches do let(:default_config) { Overcommit::ConfigurationLoader.default_configuration } let(:branch_patterns) { ['master', 'release/*'] } let(:config) do default_config.merge( Overcommit::Configuratio...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/solargraph_spec.rb
spec/overcommit/hook/pre_commit/solargraph_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Solargraph do let(:config) do Overcommit::ConfigurationLoader.default_configuration.merge( Overcommit::Configuration.new( 'PreCommit' => { 'Solargraph' => { 'problem_on_unmodified_line' ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/json_syntax_spec.rb
spec/overcommit/hook/pre_commit/json_syntax_spec.rb
# frozen_string_literal: true require 'spec_helper' require 'json' describe Overcommit::Hook::PreCommit::JsonSyntax do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } let(:staged_file) { 'my_file.json' } subject { described_class.n...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/ts_lint_spec.rb
spec/overcommit/hook/pre_commit/ts_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::TsLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/terraform_format_spec.rb
spec/overcommit/hook/pre_commit/terraform_format_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::TerraformFormat do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_file...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/sorbet_spec.rb
spec/overcommit/hook/pre_commit/sorbet_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Sorbet do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/fasterer_spec.rb
spec/overcommit/hook/pre_commit/fasterer_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Fasterer do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } let(:applicable_files) { %w[file1.rb file2.rb] } subject { described_class.new(config, context) } ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/scss_lint_spec.rb
spec/overcommit/hook/pre_commit/scss_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::ScssLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/file_size_spec.rb
spec/overcommit/hook/pre_commit/file_size_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::FileSize do let(:config) do Overcommit::ConfigurationLoader.default_configuration.merge( Overcommit::Configuration.new( 'PreCommit' => { 'FileSize' => { 'size_limit_bytes' => 10 ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/ruby_syntax_spec.rb
spec/overcommit/hook/pre_commit/ruby_syntax_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::RubySyntax do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).an...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/js_hint_spec.rb
spec/overcommit/hook/pre_commit/js_hint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::JsHint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/jscs_spec.rb
spec/overcommit/hook/pre_commit/jscs_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Jscs do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_retu...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/shell_check_spec.rb
spec/overcommit/hook/pre_commit/shell_check_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::ShellCheck do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).an...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/go_lint_spec.rb
spec/overcommit/hook/pre_commit/go_lint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::GoLint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/sqlint_spec.rb
spec/overcommit/hook/pre_commit/sqlint_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::Sqlint do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).and_re...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/phpcs_fixer_spec.rb
spec/overcommit/hook/pre_commit/phpcs_fixer_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::PhpCsFixer do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:applicable_files).an...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/chamber_verification_spec.rb
spec/overcommit/hook/pre_commit/chamber_verification_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::ChamberVerification do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } before do subject.stub(:appli...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false
sds/overcommit
https://github.com/sds/overcommit/blob/11838c67483be9f12580e271f83dfcb07ad62a2c/spec/overcommit/hook/pre_commit/w3c_css_spec.rb
spec/overcommit/hook/pre_commit/w3c_css_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Overcommit::Hook::PreCommit::W3cCss do let(:config) { Overcommit::ConfigurationLoader.default_configuration } let(:context) { double('context') } subject { described_class.new(config, context) } let(:fake_exception) { Class.new(StandardError) } ...
ruby
MIT
11838c67483be9f12580e271f83dfcb07ad62a2c
2026-01-04T15:47:52.694838Z
false