edgewall/trac

View on GitHub

Showing 1,048 of 1,370 total issues

Consider simplifying this complex logical expression.
Open

                if db_provider and req.args.get('add_repos'):
                    name = req.args.get('name')
                    pretty_name = name or '(default)'
                    if name in all_repos:
                        raise TracError(_('The repository "%(name)s" already '
Severity: Major
Found in trac/versioncontrol/admin.py - About 40 mins to fix

    Consider simplifying this complex logical expression.
    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."))
    Severity: Major
    Found in trac/admin/web_ui.py - About 40 mins to fix

      Consider simplifying this complex logical expression.
      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
      Severity: Major
      Found in trac/ticket/api.py - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                    if added or removed:
                        if new_spath:
                            status = _(" (added)")
                        else:
                            status = None
        Severity: Major
        Found in tracopt/versioncontrol/svn/svn_prop.py - About 40 mins to fix

          Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def __init__(self, repos, rev, message, author, date):
          Severity: Minor
          Found in trac/versioncontrol/api.py - About 35 mins to fix

            Function _format_browser_link has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def _format_browser_link(self, formatter, ns, path, label):
            Severity: Minor
            Found in trac/versioncontrol/web_ui/browser.py - About 35 mins to fix

              Function render_zip has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              def render_zip(req, filename, repos, root_node, iter_nodes):
              Severity: Minor
              Found in trac/versioncontrol/web_ui/util.py - About 35 mins to fix

                Function _get_link_info has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def _get_link_info(self, path, rev, href, perm):
                Severity: Minor
                Found in trac/versioncontrol/web_ui/browser.py - About 35 mins to fix

                  Function _format_export_link has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def _format_export_link(self, formatter, ns, export, label):
                  Severity: Minor
                  Found in trac/versioncontrol/web_ui/browser.py - About 35 mins to fix

                    Function render_property_diff has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def render_property_diff(name, old_context, old_props,
                    Severity: Minor
                    Found in trac/versioncontrol/web_ui/changeset.py - About 35 mins to fix

                      Function _format_changeset_link has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def _format_changeset_link(self, formatter, ns, chgset, label,
                      Severity: Minor
                      Found in trac/versioncontrol/web_ui/changeset.py - About 35 mins to fix

                        Function evalBezierCurve has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                          function evalBezierCurve(p1, p2, p3, p4, t) {
                        Severity: Minor
                        Found in trac/htdocs/js/workflow_graph.js - About 35 mins to fix

                          Function _render_html has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def _render_html(self, req, repos, chgset, restricted, data):
                          Severity: Minor
                          Found in trac/versioncontrol/web_ui/changeset.py - About 35 mins to fix

                            Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def __init__(self, repos, rev, message=None, author=None, date=None):
                            Severity: Minor
                            Found in trac/versioncontrol/api.py - About 35 mins to fix

                              Function _format_link has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def _format_link(self, formatter, ns, match, label, fullmatch=None):
                              Severity: Minor
                              Found in trac/versioncontrol/web_ui/log.py - About 35 mins to fix

                                Function render_property has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def render_property(self, name, mode, context, props):
                                Severity: Minor
                                Found in trac/versioncontrol/web_ui/browser.py - About 35 mins to fix

                                  Function logger_handler_factory has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def logger_handler_factory(logtype='syslog', logfile=None, level='WARNING',
                                  Severity: Minor
                                  Found in trac/log.py - About 35 mins to fix

                                    Function get_changes has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def get_changes(self, old_path, old_rev, new_path, new_rev,
                                    Severity: Minor
                                    Found in trac/versioncontrol/api.py - About 35 mins to fix

                                      Function _get_download_href has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def _get_download_href(self, href, repos, node, rev):
                                      Severity: Minor
                                      Found in trac/versioncontrol/web_ui/browser.py - About 35 mins to fix

                                        Function get_changes has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def get_changes(self, old_path, old_rev, new_path, new_rev,
                                        Severity: Minor
                                        Found in trac/versioncontrol/cache.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language