Showing 1,050 of 1,372 total issues
Consider simplifying this complex logical expression. Open
Open
if (show_old or show_new) and (show_entry or not show_diff):
info = {'change': change,
'old': old_node and node_info(old_node, annotated),
'new': new_node and node_info(new_node, annotated),
'props': props,
Consider simplifying this complex logical expression. Open
Open
if mode == 'path_history':
def history():
for h in repos.get_path_history(path, rev):
if 'CHANGESET_VIEW' in req.perm(cset_resource(id=h[1])):
yield h
Consider simplifying this complex logical expression. Open
Open
if subject and subject.isupper() or \
group and group.isupper() or \
target and target.isupper():
raise TracError(_("All upper-cased tokens are reserved for "
"permission names."))
Consider simplifying this complex logical expression. Open
Open
if resource and resource.id and resource.realm == self.realm and \
cnum and (cnum.isdigit() or cnum == 'description'):
href = title = class_ = None
if self.resource_exists(resource):
from trac.ticket.model import Ticket
Consider simplifying this complex logical expression. Open
Open
if added or removed:
if new_spath:
status = _(" (added)")
else:
status = None
Function get_changes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_changes(self, old_path, old_rev, new_path, new_rev,
Function _format_link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _format_link(self, formatter, ns, match, label, fullmatch=None):
Function _format_browser_link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _format_browser_link(self, formatter, ns, path, label):
Function render_property_diff
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def render_property_diff(name, old_context, old_props,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, repos, rev, message, author, date):
Function _format_export_link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _format_export_link(self, formatter, ns, export, label):
Function render_zip
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def render_zip(req, filename, repos, root_node, iter_nodes):
Function evalBezierCurve
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function evalBezierCurve(p1, p2, p3, p4, t) {
Function _get_download_href
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_download_href(self, href, repos, node, rev):
Function render_property
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def render_property(self, name, mode, context, props):
Function _get_link_info
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_link_info(self, path, rev, href, perm):
Function _format_changeset_link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _format_changeset_link(self, formatter, ns, chgset, label,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, repos, rev, message=None, author=None, date=None):
Function _render_html
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _render_html(self, req, repos, chgset, restricted, data):
Function logger_handler_factory
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def logger_handler_factory(logtype='syslog', logfile=None, level='WARNING',