Commit Graph

15 Commits

Author SHA1 Message Date
Claudiu Popa
24a5a67ff5 Disable reports by default and show the evaluation score by default
As per discussion from issue #746, the reports were disabled by
default in order to simplify the interaction between the
tool and the users. The score is still shown by default,
as a way of closely measuring when it increases or decreases
due to changes brought to the code.
The patch introduces a new command line flag, "--score" or its
shorthand version, "-s", which controls if the score is shown or not.
By default, it's set to true.
2015-12-29 10:22:53 +02:00
Claudiu Popa
4fe6bc4dcd Cleanup pylint issues
This changeset also brings a couple of changes:

   * rrheaders and rcheaders are dropped from html_writer.Table's constructor.
     They weren't used at all and it was dead code. This simplified some
     if statements.

   * _is_attribute_property is used to look for a property assignment
     instead on relying on a different implementation.
2015-11-21 19:42:08 +02:00
Claudiu Popa
1eb5669807 Decode the docstring before attempting to parse it with the spelling checker
Also, the patch changes calls to str() in the list of html reporter's messages
only for the objects which aren't already unicode or byte strings.
2015-10-16 21:29:08 +03:00
Claudiu Popa
7abadf1729 Simplify compute_content, by removing the custom implementations of write and writeln. 2015-10-16 21:05:45 +03:00
Claudiu Popa
d0971d761f Remove handling of pending_urls, which is unused by pylint. 2015-10-16 16:25:30 +03:00
Claudiu Popa
d87a6cd3ea Remove BaseComponent and additional attributes and methods
The BaseComponent's arguments weren't actually used and by removing
them, a bunch of other methods were removed as well.
2015-10-16 16:22:59 +03:00
Claudiu Popa
f0f7b0546d Use unicode string. 2015-10-16 15:46:28 +03:00
Claudiu Popa
d63283e165 Move VNode into ureports.nodes. 2015-10-16 15:44:55 +03:00
Claudiu Popa
2adf87ad3c Remove unused APIs from VNode class, which got merged with Node class. 2015-10-16 15:43:27 +03:00
Claudiu Popa
58496b326a Simplify the code a little bit by using enumerate instead of a range and len combination. 2015-10-15 19:29:55 +03:00
Claudiu Popa
ad456523e2 Use the u'' prefix throught text writer. 2015-10-15 19:22:54 +03:00
Claudiu Popa
ba50642148 Use enumerate instead of range. 2015-10-15 19:21:48 +03:00
Claudiu Popa
5b9d4b628a Rewrite the operation with a ternary if in order to be clearer. 2015-10-15 19:18:05 +03:00
Claudiu Popa
7fafa3a64b Remove unused nodes and corresponding visit methods. 2015-10-15 19:15:41 +03:00
Claudiu Popa
3feb461aad Bring logilab-common's ureports into pylint.reporters.
With this change, we moved away from depending on logilab-common,
having in Pylint all the components that were used from logilab-common.
The API should be considered an implementation detail and can change at
some point in the future.
Closes issue #621.
2015-09-05 15:24:35 +03:00