Skip to content

Instantly share code, notes, and snippets.

MergeConflicts:
enabled: false
description: 'Check for merge conflicts'
quiet: true
required_executable: 'grep'
flags: ['-IHn', "^<<<<<<<[ \t]"]
@wshihadeh
wshihadeh / ForbiddenBranches.yaml
Created May 12, 2020 08:11
ForbiddenBranches
ForbiddenBranches:
enabled: false
description: 'Check for commit to forbidden branch'
quiet: true
branch_patterns: ['master']
FileSize:
enabled: false
description: 'Check for oversized files'
size_limit_bytes: 1_000_000
FixMe:
enabled: false
description: 'Check for "token" strings'
required_executable: 'grep'
flags: ['-IEHnw']
keywords: ['BROKEN', 'BUG', 'ERROR', 'FIXME', 'HACK', 'NOTE', 'OPTIMIZE', 'REVIEW', 'TODO', 'WTF', 'XXX']
exclude:
- '.overcommit.yml'
CaseConflicts:
enabled: false
description: 'Check for case-insensitivity conflicts'
BundleOutdated:
enabled: false
description: 'List installed gems with newer versions available'
required_executable: 'bundle'
flags: ['outdated', '--strict', '--parseable']
install_command: 'gem install bundler'
BundleAudit:
enabled: false
description: 'Check for vulnerable versions of gems'
required_executable: 'bundle-audit'
install_command: 'gem install bundler-audit'
AuthorName:
enabled: false
description: 'Check for author name'
requires_files: false
AuthorEmail:
enabled: false
description: 'Check author email'
requires_files: false
pattern: '^[^@][email protected]'