main ae76d4b

review.go RawHistoryFolder

1package http
2
3import "example.com/project/internal/domain"
4
5func ResolveMethod(id domain.ObjectID) bool { // want "suspicious-business-logic-in-adapter"
6	if id.IsFull() {
7		return true
8	}
9	if id.String() == "" {
10		return false
11	}
12	return false
13}
14func ResolveFree(id domain.ObjectID) bool { // want "suspicious-business-logic-in-adapter"
15	if domain.Allowed(id) {
16		return true
17	}
18	if id.String() == "" {
19		return false
20	}
21	return false
22}
23func ResolveBoolSet(id domain.ObjectID, seen map[string]bool) bool { // want "suspicious-business-logic-in-adapter"
24	if _, ok := seen[id.String()]; ok {
25		return true
26	}
27	if id.String() == "" {
28		return false
29	}
30	return false
31}
32func ResolveStructSet(id domain.ObjectID, seen map[string]struct{}) bool { // want "suspicious-business-logic-in-adapter"
33	if _, ok := seen[id.String()]; !ok {
34		return false
35	}
36	if id.String() == "" {
37		return false
38	}
39	return true
40}
41func ResolveUnusedMembership(id domain.ObjectID, seen map[string]struct{}, other bool) bool {
42	if _, ok := seen[id.String()]; other {
43		_ = ok
44		return true
45	}
46	return false
47}
48func ResolveStringMax(l domain.Limits) bool {
49	if l.MaxLabel == "" {
50		return false
51	}
52	if l.MaxLabel > "a" {
53		return true
54	}
55	return false
56}
57func ResolveBoolMax(l domain.Limits) bool {
58	if l.MaxEnabled == true {
59		return false
60	}
61	if !l.MaxEnabled {
62		return true
63	}
64	return false
65}
66func ResolveNumericEquality(l domain.Limits) bool {
67	if l.Budget == 0 {
68		return false
69	}
70	if l.Budget != 1 {
71		return true
72	}
73	return false
74}
75func ResolveNumericField(l domain.Limits) bool { // want "suspicious-business-logic-in-adapter"
76	if l.Budget > 0 {
77		return true
78	}
79	if l.Budget < 1 {
80		return false
81	}
82	return false
83}
84func ResolveNumericVar(n int) bool { // want "suspicious-business-logic-in-adapter"
85	if n > domain.Budget {
86		return true
87	}
88	if n < 1 {
89		return false
90	}
91	return false
92}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 5

↑↓ moveenter openesc close