Skip to content

Clean up output formatting and support colorizing FQL results #455

Clean up output formatting and support colorizing FQL results

Clean up output formatting and support colorizing FQL results #455

Triggered via pull request December 9, 2024 21:32
Status Success
Total duration 27s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 8 warnings
/home/runner/work/fauna-shell/fauna-shell/test/login.mjs.login can login: test/login.mjs#L116
expected stdout to have been called with arguments 'To login, open your browser to:\n http://dashboard-url.com' '"To login, open your browser to:\\nhttp://dashboard-url.com"' '"To login, open your browser to:\\n http://dashboard-url.com"'
/home/runner/work/fauna-shell/fauna-shell/test/login.mjs.login overwrites credentials on login: test/login.mjs#L153
expected stdout to have been called with arguments 'Login Success!\n' '"To login, open your browser to:\\nhttp://dashboard-url.com"' '"Login Success!\\n"'
/home/runner/work/fauna-shell/fauna-shell/test/shell.mjs.shell common history can be navigated through: test/shell.mjs#L133
expected '\u001b[1G\u001b[0J> 2\u001b[4G\u001b[…' to equal '\u001b[1G\u001b[0J> 2\u001b[4G'
/home/runner/work/fauna-shell/fauna-shell/test/shell.mjs.shell common history can be cleared: test/shell.mjs#L190
expected '.clearhistory\r\nHistory cleared\n\u0…' to equal '.clearhistory\r\nHistory cleared\n\u0…'
/home/runner/work/fauna-shell/fauna-shell/test/shell.mjs.shell v10 can open a shell and run several queries: test/shell.mjs#L269
expected 'Type Ctrl+D or .exit to exit the shel…' to equal 'Type Ctrl+D or .exit to exit the shel…'
/home/runner/work/fauna-shell/fauna-shell/test/login.mjs.login can login: test/login.mjs#L116
expected stdout to have been called with arguments 'To login, open your browser to:\n http://dashboard-url.com' '"To login, open your browser to:\\nhttp://dashboard-url.com"' '"To login, open your browser to:\\n http://dashboard-url.com"'
/home/runner/work/fauna-shell/fauna-shell/test/login.mjs.login overwrites credentials on login: test/login.mjs#L153
expected stdout to have been called with arguments 'Login Success!\n' '"To login, open your browser to:\\nhttp://dashboard-url.com"' '"Login Success!\\n"'
/home/runner/work/fauna-shell/fauna-shell/test/shell.mjs.shell common history can be navigated through: test/shell.mjs#L133
expected '\u001b[1G\u001b[0J> 2\u001b[4G\u001b[…' to equal '\u001b[1G\u001b[0J> 2\u001b[4G'
/home/runner/work/fauna-shell/fauna-shell/test/shell.mjs.shell common history can be cleared: test/shell.mjs#L190
expected '.clearhistory\r\nHistory cleared\n\u0…' to equal '.clearhistory\r\nHistory cleared\n\u0…'
/home/runner/work/fauna-shell/fauna-shell/test/shell.mjs.shell v10 can open a shell and run several queries: test/shell.mjs#L269
expected 'Type Ctrl+D or .exit to exit the shel…' to equal 'Type Ctrl+D or .exit to exit the shel…'
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint: src/lib/auth/accountKeys.mjs#L85
Unexpected 'todo' comment: 'TODO: track ttl for account and refresh...'
lint: src/lib/auth/credentials.mjs#L57
Unexpected 'todo' comment: 'TODO: set expiration'
lint: src/lib/auth/oauth-client.mjs#L56
Method '_handleRequest' has a complexity of 13. Maximum allowed is 10
lint: src/lib/fauna-account-client.mjs#L135
Unexpected 'todo' comment: 'TODO: get/set expiration details'
lint: src/lib/fauna-account-client.mjs#L152
Unexpected 'todo' comment: 'TODO: get/set expiration details'
lint: src/lib/middleware.mjs#L45
Unexpected 'todo' comment: 'TODO: figure out upgrade path for SEA...'
lint: test/schema/commit.mjs#L94
Unexpected 'todo' comment: 'TODO: what are the valid statuses?...'