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

Reindent files. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Reindent files. #2

wants to merge 1 commit into from

Conversation

mthibaut
Copy link

This only reindents files to two spaces per block, no code has been changed.

Copy link

@KenjiTakahashi KenjiTakahashi left a comment

Choose a reason for hiding this comment

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

Hello, thanks for the PR and sorry for such a long delay!

I very much understand the premise to standardize the indents. It is kinda crazy to work on this, when every file seems to be written in completely different style ;-].

You've used some kind of tool to achieve this, right? It seems that it got confused in a couple of places. Apart from these, it looks fine.

net0: network,
description: desc,
agent: get_rest_boolean(config.qemu_agent),
pool: config.pool

Choose a reason for hiding this comment

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

These do not seem correct?

cpuunits: config.lxc_cpuunits,
swap: config.lxc_swap,
tty: config.lxc_tty,
pool: config.pool

Choose a reason for hiding this comment

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

Same here.

.flatten
.select { |ip| ip[:'ip-address-type'] == 'ipv4' }
.map { |ip| ip[:'ip-address'] }
.first

Choose a reason for hiding this comment

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

I'd say that these should stay indented, so that we know they're part of the chain and not separate statements.

.first
.select { |m| m[:id] =~ /^[a-z]*\/#{vm_id}$/ }
.map { |m| { id: vm_id, type: /^(.*)\/(.*)$/.match(m[:id])[1], node: m[:node] } }
.first

Choose a reason for hiding this comment

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

Same here.

params[:protection] = get_rest_boolean(config.lxc_protection)
params[:console] = get_rest_boolean(config.lxc_console)
add_lxc_network_config(env, params)
add_lxc_mount_points(env, config, params)

Choose a reason for hiding this comment

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

And here it seemed to have got confused by \ at :113. The indent should stay as it was. [The usage of \ is ugly, but I'm not the one to blame here ;-).]

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.

2 participants