Showing 239 of 782 total issues
Method createDashboardGovernment
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void createDashboardGovernment(final ResponsiveRow row) {
final CssLayout layout = createLayoutWithTitle("Government");
final HorizontalLayout horizontalLayout = new HorizontalLayout();
Method createContent
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Secured({ "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
final VerticalLayout content = createPanelContent();
Method getStepMapping
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected StepMapping<AssignmentData> getStepMapping() {
return new StepMapping<>() {
@Override
Method getStepMapping
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected StepMapping<ViewRiksdagenPartyRoleMember> getStepMapping() {
return new StepMapping<>() {
@Override
Function com_hack23_cia_web_widgets_charts_SankeyChart
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function com_hack23_cia_web_widgets_charts_SankeyChart() {
var connector;
function init() {
google.charts.load('current', {'packages':['sankey']});
Method getStepMapping
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected StepMapping<ViewRiksdagenCommitteeRoleMember> getStepMapping() {
return new StepMapping<>() {
@Override
Method createContent
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
final VerticalLayout panelContent = createPanelContent();
Method getStepMapping
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected StepMapping<ViewRiksdagenGovermentRoleMember> getStepMapping() {
return new StepMapping<>() {
@Override
Method processService
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
@Secured({ "ROLE_USER", "ROLE_ADMIN"})
public DeleteAccountResponse processService(
final DeleteAccountRequest serviceRequest) {
Method processService
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
public LoginResponse processService(final LoginRequest serviceRequest) {
final LoginResponse inputValidation = inputValidation(serviceRequest);
if (inputValidation != null) {
Method createContent
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Secured({ "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
final VerticalLayout content = createPanelContent();
Method createPartyMenuBar
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void createPartyMenuBar(final MenuBar menuBar, final String pageId) {
initApplicationMenuBar(menuBar);
applicationMenuItemFactory.addRankingMenu(menuBar);
Method refreshViews
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void refreshViews() {
final JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
Method createContent
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Secured({ "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
final VerticalLayout content = createPanelContent();
Method createContent
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Secured({ "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
final VerticalLayout content = createPanelContent();
Method getBallot
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public List<VoteData> getBallot(final String id) throws DataFailureException {
final String url = BALLOT.replace(ID_KEY, id);
try {
Method createContent
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
final VerticalLayout panelContent = createPanelContent();
Method createContent
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
final VerticalLayout panelContent = createPanelContent();
Method createDashboardParliament
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void createDashboardParliament(final ResponsiveRow row) {
final CssLayout layout = createLayoutWithTitle("Parliament");
final HorizontalLayout horizontalLayout = new HorizontalLayout();
Responsive.makeResponsive(horizontalLayout);
Method createUserAccount
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private UserAccount createUserAccount(final RegisterUserRequest serviceRequest) {
final ApplicationConfiguration registeredUsersGetAdminConfig = applicationConfigurationService
.checkValueOrLoadDefault("Registered User All get Role Admin", "Registered User All get Role Admin",
ConfigurationGroup.AUTHORIZATION, RegisterUserService.class.getSimpleName(),