All Downloads are FREE. Search and download functionalities are using the official Maven repository.

toolkit.model.33.1.0.source-code.ProjectAnalyzerResult.kt Maven / Gradle / Ivy

Go to download

Part of the OSS Review Toolkit (ORT), a suite to automate software compliance checks.

The newest version!
/*
 * Copyright (C) 2017 The ORT Project Authors (see )
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * SPDX-License-Identifier: Apache-2.0
 * License-Filename: LICENSE
 */

package org.ossreviewtoolkit.model

import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.databind.annotation.JsonSerialize

import org.ossreviewtoolkit.model.utils.PackageSortedSetConverter

/**
 * A class that bundles all information generated during an analysis.
 */
data class ProjectAnalyzerResult(
    /**
     * The project that was analyzed. The tree of dependencies is implicitly contained in the scopes in the form
     * of package references.
     */
    val project: Project,

    /**
     * The set of identified packages used by the project.
     */
    @JsonSerialize(converter = PackageSortedSetConverter::class)
    val packages: Set,

    /**
     * The list of issues that occurred during dependency resolution. Defaults to an empty list.
     * This property is not serialized if the list is empty for consistency with the issue properties in other classes,
     * even if this class is not serialized as part of an [OrtResult].
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    val issues: List = emptyList()
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy