summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2009-03-16 11:48:03 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2009-03-16 11:48:03 +0100
commita6781a6c428775d679405dee318975a67568b72f (patch)
tree8fddb40b378acfe39c8995948027ad1cd3f519aa
parent5eb9c566a3f5ba5376bb44d2129f5fa4e47ee528 (diff)
downloadpylint-a6781a6c428775d679405dee318975a67568b72f.tar.gz
remove a lot of more rpython stuff
-rw-r--r--ChangeLog6
-rw-r--r--__pkginfo__.py4
-rw-r--r--checkers/__init__.py1
-rw-r--r--doc/features.txt2
-rw-r--r--doc/rpython.txt30
-rw-r--r--lint.py13
-rw-r--r--man/pylint.12
-rw-r--r--test/genbuiltins.py6
8 files changed, 6 insertions, 58 deletions
diff --git a/ChangeLog b/ChangeLog
index 238792d..e98512d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,11 @@ ChangeLog for PyLint
====================
--
+2009-03-16 -- 0.17
+ * remove rpython : remove all rpython checker, modules and tests
+ * astng0.18 compatibility: support for _ast module modifies interfaces
+
+2009-01-28 -- 0.16
* change [en|dis]able-msg-cat options: only accept message categories
identified by their first letter (eg IRCWEF) without the need for comma
as separator
@@ -21,7 +26,6 @@ ChangeLog for PyLint
status if any messages other then Information are issued
* fix #3711, #5626 (name resolution bug w/ decorator and class members)
* fix #6954
-
2008-10-13 -- 0.15.2
* fix #5672: W0706 weirdness ( W0706 removed )
* fix #5998: documentation points to wrong url for mailing list
diff --git a/__pkginfo__.py b/__pkginfo__.py
index 7f6578f..70849f1 100644
--- a/__pkginfo__.py
+++ b/__pkginfo__.py
@@ -53,9 +53,7 @@ scripts = [join('bin', filename) for filename in
('pylint', 'pylint-gui', "symilar", "epylint", "pyreverse")]
include_dirs = [join('test', 'input'),
- join('test', 'messages'),
- join('test', 'rpythonmessages'),
- join('test', 'regrtest_data')]
+ join('test', 'messages')]
pyversions = ["2.3", "2.4", "2.5"]
diff --git a/checkers/__init__.py b/checkers/__init__.py
index 094955d..914746a 100644
--- a/checkers/__init__.py
+++ b/checkers/__init__.py
@@ -27,7 +27,6 @@ Base id of standard checkers (used in msg and report ids):
09: design_analysis
10: newstyle
11: typecheck
-12: rpython
The raw_metrics checker has no number associated since it doesn't emit any
messages nor reports. XXX not true, emit a 07 report !
diff --git a/doc/features.txt b/doc/features.txt
index add05a5..e98f55c 100644
--- a/doc/features.txt
+++ b/doc/features.txt
@@ -12,8 +12,6 @@ General options
:init-hook:
Python code to execute, usually for sys.path manipulation such as
pygtk.require().
-:rpython-mode:
- enable the rpython checker which is disabled by default
: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
diff --git a/doc/rpython.txt b/doc/rpython.txt
deleted file mode 100644
index 218f854..0000000
--- a/doc/rpython.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-Since 0.17, pylint contains a Restricted python checker (rpython).
-It contains the following checks:
-
-* unavailable keywords / builtins
-* multiple inheritance
-* mixing multiple types
-* non homogeneous list
-* global modification
-* negative slice index
-* using %r in format string
-* warn about special methods that are not implicitly called
-
-By default the rpython checker is deactivated. Activate it using :
-
- pylint --rpython-mode -rn ...
-
-(-rn is disabling statistics reports) or
-
- pylint --enable-checker=rpython ...
-
-to get only rpython checks (though in this case you won't be warned about
-regular errors).
-
-Another interesting thing is the rpython dedicated testing framework,
-testing that checked things are actually not translatable. I have the idea
-that this may be useful to generate some kind of documentation for
-features supported by rpython or not, and help spread information when a
-feature that wasn't supported is introduced in rpython. That's another
-story though... If you're interested, check
-pylint/test/test_rpycompilation.py.
diff --git a/lint.py b/lint.py
index 9597160..5f571e5 100644
--- a/lint.py
+++ b/lint.py
@@ -760,7 +760,6 @@ group are mutually exclusive.'),
self._plugins = []
preprocess_options(args, {
# option: (callback, takearg)
- 'rpython-mode': (self.cb_rpython_mode, False),
'rcfile': (self.cb_set_rcfile, True),
'load-plugins': (self.cb_add_plugins, True),
})
@@ -775,12 +774,6 @@ group are mutually exclusive.'),
'callback' : cb_init_hook,
'help' : 'Python code to execute, usually for sys.path \
manipulation such as pygtk.require().'}),
-
- ('rpython-mode',
- {'action' : 'callback', 'callback' : lambda *args: 1,
- 'help' : 'enable the rpython checker which is disabled by default'
- }),
- #'help' : 'Run into Restricted Python analysis mode.'}),
('help-msg',
{'action' : 'callback', 'type' : 'string', 'metavar': '<msg-id>',
@@ -890,12 +883,6 @@ been issued by analysing pylint output status code
sys.path.pop(0)
sys.exit(self.linter.msg_status)
- def cb_rpython_mode(self, name, value):
- from pylint.checkers.rpython import RPythonChecker
- RPythonChecker.enabled = True
- #from pylint.rlint import RPyLinter
- #self.LinterClass = RPyLinter
-
def cb_set_rcfile(self, name, value):
"""callback for option preprocessing (ie before optik parsing)"""
self._rcfile = value
diff --git a/man/pylint.1 b/man/pylint.1
index ca71c08..2f11de9 100644
--- a/man/pylint.1
+++ b/man/pylint.1
@@ -37,8 +37,6 @@ show this help message and exit
Specify a configuration file.
.IP "--init-hook=<code>"
Python code to execute, usually for sys.path manipulation such as pygtk.require().
-.IP "--rpython-mode"
-enable the rpython checker which is disabled by default
.IP "--errors-only, -e"
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
.IP "--profile=<y_or_n>"
diff --git a/test/genbuiltins.py b/test/genbuiltins.py
index c1a433f..07ffa1a 100644
--- a/test/genbuiltins.py
+++ b/test/genbuiltins.py
@@ -48,16 +48,10 @@ checks = [
]
-for filename in glob('rpythoninput/func_nobuiltin_*'):
- remove(filename)
-for filename in glob('rpythonmessages/func_nobuiltin_*'):
- remove(filename)
for check in checks:
builtin, _ = check.split('(', 1)
if builtin == 'isinstance':
builtin = 'basestring'
basename = 'func_nobuiltin_%s' % builtin
print basename
- file('rpythoninput/%s.py' % basename, 'w').write(code % check)
- file('rpythonmessages/%s.txt' % basename, 'w').write(msg % builtin)
print 'generated %s test' % len(checks)