Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/puppet-lint/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def function_indexes
@function_indexes ||= begin
functions = []
tokens.each_with_index do |token, token_idx|
next unless token.type == :NAME
next unless token.type == :FUNCTION_NAME
next unless token_idx.zero? ||
(token_idx == 1 && tokens[0].type == :WHITESPACE) ||
[:NEWLINE, :INDENT].include?(token.prev_token.type) ||
Expand Down