Skip to content

Commit d9e9e5f

Browse files
committed
chore: linting and style check
1 parent 9e15e03 commit d9e9e5f

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
sudo apt-get install luarocks -y
1515
sudo luarocks install luacheck
1616
- name: Lint
17-
run: luacheck lua/ --globals vim
17+
run: luacheck lua/ --globals vim --ignore 4*

lua/ledger/tui/init.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ end
3737

3838
function LedgerTui:shutdown()
3939
self.layout:restore_window_options()
40-
self.layout:close_buffer(self.layout.reports_buf)
41-
self.layout:close_buffer(self.layout.help_buf)
42-
self.layout:close_buffer(self.layout.hint_buf)
43-
self.layout:close_buffer(self.layout.output_buf)
44-
self.layout:close_buffer(self.layout.filters_buf)
40+
self.layout.close_buffer(self.layout.reports_buf)
41+
self.layout.close_buffer(self.layout.help_buf)
42+
self.layout.close_buffer(self.layout.hint_buf)
43+
self.layout.close_buffer(self.layout.output_buf)
44+
self.layout.close_buffer(self.layout.filters_buf)
4545
self.running = false
4646
end
4747

lua/ledger/tui/layout.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function LedgerTuiLayout.set_buffer_options()
5151
end
5252

5353
--- @param buffer integer
54-
function LedgerTuiLayout:close_buffer(buffer)
54+
function LedgerTuiLayout.close_buffer(buffer)
5555
if buffer == nil then
5656
return
5757
end
@@ -477,10 +477,6 @@ local function focus_reports()
477477
end
478478
end
479479

480-
function LedgerTuiLayout:focus_reports()
481-
focus_reports()
482-
end
483-
484480
local function focus_filters()
485481
local layout = require("ledger.tui.layout").get()
486482

0 commit comments

Comments
 (0)