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

Add rebar3 formatting #5

Merged
merged 7 commits into from
Apr 16, 2020
Merged

Add rebar3 formatting #5

merged 7 commits into from
Apr 16, 2020

Conversation

elbrujohalcon
Copy link
Contributor

No description provided.

TargetAPI :: string() | undefined, % e.g., "DynamoDB_20120810.CreateTable"
Method :: string(), % e.g., "GET", "POST"
Path :: string(),
Service :: string(),

Choose a reason for hiding this comment

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

the comments were deleted :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

…by hand, yes… I could've just moved them but I thought they pretty much stated the obvious.

[Credentials] ->
MinLifetime = ?MIN_LIFETIME,
case remaining_lifetime(Credentials) of
N when N =< MinLifetime ->

Choose a reason for hiding this comment

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

case indentation is 2 and the statement body is actually 4, is that expected?

Choose a reason for hiding this comment

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

Well, it seems that that's the case for all cases, so, I guess it's expected

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's expected and configurable: it's called sub_indent, the default is 2 but we can use 4 to match the rest of the indentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should be consistent across projects, tho… and we're using the default for spillway, mero, etc…

src/erliam_srv.erl Outdated Show resolved Hide resolved
src/erliam_xml.erl Outdated Show resolved Hide resolved
@elbrujohalcon elbrujohalcon merged commit 9129594 into master Apr 16, 2020
@elbrujohalcon elbrujohalcon deleted the rebar3-format-verify branch April 16, 2020 07:17
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.

3 participants