detached 4128564

chore(lint): satisfy golangci for resize follow-ups

commit
4128564e006d66b4eb3980ef31d15c719c93fff2
author
brice · · 2026-05-21 07:03 UTC
parent
5fef01b
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
3 files · +19 -6
M internal/infrastructure/cef/webview_viewport.go +8 -2
@@ -291,7 +291,10 @@ func (wv *WebView) shouldDeferPendingBrowserCreateFromViewportSync() bool {
291291 return wv != nil && wv.awaitsNativePopupAttachment()
292292 }
293293
294-func pendingBrowserCreateObservedSize(bridge pendingBrowserCreateObservedSizeBridge, allocatedWidth, allocatedHeight int32) (observedWidth, observedHeight int32, ready bool) {
294+func pendingBrowserCreateObservedSize(
295+ bridge pendingBrowserCreateObservedSizeBridge,
296+ allocatedWidth, allocatedHeight int32,
297+) (observedWidth, observedHeight int32, ready bool) {
295298 if bridge == nil {
296299 return 0, 0, false
297300 }
@@ -332,7 +335,10 @@ func abs32(v int32) int32 {
332335 // It returns the current attempt count and the resulting action. Scheduling is
333336 // coalesced so only one delayed retry is pending at a time, while the max-retry
334337 // path proceeds without leaving the scheduled flag set.
335-func (wv *WebView) preparePendingBrowserCreateObservedSizeRetry(ctx context.Context, reason string) (attempt int, action pendingBrowserCreateObservedSizeRetryAction) {
338+func (wv *WebView) preparePendingBrowserCreateObservedSizeRetry(
339+ ctx context.Context,
340+ reason string,
341+) (attempt int, action pendingBrowserCreateObservedSizeRetryAction) {
336342 if wv == nil {
337343 return 0, pendingBrowserCreateObservedSizeRetryUnavailable
338344 }
@@ -291,7 +291,10 @@ func (wv *WebView) shouldDeferPendingBrowserCreateFromViewportSync() bool {
291 return wv != nil && wv.awaitsNativePopupAttachment()291 return wv != nil && wv.awaitsNativePopupAttachment()
292 }292 }
293 293
294-func pendingBrowserCreateObservedSize(bridge pendingBrowserCreateObservedSizeBridge, allocatedWidth, allocatedHeight int32) (observedWidth, observedHeight int32, ready bool) {294+func pendingBrowserCreateObservedSize(
295+ bridge pendingBrowserCreateObservedSizeBridge,
296+ allocatedWidth, allocatedHeight int32,
297+) (observedWidth, observedHeight int32, ready bool) {
295 if bridge == nil {298 if bridge == nil {
296 return 0, 0, false299 return 0, 0, false
297 }300 }
@@ -332,7 +335,10 @@ func abs32(v int32) int32 {
332 // It returns the current attempt count and the resulting action. Scheduling is335 // It returns the current attempt count and the resulting action. Scheduling is
333 // coalesced so only one delayed retry is pending at a time, while the max-retry336 // coalesced so only one delayed retry is pending at a time, while the max-retry
334 // path proceeds without leaving the scheduled flag set.337 // path proceeds without leaving the scheduled flag set.
335-func (wv *WebView) preparePendingBrowserCreateObservedSizeRetry(ctx context.Context, reason string) (attempt int, action pendingBrowserCreateObservedSizeRetryAction) {338+func (wv *WebView) preparePendingBrowserCreateObservedSizeRetry(
339+ ctx context.Context,
340+ reason string,
341+) (attempt int, action pendingBrowserCreateObservedSizeRetryAction) {
336 if wv == nil {342 if wv == nil {
337 return 0, pendingBrowserCreateObservedSizeRetryUnavailable343 return 0, pendingBrowserCreateObservedSizeRetryUnavailable
338 }344 }
M internal/infrastructure/config/loader.go +5 -1
@@ -159,7 +159,11 @@ func (m *Manager) transformLegacyConfig() {
159159 rawConfig := m.viper.AllSettings()
160160 transformer := NewLegacyConfigTransformer()
161161 transformer.TransformLegacyActions(rawConfig)
162- transformer.TransformLegacyEngineConfigWithExplicitAdaptive(rawConfig, m.hasExplicitAdaptiveWindowlessFrameRateSetting(), m.viper.GetBool("engine.cef.adaptive_windowless_frame_rate"))
162+ transformer.TransformLegacyEngineConfigWithExplicitAdaptive(
163+ rawConfig,
164+ m.hasExplicitAdaptiveWindowlessFrameRateSetting(),
165+ m.viper.GetBool("engine.cef.adaptive_windowless_frame_rate"),
166+ )
163167
164168 // AllSettings includes defaults, so workspace.browsing_contexts may already be
165169 // present even when the user only configured legacy workspace.popups. Always
@@ -159,7 +159,11 @@ func (m *Manager) transformLegacyConfig() {
159 rawConfig := m.viper.AllSettings()159 rawConfig := m.viper.AllSettings()
160 transformer := NewLegacyConfigTransformer()160 transformer := NewLegacyConfigTransformer()
161 transformer.TransformLegacyActions(rawConfig)161 transformer.TransformLegacyActions(rawConfig)
162- transformer.TransformLegacyEngineConfigWithExplicitAdaptive(rawConfig, m.hasExplicitAdaptiveWindowlessFrameRateSetting(), m.viper.GetBool("engine.cef.adaptive_windowless_frame_rate"))162+ transformer.TransformLegacyEngineConfigWithExplicitAdaptive(
163+ rawConfig,
164+ m.hasExplicitAdaptiveWindowlessFrameRateSetting(),
165+ m.viper.GetBool("engine.cef.adaptive_windowless_frame_rate"),
166+ )
163 167
164 // AllSettings includes defaults, so workspace.browsing_contexts may already be168 // AllSettings includes defaults, so workspace.browsing_contexts may already be
165 // present even when the user only configured legacy workspace.popups. Always169 // present even when the user only configured legacy workspace.popups. Always
M internal/infrastructure/config/transform_legacy.go +6 -3
@@ -49,7 +49,10 @@ func (t *LegacyConfigTransformer) TransformLegacyEngineConfig(rawConfig map[stri
4949 t.transformLegacyEngineConfig(rawConfig, hasAdaptive, adaptiveEnabled)
5050 }
5151
52-func (t *LegacyConfigTransformer) TransformLegacyEngineConfigWithExplicitAdaptive(rawConfig map[string]any, hasAdaptive bool, adaptiveEnabled bool) {
52+func (t *LegacyConfigTransformer) TransformLegacyEngineConfigWithExplicitAdaptive(
53+ rawConfig map[string]any,
54+ hasAdaptive, adaptiveEnabled bool,
55+) {
5356 t.transformLegacyEngineConfig(rawConfig, hasAdaptive, adaptiveEnabled)
5457 }
5558
@@ -91,8 +94,8 @@ func nestedConfigBoolValue(rawConfig map[string]any, path ...string) (bool, bool
9194 return false, false
9295 }
9396 if i == len(path)-1 {
94- parsed, ok := value.(bool)
95- return parsed, ok
97+ parsed, parsedOK := value.(bool)
98+ return parsed, parsedOK
9699 }
97100 next, ok := value.(map[string]any)
98101 if !ok {
@@ -49,7 +49,10 @@ func (t *LegacyConfigTransformer) TransformLegacyEngineConfig(rawConfig map[stri
49 t.transformLegacyEngineConfig(rawConfig, hasAdaptive, adaptiveEnabled)49 t.transformLegacyEngineConfig(rawConfig, hasAdaptive, adaptiveEnabled)
50 }50 }
51 51
52-func (t *LegacyConfigTransformer) TransformLegacyEngineConfigWithExplicitAdaptive(rawConfig map[string]any, hasAdaptive bool, adaptiveEnabled bool) {52+func (t *LegacyConfigTransformer) TransformLegacyEngineConfigWithExplicitAdaptive(
53+ rawConfig map[string]any,
54+ hasAdaptive, adaptiveEnabled bool,
55+) {
53 t.transformLegacyEngineConfig(rawConfig, hasAdaptive, adaptiveEnabled)56 t.transformLegacyEngineConfig(rawConfig, hasAdaptive, adaptiveEnabled)
54 }57 }
55 58
@@ -91,8 +94,8 @@ func nestedConfigBoolValue(rawConfig map[string]any, path ...string) (bool, bool
91 return false, false94 return false, false
92 }95 }
93 if i == len(path)-1 {96 if i == len(path)-1 {
94- parsed, ok := value.(bool)97+ parsed, parsedOK := value.(bool)
95- return parsed, ok98+ return parsed, parsedOK
96 }99 }
97 next, ok := value.(map[string]any)100 next, ok := value.(map[string]any)
98 if !ok {101 if !ok {

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 8

Tags 42

↑↓ moveenter openesc close