Closed hafkensite closed 3 years ago
Can confirm - with output regarding @hafkensite his lines:
$ salt-lint salt/gitlab-runner/init.sls
Examining salt/gitlab-runner/init.sls of type sls
[218] "content" looks like a typo. Did you mean "contents"?
salt/gitlab-runner/init.sls:49
- content: 'listen_address = "0.0.0.0:9252"'
@roaldnefs @jay7x I suggest we change the typo-catching rule to only apply on states we have verified.
Fixed in #253 and removed in the latest release (v0.6.1
). Thanks for alerting us @hafkensite and @hbokh!
Once we've got the time, we'll work on implementing a better check that targets only specific states, in which we know content
will fail and contents
should be set.
Thank you for fixing this.. I didn't know there is a case when content
is valid.. What I hate in SaltStack is inconsistency :(
Describe the bug The new TypoContentsRule rule assumes all instances of 'content' should be 'contents', but for
file.line
the parameter is actually called 'content'.To Reproduce Run version 0.6.0 on code like this:
Expected behavior The 218 rule only matches cases where its actually a typo.
Desktop (please complete the following information):