Skip to content

Commit

Permalink
Merge pull request #234 from DataDog/nogorodnikov/update-version-of-s…
Browse files Browse the repository at this point in the history
…tatic-analysis-pipeline-used

Update version of static analysis pipeline used
  • Loading branch information
0xnm authored Apr 3, 2024
2 parents 36205c4 + ad3accb commit 6c8f959
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 6c8f959

Please sign in to comment.