|
| def | copyright_header.applies_to_file (filename) |
| |
| def | copyright_header.call_git_ls (base_directory) |
| |
| def | copyright_header.call_git_toplevel () |
| |
| def | copyright_header.get_filenames_to_examine (base_directory) |
| |
| def | copyright_header.compile_copyright_regex (copyright_style, year_style, name) |
| |
| def | copyright_header.get_count_of_copyrights_of_any_style_any_holder (contents) |
| | search file contents for copyright message of particular category More...
|
| |
| def | copyright_header.file_has_dominant_style_copyright_for_holder (contents, holder_name) |
| |
| def | copyright_header.file_has_year_list_style_copyright_for_holder (contents, holder_name) |
| |
| def | copyright_header.file_has_without_c_style_copyright_for_holder (contents, holder_name) |
| |
| def | copyright_header.read_file (filename) |
| | get file info More...
|
| |
| def | copyright_header.gather_file_info (filename) |
| |
| def | copyright_header.print_filenames (filenames, verbose) |
| |
| def | copyright_header.print_report (file_infos, verbose) |
| |
| def | copyright_header.exec_report (base_directory, verbose) |
| |
| def | copyright_header.report_cmd (argv) |
| |
| def | copyright_header.call_git_log (filename) |
| |
| def | copyright_header.get_git_change_years (filename) |
| |
| def | copyright_header.get_most_recent_git_change_year (filename) |
| |
| def | copyright_header.read_file_lines (filename) |
| | read and write to file More...
|
| |
| def | copyright_header.write_file_lines (filename, file_lines) |
| |
| def | copyright_header.get_updatable_copyright_line (file_lines) |
| |
| def | copyright_header.parse_year_range (year_range) |
| |
| def | copyright_header.year_range_to_str (start_year, end_year) |
| |
| def | copyright_header.create_updated_copyright_line (line, last_git_change_year) |
| |
| def | copyright_header.update_updatable_copyright (filename) |
| |
| def | copyright_header.exec_update_header_year (base_directory) |
| |
| def | copyright_header.print_file_action_message (filename, action) |
| |
| def | copyright_header.update_cmd (argv) |
| |
| def | copyright_header.get_header_lines (header, start_year, end_year) |
| | inserted copyright header format More...
|
| |
| def | copyright_header.get_cpp_header_lines_to_insert (start_year, end_year) |
| |
| def | copyright_header.get_python_header_lines_to_insert (start_year, end_year) |
| |
| def | copyright_header.get_git_change_year_range (filename) |
| | query git for year of last change More...
|
| |
| def | copyright_header.file_already_has_core_copyright (file_lines) |
| | check for existing core copyright More...
|
| |
| def | copyright_header.file_has_hashbang (file_lines) |
| | insert header execution More...
|
| |
| def | copyright_header.insert_python_header (filename, file_lines, start_year, end_year) |
| |
| def | copyright_header.insert_cpp_header (filename, file_lines, start_year, end_year) |
| |
| def | copyright_header.exec_insert_header (filename, style) |
| |
| def | copyright_header.insert_cmd (argv) |
| |
|
| list | copyright_header.EXCLUDE |
| | file filtering More...
|
| |
| | copyright_header.EXCLUDE_COMPILED = re.compile('|'.join([fnmatch.translate(m) for m in EXCLUDE])) |
| |
| list | copyright_header.EXCLUDE_DIRS |
| |
| list | copyright_header.INCLUDE = ['*.h', '*.cpp', '*.cc', '*.c', '*.mm', '*.py'] |
| |
| | copyright_header.INCLUDE_COMPILED = re.compile('|'.join([fnmatch.translate(m) for m in INCLUDE])) |
| |
| string | copyright_header.GIT_LS_CMD = 'git ls-files --full-name'.split(' ') |
| | obtain list of files in repo according to INCLUDE and EXCLUDE More...
|
| |
| string | copyright_header.GIT_TOPLEVEL_CMD = 'git rev-parse --show-toplevel'.split(' ') |
| |
| string | copyright_header.COPYRIGHT_WITH_C = 'Copyright \(c\)' |
| | define and compile regexes for the patterns we are looking for More...
|
| |
| string | copyright_header.COPYRIGHT_WITHOUT_C = 'Copyright' |
| |
| string | copyright_header.ANY_COPYRIGHT_STYLE = '(%s|%s)' % (COPYRIGHT_WITH_C, COPYRIGHT_WITHOUT_C) |
| |
| string | copyright_header.YEAR = "20[0-9][0-9]" |
| |
| string | copyright_header.YEAR_RANGE = '(%s)(-%s)?' % (YEAR, YEAR) |
| |
| string | copyright_header.YEAR_LIST = '(%s)(, %s)+' % (YEAR, YEAR) |
| |
| string | copyright_header.ANY_YEAR_STYLE = '(%s|%s)' % (YEAR_RANGE, YEAR_LIST) |
| |
| tuple | copyright_header.ANY_COPYRIGHT_STYLE_OR_YEAR_STYLE |
| |
| | copyright_header.ANY_COPYRIGHT_COMPILED = re.compile(ANY_COPYRIGHT_STYLE_OR_YEAR_STYLE) |
| |
| list | copyright_header.EXPECTED_HOLDER_NAMES |
| |
| dictionary | copyright_header.DOMINANT_STYLE_COMPILED = {} |
| |
| dictionary | copyright_header.YEAR_LIST_STYLE_COMPILED = {} |
| |
| dictionary | copyright_header.WITHOUT_C_STYLE_COMPILED = {} |
| |
| string | copyright_header.SEPARATOR = '-'.join(['' for _ in range(80)]) |
| | report execution More...
|
| |
| string | copyright_header.REPORT_USAGE |
| | report cmd More...
|
| |
| string | copyright_header.GIT_LOG_CMD = "git log --pretty=format:%%ai %s" |
| | query git for year of last change More...
|
| |
| string | copyright_header.COPYRIGHT = 'Copyright \(c\)' |
| | update header years execution More...
|
| |
| string | copyright_header.HOLDER = 'The Bitcoin Core developers' |
| |
| | copyright_header.UPDATEABLE_LINE_COMPILED = re.compile(' '.join([COPYRIGHT, YEAR_RANGE, HOLDER])) |
| |
| string | copyright_header.UPDATE_USAGE |
| | update cmd More...
|
| |
| string | copyright_header.CPP_HEADER |
| |
| string | copyright_header.PYTHON_HEADER |
| |
| string | copyright_header.INSERT_USAGE |
| | insert cmd More...
|
| |
| string | copyright_header.USAGE |
| | UI. More...
|
| |
| list | copyright_header.SUBCOMMANDS = ['report', 'update', 'insert'] |
| |
| | copyright_header.subcommand = sys.argv[1] |
| |