org.bubuabu.sonar.fortifysca.FortifyScaConstants.java Source code

Java tutorial

Introduction

Here is the source code for org.bubuabu.sonar.fortifysca.FortifyScaConstants.java

Source

/*
 * SonarQube Fortify Sca Plugin
 * Copyright (C) 2014 Vivien HENRIET
 * bubuabu@bubuabu.org
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
 */
package org.bubuabu.sonar.fortifysca;

import org.apache.commons.lang.StringUtils;

public final class FortifyScaConstants {
    public static final String FPR_REPORT_FILE = "sca-scan.fpr";
    public static final String AUDIT_FVDL_FILE = "audit.fvdl";
    public static final String SCA_LOG_FILE = "sca.log";

    public static final String SOURCEANALYZER_LOCATION_PROPERTY = "fortifysca.sourceanalyzer.location";
    public static final String ENABLE_PROPERTY = "fortifysca.enable";
    public static final String RULEPACK_LOCATION_PROPERTY = "fortifysca.rulepack.location";

    private FortifyScaConstants() {
    }

    public static String fortifyScaRepositoryKey(String language) {
        return "fortifysca-" + StringUtils.lowerCase(language);
    }
}