@@ -214,7 +214,7 @@ def is_file_in_list(paths: list, file_name: str, prompt: str) -> bool:
214214
215215def get_list_of_changed_files () -> None :
216216 """Fetch the JSON payload of the event's changed files. Sets the
217- [`FILES`][cpp_linter.__init__. Globals.FILES] attribute."""
217+ [`FILES`][cpp_linter.Globals.FILES] attribute."""
218218 start_log_group ("Get list of specified source files" )
219219 files_link = f"{ GITHUB_API_URL } /repos/{ GITHUB_REPOSITORY } /"
220220 if GITHUB_EVENT_NAME == "pull_request" :
@@ -232,7 +232,7 @@ def filter_out_non_source_files(
232232 ext_list : list , ignored : list , not_ignored : list , lines_changed_only : bool
233233) -> bool :
234234 """Exclude undesired files (specified by user input 'extensions'). This filter
235- applies to the event's [`FILES`][cpp_linter.__init__. Globals.FILES] attribute.
235+ applies to the event's [`FILES`][cpp_linter.Globals.FILES] attribute.
236236
237237 Args:
238238 ext_list: A list of file extensions that are to be examined.
@@ -327,7 +327,7 @@ def verify_files_are_present() -> None:
327327
328328def list_source_files (ext_list : list , ignored_paths : list , not_ignored : list ) -> bool :
329329 """Make a list of source files to be checked. The resulting list is stored in
330- [`FILES`][cpp_linter.__init__. Globals.FILES].
330+ [`FILES`][cpp_linter.Globals.FILES].
331331
332332 Args:
333333 ext_list: A list of file extensions that should by attended.
@@ -495,7 +495,7 @@ def capture_clang_tools_output(
495495 repo_root : str ,
496496):
497497 """Execute and capture all output from clang-tidy and clang-format. This aggregates
498- results in the [`OUTPUT`][cpp_linter.__init__. Globals.OUTPUT].
498+ results in the [`OUTPUT`][cpp_linter.Globals.OUTPUT].
499499
500500 Args:
501501 version: The version of clang-tidy to run.
@@ -733,7 +733,7 @@ def make_annotations(style: str, file_annotations: bool) -> bool:
733733 return ret_val
734734
735735
736- def parse_ignore_option (paths : str ):
736+ def parse_ignore_option (paths : str ) -> tuple :
737737 """Parse a given string of paths (separated by a '|') into `ignored` and
738738 `not_ignored` lists of strings.
739739
0 commit comments