Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indentation #646

Closed
wants to merge 1 commit into from
Closed

Conversation

ekaitz-zarraga
Copy link
Contributor

No description provided.

@lassik
Copy link
Contributor

lassik commented May 26, 2020

This finds all the inadvertent uses of tabs instead of spaces in Chibi source:

git ls-files | grep -vi 'm*k*file' | xargs file | grep ' text' | cut -d : -f 1 | xargs grep -n '\t'

@ashinn
Copy link
Owner

ashinn commented May 27, 2020

Thanks for catching this, I fixed it in another commit.

I may add some git hooks for basic formatting checks.

@lassik's suggestion is good too, though I would refine to:

git ls-files | egrep -vi '(ma?ke?file|\.txt$)' | xargs file | grep ' text' | cut -d : -f 1 | xargs grep -n $'\t'

@ashinn ashinn closed this May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants