VoxBot
03/23/2023, 9:22 AMCraig Gumbley
03/23/2023, 10:55 AMDavid Sandilands
03/23/2023, 11:01 AMYury Bushmelev
03/23/2023, 2:06 PMbeaker
soon? I cannot drop `beaker-rspec`/`rspec-its` from the beaker-docker
because it’s still required by latest beaker
release..
1. https://github.com/voxpupuli/beaker/pull/1788Yury Bushmelev
03/23/2023, 2:06 PMbeaker
soon? I cannot drop `beaker-rspec`/`rspec-its` from the beaker-docker
because it’s still required by latest beaker
release..
1. https://github.com/voxpupuli/beaker/pull/1788Yury Bushmelev
03/23/2023, 2:07 PMbeaker
soon? I cannot drop `beaker-rspec`/`rspec-its` from the beaker-docker
because it’s still required by latest beaker
release..
1. https://github.com/voxpupuli/beaker/pull/1788bastelfreak
03/23/2023, 2:13 PMbastelfreak
03/23/2023, 2:15 PMbastelfreak
03/23/2023, 2:36 PMCraig Gumbley
03/23/2023, 3:00 PMtokens
does not get refreshed between each fix
… however I don’t think this is something that we can/will fix in puppet-lint any time soon (i’m not even sure how computationally sensible it would be at this point).
In trailing_comma_check we could mitigate by doing something like this
def fix(problem)
comma = PuppetLint::Lexer::Token.new(
:COMMA,
',',
problem[:token].line,
problem[:token].column
)
idx = tokens.index(problem[:token])
# If the index is nil, this line may have been
# amended by another fix. In that case, we raise
# a NoFix exception which be handled by puppet-lint as
# a no-op for this problem.
# The problem can then be fixed on a subsequent run.
raise PuppetLint::NoFix if idx.nil?
tokens.insert(idx, comma)
end
Craig Gumbley
03/23/2023, 3:00 PMtokens
does not get refreshed between each fix
… however I don’t think this is something that we can/will fix in puppet-lint any time soon (i’m not even sure how computationally sensible it would be at this point).
In trailing_comma_check we could mitigate by doing something like this
def fix(problem)
comma = PuppetLint::Lexer::Token.new(
:COMMA,
',',
problem[:token].line,
problem[:token].column
)
idx = tokens.index(problem[:token])
# If the index is nil, this line may have been
# amended by another fix. In that case, we raise
# a NoFix exception which be handled by puppet-lint as
# a no-op for this problem.
# The problem can then be fixed on a subsequent run.
raise PuppetLint::NoFix if idx.nil?
tokens.insert(idx, comma)
end
VoxBot
03/23/2023, 3:02 PMYury Bushmelev
03/23/2023, 3:26 PMYury Bushmelev
03/23/2023, 3:28 PMYury Bushmelev
03/23/2023, 3:29 PMbastelfreak
03/23/2023, 3:30 PMYury Bushmelev
03/23/2023, 3:30 PMYury Bushmelev
03/23/2023, 3:31 PMYury Bushmelev
03/23/2023, 3:31 PMYury Bushmelev
03/23/2023, 3:32 PMPlease note that in order to execute this rake task you must be in the Collaborators group on GitHub for the module in question.
Yury Bushmelev
03/23/2023, 3:32 PMPlease also note that the task requires a configured gpg key in your local git settings
Yury Bushmelev
03/23/2023, 3:33 PMbastelfreak
03/23/2023, 3:33 PMYury Bushmelev
03/23/2023, 3:33 PMYury Bushmelev
03/23/2023, 3:33 PMbastelfreak
03/23/2023, 3:34 PMbastelfreak
03/23/2023, 3:34 PMYury Bushmelev
03/23/2023, 3:34 PMYury Bushmelev
03/23/2023, 3:45 PMYury Bushmelev
03/23/2023, 3:45 PM