jms1
10/01/2025, 8:29 PMpuppet-lint option corresponds to each error message? http://puppet-lint.com/checks/ is not complete ... (2) a concrete example of how to enable or disable items in the .puppet-lint.rc file, using the PDK .sync.yml file? ... i found https://github.com/puppetlabs/pdk/issues/538 which seems to say this functionality exists but doesn't have any details, and https://github.com/puppetlabs/pdk-templates/blob/main/README.md which mentions it as something that has to be done by customizing Rakefile, but again, no usable details.jms1
10/01/2025, 8:31 PMpdk (WARNING): puppet-lint: indentation of => is not properly aligned (expected in column 11, but found it in column 12) and pdk (WARNING): puppet-lint: indent should be 2 chars and is 6kenyon
10/01/2025, 8:33 PMjms1
10/01/2025, 8:34 PMpdk (WARNING): puppet-lint: optional parameter listed before required parameter ... seriously, what's the reason for this check, other than to satisfy some stranger's preferences?kenyon
10/01/2025, 8:35 PM=> indentation might not be the bug in strict_indent I was thinking ofjms1
10/01/2025, 8:36 PM.puppet-lint.rc in order to disable or modify that check? ... and (2), what do i need to put into .sync.yml so that PDK will create .puppet-lint.rc with those options?kenyon
10/01/2025, 8:37 PM=> indentation sounds like a core check thoughjms1
10/01/2025, 8:38 PM(filename:line:col) at the endkenyon
10/01/2025, 8:42 PMjms1
10/01/2025, 8:47 PM=> ... i also believe in leaving blank lines between objects, to make it easier to see where one object ends and the next one beginsjms1
10/01/2025, 8:48 PMjms1
10/01/2025, 8:49 PMbastelfreak
10/01/2025, 8:51 PMbastelfreak
10/01/2025, 8:53 PMjms1
10/01/2025, 8:54 PMjms1
10/01/2025, 8:54 PM.sync.yml file to make them disabled?bastelfreak
10/01/2025, 8:55 PMbastelfreak
10/01/2025, 8:56 PMjms1
10/01/2025, 9:00 PMpuppet-lint just plain doesn't have a way to disable the indentation checks ... it should be safe to assume that an option which disables an indentation check would have the word indent in it, and puppet-lint --help | grep -i indent doesn't print anything at allbastelfreak
10/01/2025, 9:01 PMbastelfreak
10/01/2025, 9:02 PMkenyon
10/01/2025, 9:02 PMjms1
10/01/2025, 9:02 PMpuppet-lint --help doesn't list any option for that, and http://puppet-lint.com/checks/ only has the word "indent" in a section headerjms1
10/01/2025, 9:03 PMkenyon
10/01/2025, 9:03 PMbastelfreak
10/01/2025, 9:07 PMjms1
10/01/2025, 9:07 PMpuppet-lint does.kenyon
10/01/2025, 9:08 PMbastelfreak
10/01/2025, 9:10 PMjms1
10/01/2025, 10:08 PMstrict_indent plugin and fixing a few legitimate typos, these are now the only errors/warnings i'm getting:
pdk (ERROR): puppet-lint: there should be either a bracket, punctuation mark, closing quote or a newline after a closing brace, or whitespace and none of the aforementioned (manifests/init.pp:75:52)
pdk (ERROR): puppet-lint: there should be either a bracket, punctuation mark, closing quote or a newline after a closing bracket, or whitespace and none of the aforementioned (manifests/init.pp:74:52)jms1
10/01/2025, 10:09 PM73 class base (
74 Array[String[1]] $profile = [] ,
75 Hash[String[1],Hash[String[1],Any]] $files = {} ,
76
77 ########################################
78 # Throw error on Hiera typo
79
80 Undef $profiles = undef ,kenyon
10/01/2025, 10:11 PMjms1
10/01/2025, 10:12 PMkenyon
10/01/2025, 10:13 PMbastelfreak
10/01/2025, 10:14 PMbastelfreak
10/01/2025, 10:15 PMjms1
10/01/2025, 10:15 PM} at the end of a code block, and when it's part of {} as a valuejms1
10/01/2025, 10:15 PMbastelfreak
10/01/2025, 10:16 PMjms1
10/01/2025, 10:16 PMkenyon
10/01/2025, 10:16 PMkenyon
10/01/2025, 10:18 PMjms1
10/01/2025, 10:18 PMbastelfreak
10/01/2025, 10:18 PMkenyon
10/01/2025, 10:18 PMbastelfreak
10/01/2025, 10:18 PMbastelfreak
10/01/2025, 10:19 PMjms1
10/01/2025, 10:23 PMkenyon
10/01/2025, 10:24 PMkenyon
10/01/2025, 10:24 PMC:\Program Files\Puppet Labs\DevelopmentKit\share\cache\ruby\3.2.0\gems I see that they still bundle strict_indent 3.0.0 which was released in 2023, so still some outdated componentsjms1
10/01/2025, 10:25 PMjms1
10/01/2025, 10:26 PMYury Bushmelev
10/02/2025, 5:28 AM