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

shfmt -p (reformat in posix mode) #214

Open
wants to merge 1 commit into
base: v0.5
Choose a base branch
from
Open

shfmt -p (reformat in posix mode) #214

wants to merge 1 commit into from

Conversation

AnotherDroog
Copy link
Member

shfmt brings automated formatting to shell, and is written in golang

@meeDamian What is the best way to add this to Travis, to ensure it gets run before every commit?

@AnotherDroog AnotherDroog added the enhancement New feature or request label Apr 30, 2019
@AnotherDroog AnotherDroog self-assigned this Apr 30, 2019
@meeDamian
Copy link
Member

But travis happens after commits. I'm not sure what's the question. Locally you can add it to your git hooks - see .git/hooks/pre-commit.sample in any repo.

If that software has a check mode, you can also add it to the script run on Travis so that build always fails, if check fails.

/bin/mkdir /media/sd && \
/bin/mount /media/sd
echo "Create and mount ext4 filesystem"
/sbin/mkfs.ext4 -F /dev/${SD}p2 &&
Copy link
Member

Choose a reason for hiding this comment

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

Yyyyyy… Are you sure that the removal of the slashes here doesn't break the code?

@meeDamian
Copy link
Member

It removed all trailing slashes everywhere. I would guess it breaks the code, no?

@AnotherDroog
Copy link
Member Author

It removed all trailing slashes everywhere. I would guess it breaks the code, no?

@meeDamian I’ll check before merging. Maybe the && counts as a line continuation?

@nolim1t nolim1t added the help wanted Extra attention is needed label Aug 19, 2019
@nolim1t
Copy link
Member

nolim1t commented Oct 7, 2019

This might be useful but can we salvage some of this or close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants