Ville Skyttä
4092376f8c
flake8 fixes
2015-07-09 16:43:45 +03:00
Ville Skyttä
0a5772cbb7
More python 3 fixing
2015-07-09 16:43:45 +03:00
Ville Skyttä
543a05f084
flake8 cleanups
2015-07-09 16:43:44 +03:00
Ville Skyttä
717ff0fcf6
Python 3 compatibility tweaks.
2015-07-09 16:43:43 +03:00
Ville Skyttä
d302e2f8ed
Remove no longer updated CVS keywords.
2015-07-09 16:43:41 +03:00
Ville Skyttä
e11460a671
Fix traceback when outputting non-unicode strings to non-TTY ( #308 , Toshio Kuratomi).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1899 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä
3d21acfe5c
Drop unnecessary global statements.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1871 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä
0bf6f846fe
Add --rawout option (Ludwig Nussel).
...
Allows to specify a file that gets the unfiltered result. Useful to
not bother the developer with unimportant stuff but still retain a way
for distro maintainers to evaluate all results.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1870 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä
944348d19d
Fix setting message type for reasons with badness threshold defined (Ludwig Nussel).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1862 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä
2d6a646328
Don't overwrite already existing details (Ludwig Nussel).
...
This allows the distro config to provide alternative descriptions and
distro specific explanations without having to patch checks.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1845 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä
ff8b91244b
Allow info messages even if badness scoring is used (Ludwig Nussel).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1814 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä
7678a8aaaa
Work around Python's ASCII non-TTY stdout and our non-ASCII output.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1734 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:37 +03:00
Ville Skyttä
f848345066
Use alternative Python 2/3 'print' compatibility hack; drop rlprint, rename rlwarn to warn.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1686 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:36 +03:00
Ville Skyttä
a9890b21bc
Introduce Pkg.rlprint and Pkg.rlwarn print-like functions, use them instead
...
of direct writes to sys.std{out,err} (#181 ).
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1668 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:35 +03:00
Ville Skyttä
f1a515e201
Sort diagnostics using key instead of cmp.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1665 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:35 +03:00
Ville Skyttä
43ce3c7515
Code cleanups.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1593 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:34 +03:00
Ville Skyttä
96183e8b12
Move Config.info check outside of printDescriptions ( #171 , lkundrak at v3.sk)
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1533 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
efc29193bd
Make sure details are available for -i also for early loaded check modules.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1532 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
5adbaf8465
Import cleanup (PEP 8).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1516 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
c7843fa5c4
pychecker fixes.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1507 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
627f8d9c31
Add utf-8 magic comments.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1506 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
350271ddb8
Move compile.py and Testing.py to tools/, do not require installation of Testing.py.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1485 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
ca99695b5e
pylint whitespace cleanups.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1477 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
b0b07a56f9
pylint whitespace cleanups.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1475 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
e031f11f29
Drop no longer needed Python < 2.3 workarounds.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1469 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:30 +03:00
Ville Skyttä
298164c051
Add badness scoring support ( #70 , vast majority of work by dmueller at suse.de).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1426 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:29 +03:00
Ville Skyttä
9df4a04fb8
Count number of printed (== non-filtered) messages per category.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1421 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:29 +03:00
Ville Skyttä
cbe66c4572
Use textwrap.fill() to pretty print all info messages, not just a few special cases.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1412 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:29 +03:00
Ville Skyttä
592289e8ba
Add direct specfile checking, error line numbers ( #60 , alcapcom at gmail.com).
...
Also modify error output format for editor parseability (mostly useful for
specfile checks), and include package architectures in output.
NOTE: locally installed filters should be reviewed against the new output
format and ported to it if needed.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1349 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:28 +03:00
Michael Scherer
4599222baf
- start of testing infrastructure
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1224 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:25 +03:00
Ville Skyttä
c79d60297b
Add indentation settings for vi* and *Emacs, use -tt, untabify.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1110 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:22 +03:00
Ville Skyttä
b17ba933d4
Fix indentation, untabify, trim trailing whitespace.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1049 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:42:46 +03:00
Frédéric Lepied
19339ed97d
don't print the description if the error/warning is filtered.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@479 9bc8b190-ac0f-0410-8968-dc7d1f502856
2001-07-15 16:52:55 +00:00
Frédéric Lepied
35bc162ae8
print description only if they aren't empty.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@448 9bc8b190-ac0f-0410-8968-dc7d1f502856
2001-06-20 11:36:00 +00:00
Frédéric Lepied
f1a3ace2e3
added functions to print/store details of warnings/errors.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@416 9bc8b190-ac0f-0410-8968-dc7d1f502856
2001-05-25 22:17:48 +00:00
Frédéric Lepied
e045489aca
* test a string against the filters.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@80 9bc8b190-ac0f-0410-8968-dc7d1f502856
1999-11-15 18:33:35 +00:00
Frédéric Lepied
13139796be
* first version.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@53 9bc8b190-ac0f-0410-8968-dc7d1f502856
1999-10-23 18:27:11 +00:00