summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-03-22 09:34:40 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-03-22 09:34:40 +0100
commit529ec1d5672718b1d99a17edc0b642e6d369a1e9 (patch)
tree7b195b9533f3059e4d2a65203b6c1af36bbaa461
parent1a65d658ae95811071614fec2b7673c89103c176 (diff)
downloadpylint-529ec1d5672718b1d99a17edc0b642e6d369a1e9.tar.gz
remove cache_size option: it was desactivated anyway
-rw-r--r--ChangeLog4
-rw-r--r--doc/features.txt10
-rw-r--r--examples/pylintrc3
-rw-r--r--lint.py6
-rw-r--r--man/pylint.12
-rw-r--r--test/test_func.py3
6 files changed, 8 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index 36de886..25e2f8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 3755531..e3e43d7 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 b863456..cf5ef6d 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=
diff --git a/lint.py b/lint.py
index 4702bf5..40d34f8 100644
--- a/lint.py
+++ b/lint.py
@@ -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 0d5e8fc..449c50d 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 5ad7a40..ab8ab84 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: