fn(content$0, state$1) =>
match $0 {
#create_account(account$2) =>
match @core.equal(left: @core.string-length(value: $2.account_name), right: 0) {
true =>
[#empty_account_name<@core.event-rejection>],
false =>
[]
},
#project_commit(commit$3) =>
@core.list-concat(
left: match $1.account_created {
true =>
[],
false =>
[#account_not_created<@core.event-rejection>]
},
right: @core.list-concat(
left: match @core.equal(left: @core.string-length(value: $3.project_name), right: 0) {
true =>
[#empty_project_name<@core.event-rejection>],
false =>
[]
},
right: @core.list-concat(
left: match @core.equal(left: @core.string-length(value: $3.branch), right: 0) {
true =>
[#empty_branch_name<@core.event-rejection>],
false =>
[]
},
right: @core.list-concat(
left: @core.list-concat(
left: @core.check-event-branch(commit: $3, state: $1),
right: @core.check-event-merge(commit: $3, state: $1)
),
right: @core.check-event-module-names(modules: $3.modules, others: $1.modules_in_other_projects, seen: [], index: 0)
)
)
)
)
}