encryptorcode/iam-oauth

View on GitHub
example/src/main/java/com/example/simpleServer/controllers/MainController.java

Summary

Maintainability
A
0 mins
Test Coverage

Package name 'com.example.simpleServer.controllers' must match pattern '^[a-z]+(.[a-z][a-z0-9]*)*$'.
Open

package com.example.simpleServer.controllers;

Checks that package names conform to a specified pattern.

The default value of format for module PackageName has beenchosen to match the requirements in the JavaLanguage specification and the Sun coding conventions. Howeverboth underscores and uppercase letters are rather uncommon, so mostconfigurations should probably assign value ^[a-z]+(\.[a-z][a-z0-9]*)*$ toformat for module PackageName.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Line is longer than 100 characters (found 105).
Open

    private static final String NEW_LINE = "<br/>\n"; // Adding a \n because I am a fan of curl. Are you?

Checks for long lines.

Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

Line is longer than 100 characters (found 126).
Open

            return "<img src=\"" + user.getProfileImage() + "\" width=250px height=250px style=\"float: right\">" + NEW_LINE +

Checks for long lines.

Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

'+' should be on a new line.
Open

                    "Hello " + user.getFullName() + "," + NEW_LINE +

'+' should be on a new line.
Open

            return "Authentication Framework has detected that you are not logged in." + NEW_LINE +

'+' should be on a new line.
Open

            return "<img src=\"" + user.getProfileImage() + "\" width=250px height=250px style=\"float: right\">" + NEW_LINE +

'+' should be on a new line.
Open

                    "You are logged in using this authentication framework successfully." + NEW_LINE +

'+' should be on a new line.
Open

                "<ul>" + NEW_LINE +

Line is longer than 100 characters (found 102).
Open

                    "You are logged in using this authentication framework successfully." + NEW_LINE +

Checks for long lines.

Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

'+' should be on a new line.
Open

                "<li><a href=\"/login?provider=google\">GOOGLE</a></li>" + NEW_LINE +

Line is longer than 100 characters (found 103).
Open

        return "Below given are the list of strategies loaded. Click on any one to login." + NEW_LINE +

Checks for long lines.

Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

'+' should be on a new line.
Open

        return "Below given are the list of strategies loaded. Click on any one to login." + NEW_LINE +

Line is longer than 100 characters (found 123).
Open

    private static final AuthenticationService<Session, User> AUTHENTICATION_SERVICE = AuthenticationService.getInstance();

Checks for long lines.

Rationale: Long lines are hard to read in printouts or if developershave limited screen space for the source code, e.g. if the IDEdisplays additional information like project tree, class hierarchy,etc.

This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.

There are no issues that match your filters.

Category
Status