[Style Guide] No recommendation about quoting or not element of an enumerable set of options

44 views
Skip to first unread message

David Racodon

unread,
Aug 12, 2015, 1:16:36 PM8/12/15
to Puppet Users
Hi,

The style guide is stating that "Quoting is optional when the string is an enumerable set of options (such as present/absent)". But it doesn't make any recommendations. Should those strings be unquoted so that it's easier to spot that it is an element of a set of options for instance? Should those strings be quoted instead? For instance, for better compatibility to future versions of the language. Any pros and cons are more than welcome so that I can enforce one way or the other by providing some arguments to the development teams.

Thank you very much

Regards,

David RACODON
Freelance QA Consultant

Johan De Wit

unread,
Aug 12, 2015, 3:11:29 PM8/12/15
to puppet...@googlegroups.com
Hi, 

For me, it has become a habit to NOT use qoutes with enumarable sets of options.  puppet-lint does not complain if unquoted or single quoted.
All examples I see in the official docs dont use quotes.  Just checked the forge also.  No quotes.

Hth
Johan
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/29e0a79e-5b05-461d-a72e-a8d6f3eb7101%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- 
Johan De Wit

Open Source Consultant  -- Open-Future

Red Hat Certified Engineer              (805008667232363)
Puppet Certified Professional 2013/2014/2015 (PCP0000006)
Puppet Certified Instructor
blog : http://johan.koewacht.net/   gsm: +32 474 42 40 73
_________________________________________________________
  

Upcoming Trainings:

Puppet Fundamentals | https://www.open-future.be/content/puppet-fundamentals-training-0

Puppet Architect | https://www.open-future.be/content/puppet-architect-training-0

Zabbix Certified Specialist | https://www.open-future.be/content/zabbix-certified-specialist-training-0

Zabbix Certified Professional | https://www.open-future.be/content/zabbix-certified-professional-training-0

Linux Training | https://www.open-future.be/content/linux-training-0

Subscribe to our newsletter: http://eepurl.com/BUG8H


David Racodon

unread,
Aug 14, 2015, 3:34:29 PM8/14/15
to puppet...@googlegroups.com
Hi Johan

Thanks for your feedback. I'll go this way then.

Regards,

David RACODON
Freelance QA Consultant

Reply all
Reply to author
Forward
0 new messages