Ask Your Question
0

Mysterious "=> alignment" problem

asked 2015-05-25 12:40:23 -0500

tianyin gravatar image

Hi,

I'm new to Puppet forge, and I'm learning to publish my first simple module: https://forge.puppetlabs.com/tianyin/...

After I published it, I found the module page showing a warning "Indentation of => is not properly aligned." https://forge.puppetlabs.com/tianyin/...

However, I checked my manifest files and I didn't find anywhere => is not aligned (in fact I tuned them a couple times just to pass the style test)...

I also run puppet-lint locally and it does not show any warnings.

Does anyone encounter the same warning? Or did I miss something to make the style correct? :-(

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2015-05-26 19:41:08 -0500

updated 2015-05-26 19:41:32 -0500

What version of puppet-lint are you using locally to test this?

In puppet-lint version 1.0.0 the arrow alignment check was made stricter:

The arrow_alignment check now throws a warning if the arrows aren’t aligned as close to the parameter name as possible.

I believe that's your issue.

edit flag offensive delete link more

Comments

My puppet-lint version is 0.1.4 (the default from ubuntu)...T_T hmmm, it's time to update! Thanks a lot, Alex!

tianyin gravatar imagetianyin ( 2015-05-26 20:29:53 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-05-25 12:40:23 -0500

Seen: 439 times

Last updated: May 26 '15