@@ -0,0 +1,2015 @@
+import os%0Aimport re%0Aimport subprocess%0Aimport sys%0A%0A%0Adef get_lines(filename):%0A    with open(filename, %22r%22) as f:%0A        return f.readlines()%0A%0A%0Adef command_success(command):%0A    with open(os.devnull, %22w%22) as f:%0A        return subprocess.call(command.split(),%0A                               stderr=f,%0A                               stdout=f) == 0%0A%0A%0Adef spec_identifier(filename):%0A    contents = get_lines(filename)%0A    for line in contents:%0A        if %22Pod::Spec.new%22 in line:%0A            create_line = line%0A            break%0A    return re.findall(r%22%5C%7C%5Cw+%5C%7C%22, create_line)%5B0%5D.strip(%22%7C%22)%0A%0A%0Adef run_command(command):%0A    out = subprocess.Popen(command.split(),%0A                           stdout=subprocess.PIPE,%0A                           stderr=subprocess.PIPE)%0A    return out.stdout.readlines()%0A%0A%0Awords = %5B'source_files', 'license', 'source', 'requires_arc'%5D%0A%0A%0Adef line_of_attr(attr, fname):%0A    # print attr%0A    identifier = spec_identifier(fname)%0A    contents = get_lines(fname)%0A    for idx, line in enumerate(contents):%0A        # print line%0A        # print identifier%0A        # print attr%0A        # break%0A        string = %22%25s.%25s%22 %25 (identifier, attr)%0A        if line.strip().startswith(string):%0A            return idx + 1%0A    return idx - 1%0A%0A%0Adef main(filename):%0A    # print filename%0A    # print get_lines(filename)%0A    if not command_success(%22pod --version%22):%0A        print %22Pod command missing or broken%22%0A        return%0A    output = run_command(%22pod spec lint %22 + filename)%0A    output = output%5B2:%5D%0A    output = output%5B:-3%5D%0A    print output%0A    cleaned = %5B%5D%0A    for line in output:%0A        l = line.strip(' -%5Cn%5Ct')%0A        if l:%0A            cleaned.append(l)%0A    # print cleaned%0A    errs = %5B%5D%0A    for err in cleaned:%0A        for w in words:%0A            if w in err:%0A                ln = line_of_attr(w, filename)%0A                errs.append((ln, err))%0A                break%0A    # print errs%0A    for ln, err in errs:%0A        print %22%25s:%25d:%25s%22 %25 (filename, ln, err)%0A%0A%0Aif __name__ == '__main__':%0A    main(sys.argv%5B1%5D)%0A

Add basic build script This currently only supports a small number of errors