Sha256: f1f254354f76a1636a20df08eed55f2fc7b1176d926c11b21a490378fdf42a78
Contents?: true
Size: 777 Bytes
Versions: 2
Compression:
Stored size: 777 Bytes
Contents
require 'cmath' xcode_proj "Fixtures/Fixtures.xcodeproj" CMath.sin(2) warning :line, :language => "swift" do |line| CMath.sin(2) line.length > 120 ? "Length of line #{line.length} is longer than 120 characters!" : false end warning :file do |entire_file| max_number_of_lines = 500 number_of_code_or_comment_lines = entire_file.split("\n").select { |line| line.strip.length > 0 }.count if number_of_code_or_comment_lines > max_number_of_lines # Map line numbers to errors { "1" => "File is #{number_of_code_or_comment_lines} lines long" } else false end end error_regex "Please remove Copyright boilerplate", /^\/\/ Copyright \(c\).*$/, :files => ["*AppDelegate*"] warning_regex "TODO", /^\/\/\s+TODO:.*$/, :exclude => "*/Fixtures/Excluded/*"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mayday-0.2.0 | spec/fixtures/Maydayfile |
mayday-0.1.2 | spec/fixtures/Maydayfile |