Skip to content

Commit

Permalink
Merge pull request #390 from umts/werebus/overcommit
Browse files Browse the repository at this point in the history
Add overcommit
  • Loading branch information
werebus authored Feb 10, 2025
2 parents 9d86ff8 + adf7e38 commit cfdb983
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@
/coverage/.resultset.*

/spec/examples.txt

# Local overcommit configuration
.local-overcommit.yml
19 changes: 19 additions & 0 deletions .overcommit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
PreCommit:
ALL:
problem_on_unmodified_line: ignore
skip_if: ["test", "-f", ".git/MERGE_HEAD"]
ForbiddenBranches:
enabled: true
branch_patterns: ["master", "main"]
HamlLint:
enabled: true
on_warn: fail
required_executable: bundle
command: ["bundle", "exec", "haml-lint"]
RuboCop:
enabled: true
required_executable: bundle
command: ["bundle", "exec", "rubocop"]
CommitMsg:
ALL:
enabled: false
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ group :development do
gem 'capistrano-rails', require: false
gem 'ed25519', require: false
gem 'haml_lint', require: false
gem 'overcommit', require: false
gem 'rubocop', require: false
gem 'rubocop-capybara', require: false
gem 'rubocop-factory_bot', require: false
Expand Down
8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ GEM
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
childprocess (5.1.0)
logger (~> 1.5)
concurrent-ruby (1.3.5)
connection_pool (2.5.0)
crass (1.0.6)
Expand Down Expand Up @@ -171,6 +173,7 @@ GEM
actionpack (>= 6.0.0)
activesupport (>= 6.0.0)
railties (>= 6.0.0)
iniparse (1.5.0)
io-console (0.8.0)
irb (1.15.1)
pp (>= 0.6.0)
Expand Down Expand Up @@ -230,6 +233,10 @@ GEM
racc (~> 1.4)
orm_adapter (0.5.0)
ostruct (0.6.1)
overcommit (0.66.0)
childprocess (>= 0.6.3, < 6)
iniparse (~> 1.4)
rexml (>= 3.3.9)
paper_trail (16.0.0)
activerecord (>= 6.1)
request_store (~> 1.4)
Expand Down Expand Up @@ -437,6 +444,7 @@ DEPENDENCIES
listen
mysql2
nokogiri
overcommit
paper_trail
puma
rails (~> 7.1.5)
Expand Down

0 comments on commit cfdb983

Please sign in to comment.