mirror of
https://github.com/serokell/xrefcheck.git
synced 2024-09-11 13:37:36 +03:00
Problem: it would be helpful to have checks for common rules on styling commits and stuff, to avoid checking those manually every time. Solution: add Danger checks, mostly the same we had in Morley.
17 lines
395 B
Ruby
17 lines
395 B
Ruby
# SPDX-FileCopyrightText: 2022 Oxhead Alpha
|
|
# SPDX-License-Identifier: LicenseRef-MIT-OA
|
|
|
|
# Checks that are fine to fail during development, but must be fixed before merging.
|
|
|
|
require_relative 'helpers'
|
|
|
|
# Fixup commits
|
|
if git.commits.any? &:fixup?
|
|
fail "Some fixup commits are still there."
|
|
end
|
|
|
|
# Work-in-progress commits
|
|
if git.commits.any? &:wip?
|
|
fail "WIP commits are still there."
|
|
end
|