Jakov Sosic
2012-Aug-20 17:24 UTC
[Puppet Users] puppet-lint and 80 characters line limit?
Hi. I''m getting lots of warning like this one from puppet-lint: WARNING: line 67 has more than 80 characters Now, I don''t like warnings, so any idea how should I rewrite this line for example, to void the warning? package {''rpmforge-release'': ensure => ''0.5.2-2.el6.rf'', provider => ''rpm'', source => ''http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm'', } Is it possible to break links into two lines? -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
llowder
2012-Aug-20 17:44 UTC
[Puppet Users] Re: puppet-lint and 80 characters line limit?
On Monday, August 20, 2012 12:24:59 PM UTC-5, Jakov Sosic wrote:> > Hi. > > I''m getting lots of warning like this one from puppet-lint: > > WARNING: line 67 has more than 80 characters > > Now, I don''t like warnings, so any idea how should I rewrite this line > for example, to void the warning? > > package {''rpmforge-release'': > ensure => ''0.5.2-2.el6.rf'', > provider => ''rpm'', > source => > '' > http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm'', > > } > > Is it possible to break links into two lines? > > >You have 2 options. One is to use the --no-80chars-check option. This is what I do. The other option is to use the line continuation character, which (I think) is a slash ( \ ) followed by a newline. Keep in mind that any spaces on the next line will be included in the string. I don''t like this option because I feel it decreases readability.> > > > > -- > Jakov Sosic > www.srce.unizg.hr >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ZZzLZXjGpHIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Tim Mooney
2012-Aug-20 18:21 UTC
Re: [Puppet Users] puppet-lint and 80 characters line limit?
In regard to: [Puppet Users] puppet-lint and 80 characters line limit?,...:> I''m getting lots of warning like this one from puppet-lint: > > WARNING: line 67 has more than 80 characters > > Now, I don''t like warnings, so any idea how should I rewrite this line > for example, to void the warning? > > package {''rpmforge-release'': > ensure => ''0.5.2-2.el6.rf'', > provider => ''rpm'', > source => > ''http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm'', > } > > Is it possible to break links into two lines?I asked the same question on May 21st, check the group archives for the thread and some options. I believe the subject was "linting manifests with long lines". My solution: 01:20 PM dogbert ~$ cat ~/.puppet-lintrc --no-80chars-check Tim -- Tim Mooney Tim.Mooney@ndsu.edu Enterprise Computing & Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701-231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jakov Sosic
2012-Aug-20 19:13 UTC
Re: [Puppet Users] puppet-lint and 80 characters line limit?
On 08/20/2012 08:21 PM, Tim Mooney wrote:> I asked the same question on May 21st, check the group archives for the > thread and some options. I believe the subject was "linting manifests > with long lines". > > My solution: > > 01:20 PM dogbert ~$ cat ~/.puppet-lintrc --no-80chars-checkOh, I had old version of puppet-lint which didn''t have options at all :D Now I''ve built RPM for latest rubygem and it works now. Thank you. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jakov Sosic
2012-Aug-20 19:14 UTC
Re: [Puppet Users] Re: puppet-lint and 80 characters line limit?
On 08/20/2012 07:44 PM, llowder wrote:> The other option is to use the line continuation character, which (I > think) is a slash ( \ ) followed by a newline. Keep in mind that any > spaces on the next line will be included in the string. I don''t like > this option because I feel it decreases readability.Yeah, I would rather avoid that... Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.