Home | History | Annotate | Download | only in utils

Lines Matching defs:to

3 Wrapper to patch pylint library functions to suit autotest.
22 # Do a basic check to see if pylint is even installed.
27 print ("Unable to import pylint, it may need to be installed."
37 # patch up the logilab module lookup tools to understand autotest_lib.* trash
42 Wrapper to eliminate autotest_lib from modpath.
46 @param context_file: path to file doing the importing.
47 @return The path to the module as returned by the parent method invocation.
60 # need to put autotest root dir on sys.path so pylint will be happy
64 # patch up pylint import checker to handle our importing magic
67 # A list of modules for pylint to ignore, specifically, these modules
68 # are imported for their side-effects and are not meant to be used.
101 Patches the consumed modules list to ignore modules with side effects.
105 they're not referenced anywhere in the code. To overcome this we need
106 to transplant said modules into the dictionary of modules pylint has
109 @param to_consume: a dictionary of names pylint needs to see referenced.
123 """Modifies stock imports checker to suit autotest."""
130 """Modifies stock variables checker to suit autotest."""
136 _to_consume eg: [({to reference}, {referenced}, 'scope type')]
137 Enteries are appended to this list as we drill deeper in scope.
138 If we ever come across a module to ignore, we immediately move it
139 to the consumed list.
155 """Modifies stock docstring checker to suit Autotest doxygen style."""
197 Teaches pylint to look for @param with each argument in the
252 @param file_path: abs path of file to check.
267 @param file_path: path to the file we need to run pylint on.
296 @param dir_path: path to directory.
321 needs to be edited. If the options are already a part of
322 pylint_base_opts we replace them, and if not we append to
343 'Git shows' the file in original_file to a tmp file with
344 the name new_temp_file. We need to preserve the filename
348 @param original_file: the path to the original file we'd like to run
350 @param new_temp_file: new_temp_file is the path to a temp file we write the
365 Get a list of files corresponding to the commit hash.
368 of a file in the commit we mean to upload. To work around this we run
374 @param commit: hash of the commit this upload applies to.
379 # Map the absolute path of each file so it's relative to the autotest repo.
405 # W0611: All imported modules (except common) need to be used.
411 # Ideally we would like to enable as much as we can, but if we did so at
412 # this stage anyone who makes a tiny change to a file will be tasked with