yegor256/rehttp

View on GitHub

Showing 10 of 10 total issues

Method app has 100 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static Take app(final Base base) throws IOException {
        return new TkFallback(
            new TkWithHeaders(
                new TkVersioned(
                    new TkMeasured(
Severity: Major
Found in src/main/java/net/rehttp/tk/TkApp.java - About 4 hrs to fix

    Method act has 99 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @Override
        @SuppressWarnings({ "unchecked", "PMD.ExcessiveMethodLength" })
        public Response act(final Request req) throws Exception {
            final URI uri = URI.create(this.item.get("url").getS());
            Request request = req;
    Severity: Major
    Found in src/main/java/net/rehttp/base/DyTake.java - About 3 hrs to fix

      Method act has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          @Override
          public Response act(final Request req) throws IOException {
              final URL url;
              try {
                  url = new URI(new RqHref.Smart(req).single("u")).toURL();
      Severity: Minor
      Found in src/main/java/net/rehttp/tk/TkInfo.java - About 1 hr to fix

        Method act has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            @Override
            public Response act(final Request req) throws IOException {
                final URL url;
                try {
                    url = new URI(new RqHref.Smart(req).single("u")).toURL();
        Severity: Minor
        Found in src/main/java/net/rehttp/tk/TkBadge.java - About 1 hr to fix

          Method make has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private static Response make(final String xsl, final Request req,
                  final Scalar<Iterable<XeSource>> src) {
                  final Response raw = new RsXembly(
                      new XeStylesheet(xsl),
                      new XeAppend(
          Severity: Minor
          Found in src/main/java/net/rehttp/tk/RsPage.java - About 1 hr to fix

            Method request has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private static Request request(final Request req, final URI uri) {
                    final StringBuilder path = new StringBuilder(0);
                    path.append(uri.getRawPath());
                    if (path.length() == 0) {
                        path.append('/');
            Severity: Minor
            Found in src/main/java/net/rehttp/base/DyTake.java - About 1 hr to fix

              Method target has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  @Override
                  public Take target(final URL url, final long time) throws IOException {
                      final Collection<Item> items = this.table()
                          .frame()
                          .through(
              Severity: Minor
              Found in src/main/java/net/rehttp/base/DyBase.java - About 1 hr to fix

                Method failures has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    @Override
                    public Collection<Iterable<Directive>> failures(final long after) {
                        return new ListOf<>(
                            new Mapped<>(
                                item -> DyStatus.xembly(item, false),
                Severity: Minor
                Found in src/main/java/net/rehttp/base/DyStatus.java - About 1 hr to fix

                  Method xembly has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private static Iterable<Directive> xembly(
                          final Item item, final boolean full) throws IOException {
                          final long time = Long.parseLong(item.get("time").getN());
                          final long when = Long.parseLong(item.get("when").getN());
                          final long ttl = Long.parseLong(item.get("ttl").getN())
                  Severity: Minor
                  Found in src/main/java/net/rehttp/base/DyStatus.java - About 1 hr to fix

                    Method history has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        @Override
                        public Collection<Iterable<Directive>> history(final long after) {
                            return new ListOf<>(
                                new Mapped<>(
                                    item -> DyStatus.xembly(item, false),
                    Severity: Minor
                    Found in src/main/java/net/rehttp/base/DyStatus.java - About 1 hr to fix
                      Severity
                      Category
                      Status
                      Source
                      Language