Skip to content

Commit

Permalink
Update version of static analysis pipeline used
Browse files Browse the repository at this point in the history
  • Loading branch information
0xnm committed Apr 3, 2024
1 parent 28694ed commit ad3accb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2016-Present Datadog, Inc.

[*.{kt,kts}]
ktlint_code_style = android_studio
ij_kotlin_allow_trailing_comma_on_call_site = false
ij_kotlin_allow_trailing_comma = false
ij_kotlin_imports_layout=*,java.**,javax.**,kotlin.**,^
max_line_length = 120

# SPDX License Names
[buildSrc/src/main/kotlin/com/datadog/gradle/plugin/checklicenses/SPDXLicense.kt]
ktlint_standard_enum-entry-name-case = disabled
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static-analysis:
variables:
DETEKT_PUBLIC_API: "true"
trigger:
include: "https://gitlab-templates.ddbuild.io/mobile/v13284631-3b5f5110/static-analysis.yml"
include: "https://gitlab-templates.ddbuild.io/mobile/v25558398-8517309a/static-analysis.yml"
strategy: depend

analysis:licenses:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package com.datadog.gradle.plugin.checklicenses

@Suppress("ktlint:enum-entry-name-case", "EnumNaming")
@Suppress("ktlint:standard:enum-entry-name-case", "EnumNaming")
enum class SPDXLicense(val csvName: String) {
_0BSD("0BSD"),
AAL("AAL"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@file:Suppress("UnusedImports")
@file:Suppress("UnusedImports", "ktlint:standard:no-unused-imports")

package com.datadog.example.basic

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.datadog.example.lib.Placeholder // ktlint-disable no-unused-imports unused import is on purpose
import com.datadog.example.lib.Placeholder // unused import is on purpose

/**
* Main Activity for the sample app.
Expand Down

0 comments on commit ad3accb

Please sign in to comment.