diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-03-22 09:34:40 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-03-22 09:34:40 +0100 |
commit | be5996b93d2e2674566fa186af78bf5029b0b9d8 (patch) | |
tree | 17fc92992834ab8a6683600245d668712a20385f | |
parent | 8a8be97e8fd7751d4c6341e9f59ca7908a7893d5 (diff) | |
download | pylint-git-be5996b93d2e2674566fa186af78bf5029b0b9d8.tar.gz |
remove cache_size option: it was desactivated anyway
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | doc/features.txt | 10 | ||||
-rw-r--r-- | examples/pylintrc | 3 | ||||
-rw-r--r-- | lint.py | 6 | ||||
-rw-r--r-- | man/pylint.1 | 2 | ||||
-rw-r--r-- | test/test_func.py | 3 |
6 files changed, 8 insertions, 20 deletions
@@ -1,7 +1,9 @@ ChangeLog for PyLint ==================== -- - * fix #9263, __init__ and __new__ are checked for unused arguments. + * remove --cache-size option + + * fix #9263, __init__ and __new__ are checked for unused arguments. * fix #20991, class scope definitions ignored in a genexpr diff --git a/doc/features.txt b/doc/features.txt index 3755531da..e3e43d725 100644 --- a/doc/features.txt +++ b/doc/features.txt @@ -9,27 +9,27 @@ General options ~~~~~~~~~~~~~~~ :rcfile: Specify a configuration file. + :init-hook: Python code to execute, usually for sys.path manipulation such as pygtk.require(). + :errors-only: In debug mode, checkers without error messages are disabled and for others, only the ERROR messages are displayed, and no reports are done by default + :profile: Profiled execution. + :ignore: Add <file or directory> to the black list. It should be a base name, not a path. You may set this option multiple times. - Default: ``CVS`` + :persistent: Pickle collected data for later comparisons. - Default: ``yes`` -:cache-size: - Set the cache size for astng objects. - Default: ``500`` :load-plugins: List of plugins (as comma separated values of python modules names) to load, usually to register additional checkers. diff --git a/examples/pylintrc b/examples/pylintrc index b863456ee..cf5ef6deb 100644 --- a/examples/pylintrc +++ b/examples/pylintrc @@ -25,9 +25,6 @@ ignore=CVS # Pickle collected data for later comparisons. persistent=yes -# Set the cache size for astng objects. -cache-size=500 - # List of plugins (as comma separated values of python modules names) to load, # usually to register additional checkers. load-plugins= @@ -152,10 +152,6 @@ should be a base name, not a path. You may set this option multiple times.'}), {'default': True, 'type' : 'yn', 'metavar' : '<y_or_n>', 'help' : 'Pickle collected data for later comparisons.'}), - ('cache-size', - {'default': 500, 'type' : 'int', 'metavar': '<size>', - 'help' : 'Set the cache size for astng objects.'}), - ('load-plugins', {'type' : 'csv', 'metavar' : '<modules>', 'default' : (), 'help' : 'List of plugins (as comma separated values of \ @@ -318,8 +314,6 @@ This is used by the global evaluation report (R0004).'}), meth(_id) else : meth(value) - elif opt_name == 'cache-size': - MANAGER.set_cache_size(int(value)) elif opt_name == 'output-format': self.set_reporter(REPORTER_OPT_MAP[value.lower()]()) elif opt_name in ('enable-checker', 'disable-checker'): diff --git a/man/pylint.1 b/man/pylint.1 index 0d5e8fc00..449c50d40 100644 --- a/man/pylint.1 +++ b/man/pylint.1 @@ -45,8 +45,6 @@ Profiled execution. [current: no] Add <file or directory> to the black list. It should be a base name, not a path. You may set this option multiple times. [current: CVS] .IP "--persistent=<y_or_n>" Pickle collected data for later comparisons. [current: yes] -.IP "--cache-size=<size>" -Set the cache size for astng objects. [current: 500] .IP "--load-plugins=<modules>" List of plugins (as comma separated values of python modules names) to load, usually to register additional checkers. [current: none] diff --git a/test/test_func.py b/test/test_func.py index 5ad7a4056..ab8ab844e 100644 --- a/test/test_func.py +++ b/test/test_func.py @@ -77,9 +77,6 @@ class LintTestUsingModule(testlib.TestCase): msg = '%(mode)s test of input file "%(input)s" in "%(pkg)s" (%(cls)s)' return msg % values - def setUp(self): - MANAGER.set_cache_size(200) # reset cache - def test_functionality(self): tocheck = [self.package+'.'+self.module] if self.depends: |