Skip to content

[wordy] Lint example to pass shellcheck - #960

Open
IsaacG wants to merge 1 commit into
exercism:mainfrom
IsaacG:lint.ex.wordy
Open

IsaacG wants to merge 1 commit into
exercism:mainfrom
IsaacG:lint.ex.wordy

Conversation

@IsaacG

@IsaacG IsaacG commented Nov 22, 2026

Copy link
Copy Markdown
Member

No description provided.

@IsaacG IsaacG added x:action/fix Fix an issue x:size/tiny Tiny amount of work x:rep/tiny Tiny amount of reputation x:module/practice-exercise Work on Practice Exercises labels Nov 22, 2026
Comment on lines +46 to +52
case $op in
'+') q=$(( a + b ));;
'-') q=$(( a - b ));;
'*') q=$(( a * b ));;
'/') q=$(( a / b ));;
esac
[[ -n $rest ]] && q+=" $rest"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's happening with the indentation here? Spaces not tabs please.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My vimrc file is overdue for a fix here. Fixed!

I must be writing too much Go. That's Go-style case indentation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've learned that setlocal is useful for isolating settings to the current file (or buffer or window or whatever)

setlocal sw=4 ts=4
setlocal noexpandtab

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a handy trick!
PR updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:action/fix Fix an issue x:module/practice-exercise Work on Practice Exercises x:rep/tiny Tiny amount of reputation x:size/tiny Tiny amount of work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants