File tree Expand file tree Collapse file tree 2 files changed +70
-0
lines changed
api/v1/model/src/commonMain/kotlin
model/src/commonMain/kotlin Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (C) 2024 The ORT Server Authors (See <https://github.com/eclipse-apoapsis/ort-server/blob/main/NOTICE>)
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * https://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ *
16+ * SPDX-License-Identifier: Apache-2.0
17+ * License-Filename: LICENSE
18+ */
19+
20+ package org.eclipse.apoapsis.ortserver.api.v1.model
21+
22+ /* *
23+ * An enum for severities of [Issue]s and other similar objects.
24+ */
25+ enum class Severity {
26+ /* * Used for issues that provide information only. */
27+ HINT ,
28+
29+ /* * Used for issues that could lead to problems. */
30+ WARNING ,
31+
32+ /* * Used for issues that must be addressed. */
33+ ERROR
34+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (C) 2024 The ORT Server Authors (See <https://github.com/eclipse-apoapsis/ort-server/blob/main/NOTICE>)
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * https://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ *
16+ * SPDX-License-Identifier: Apache-2.0
17+ * License-Filename: LICENSE
18+ */
19+
20+ package org.eclipse.apoapsis.ortserver.model
21+
22+ import org.eclipse.apoapsis.ortserver.model.runs.Issue
23+
24+ /* *
25+ * An enum for severities of [Issue]s and other similar objects.
26+ */
27+ enum class Severity {
28+ /* * Used for issues that provide information only. */
29+ HINT ,
30+
31+ /* * Used for issues that could lead to problems. */
32+ WARNING ,
33+
34+ /* * Used for issues that must be addressed. */
35+ ERROR
36+ }
You can’t perform that action at this time.
0 commit comments