Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: third_party/pylint/interfaces.py

Issue 876793002: pylint: upgrade to 1.4.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/pylint/gui.py ('k') | third_party/pylint/lint.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This program is free software; you can redistribute it and/or modify it under 1 # This program is free software; you can redistribute it and/or modify it under
2 # the terms of the GNU General Public License as published by the Free Software 2 # the terms of the GNU General Public License as published by the Free Software
3 # Foundation; either version 2 of the License, or (at your option) any later 3 # Foundation; either version 2 of the License, or (at your option) any later
4 # version. 4 # version.
5 # 5 #
6 # This program is distributed in the hope that it will be useful, but WITHOUT 6 # This program is distributed in the hope that it will be useful, but WITHOUT
7 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 7 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
8 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details 8 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
9 # 9 #
10 # You should have received a copy of the GNU General Public License along with 10 # You should have received a copy of the GNU General Public License along with
(...skipping 28 matching lines...) Expand all
39 """called after visiting project (i.e set of modules)""" 39 """called after visiting project (i.e set of modules)"""
40 40
41 41
42 class IRawChecker(IChecker): 42 class IRawChecker(IChecker):
43 """interface for checker which need to parse the raw file 43 """interface for checker which need to parse the raw file
44 """ 44 """
45 45
46 def process_module(self, astroid): 46 def process_module(self, astroid):
47 """ process a module 47 """ process a module
48 48
49 the module's content is accessible via astroid.file_stream 49 the module's content is accessible via astroid.stream
50 """ 50 """
51 51
52 52
53 class ITokenChecker(IChecker): 53 class ITokenChecker(IChecker):
54 """Interface for checkers that need access to the token list.""" 54 """Interface for checkers that need access to the token list."""
55 def process_tokens(self, tokens): 55 def process_tokens(self, tokens):
56 """Process a module. 56 """Process a module.
57 57
58 tokens is a list of all source code tokens in the file. 58 tokens is a list of all source code tokens in the file.
59 """ 59 """
(...skipping 15 matching lines...) Expand all
75 location is a 3-uple (module, object, line) 75 location is a 3-uple (module, object, line)
76 msg is the actual message 76 msg is the actual message
77 """ 77 """
78 78
79 def display_results(self, layout): 79 def display_results(self, layout):
80 """display results encapsulated in the layout tree 80 """display results encapsulated in the layout tree
81 """ 81 """
82 82
83 83
84 __all__ = ('IRawChecker', 'IAstroidChecker', 'ITokenChecker', 'IReporter') 84 __all__ = ('IRawChecker', 'IAstroidChecker', 'ITokenChecker', 'IReporter')
OLDNEW
« no previous file with comments | « third_party/pylint/gui.py ('k') | third_party/pylint/lint.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698