If I disable this specific cop, it runs correctly.
An error occurred while Style/IfWithSemicolon cop was inspecting /tmp/d20231211-21400-1u2korb/site-cookbooks/swf-base/templates/default/keepalived.erb:21:11.
An error occurred while Style/IfWithSemicolon cop was inspecting /tmp/d20231211-21400-1u2korb/site-cookbooks/swf-base/templates/default/keepalived.erb:24:14.
2 errors occurred:
An error occurred while Style/IfWithSemicolon cop was inspecting /tmp/d20231211-21400-1u2korb/site-cookbooks/swf-base/templates/default/keepalived.erb:21:11.
An error occurred while Style/IfWithSemicolon cop was inspecting /tmp/d20231211-21400-1u2korb/site-cookbooks/swf-base/templates/default/keepalived.erb:24:14.
Errors are usually caused by RuboCop bugs.
Please, report your problems to RuboCop's issue tracker.
https://github.com/rubocop-hq/rubocop/issues
Mention the following information in the issue report:
0.93.1 (using Parser 3.1.0.0, rubocop-ast 1.15.1, running on ruby 2.7.2 x86_64-linux)
If I disable this specific cop, it runs correctly.