lib/cocoapods/validator.rb
def parse_xcodebuild_output(output)
      lines = output.split("\n")
      selected_lines = lines.select do |l|
        l.include?('error: ') &&
          (l !~ /errors? generated\./) && (l !~ /error: \(null\)/)  ||
          l.include?('warning: ') && (l !~ /warnings? generated\./) ||
          l.include?('note: ') && (l !~ /expanded from macro/)
      end
      selected_lines.map do |l|
        new = l.gsub(/\/tmp\/CocoaPods\/Lint\/Pods\//,'')
        new.gsub!(/^ */,' ')
      end
    end
# Parse the xcode build output to identify the lines which are relevant
# to the linter.
#
# @param  [String] output the output generated by the xcodebuild tool.
#
# @note   The indentation and the temporary path is stripped form the
#         lines.
#
# @return [Array<String>] the lines that are relevant to the linter.
#
Parse the xcode build output to identify the lines which are relevant
to the linter.
Parse the xcode build output to identify the lines which are relevant to the linter .
def parse_xcodebuild_output(output)
      lines = output.split("\n")
      selected_lines = lines.select do |l|
        l.include?('error: ') &&
          (l !~ /errors? generated\./) && (l !~ /error: \(null\)/)  ||
          l.include?('warning: ') && (l !~ /warnings? generated\./) ||
          l.include?('note: ') && (l !~ /expanded from macro/)
      end
      selected_lines.map do |l|
        new = l.gsub(/\/tmp\/CocoaPods\/Lint\/Pods\//,'')
        new.gsub!(/^ */,' ')
      end
    end
def parse_xcodebuild_output ( output ) lines = output . split ( "\n" ) selected_lines = lines . select do | l | l . include? ( 'error: ' ) && ( l !~ / errors? generated \. / ) && ( l !~ / error:  \( null \) / ) || l . include? ( 'warning: ' ) && ( l !~ / warnings? generated \. / ) || l . include? ( 'note: ' ) && ( l !~ / expanded from macro / ) end selected_lines . map do | l | new = l . gsub ( / \/ tmp \/ CocoaPods \/ Lint \/ Pods \/ / , '' ) new . gsub! ( / ^ * / , ' ' ) end end
Parse the xcode build output to identify the lines which are relevant
to the linter.
Parse the xcode build output to identify the lines which are relevant to the linter .
the lines that are relevant to the linter.
the lines that are relevant to the linter .
Array<String>
output
output the output generated by the xcodebuild tool.
output the output generated by the xcodebuild tool .
note
The indentation and the temporary path is stripped form the lines.
The indentation and the temporary path is stripped form the lines .