Coverage for C:\Repos\ekr-pylint\pylint\lint\__init__.py: 92%

12 statements  

« prev     ^ index     » next       coverage.py v6.4, created at 2022-05-24 10:21 -0500

1# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html 

2# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE 

3# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt 

4 

5"""Pylint [options] modules_or_packages. 

6 

7 Check that module(s) satisfy a coding standard (and more !). 

8 

9 pylint --help 

10 

11 Display this help message and exit. 

12 

13 pylint --help-msg <msg-id>[,<msg-id>] 

14 

15 Display help messages about given message identifiers and exit. 

16""" 

17import sys 

18 

19from pylint.config.exceptions import ArgumentPreprocessingError 

20from pylint.lint.caching import load_results, save_results 

21from pylint.lint.parallel import check_parallel 

22from pylint.lint.pylinter import PyLinter 

23from pylint.lint.report_functions import ( 

24 report_messages_by_module_stats, 

25 report_messages_stats, 

26 report_total_messages_stats, 

27) 

28from pylint.lint.run import Run 

29from pylint.lint.utils import _patch_sys_path, fix_import_path 

30 

31__all__ = [ 

32 "check_parallel", 

33 "PyLinter", 

34 "report_messages_by_module_stats", 

35 "report_messages_stats", 

36 "report_total_messages_stats", 

37 "Run", 

38 "ArgumentPreprocessingError", 

39 "_patch_sys_path", 

40 "fix_import_path", 

41 "save_results", 

42 "load_results", 

43] 

44 

45if __name__ == "__main__": 

46 Run(sys.argv[1:])