Skip to content

Commit

Permalink
Removed Type Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Jul 14, 2023
1 parent cb41f47 commit ac4579e
Show file tree
Hide file tree
Showing 104 changed files with 2,571 additions and 3,218 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/cpg.common-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ kotlin {

tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn", "-Xcontext-receivers")
}
}

Expand Down
35 changes: 34 additions & 1 deletion buildSrc/src/main/kotlin/cpg.formatting-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,34 @@ val headerWithStars = """/*
*/
"""

val headerWithSlashes = """//
// Copyright (c) ${"$"}YEAR, Fraunhofer AISEC. All rights reserved.
//
// 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
//
// http://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.
//
// ${'$'}${'$'}${'$'}${'$'}${'$'}${'$'}\ ${'$'}${'$'}${'$'}${'$'}${'$'}${'$'}${'$'}\ ${'$'}${'$'}${'$'}${'$'}${'$'}${'$'}\
// ${'$'}${'$'} __${'$'}${'$'}\ ${'$'}${'$'} __${'$'}${'$'}\ ${'$'}${'$'} __${'$'}${'$'}\
// ${'$'}${'$'} / \__|${'$'}${'$'} | ${'$'}${'$'} |${'$'}${'$'} / \__|
// ${'$'}${'$'} | ${'$'}${'$'}${'$'}${'$'}${'$'}${'$'}${'$'} |${'$'}${'$'} |${'$'}${'$'}${'$'}${'$'}\
// ${'$'}${'$'} | ${'$'}${'$'} ____/ ${'$'}${'$'} |\_${'$'}${'$'} |
// ${'$'}${'$'} | ${'$'}${'$'}\ ${'$'}${'$'} | ${'$'}${'$'} | ${'$'}${'$'} |
// \${'$'}${'$'}${'$'}${'$'}${'$'} |${'$'}${'$'} | \${'$'}${'$'}${'$'}${'$'}${'$'} |
// \______/ \__| \______/
//
//
"""

val headerWithHashes = """#
# Copyright (c) ${"$"}YEAR, Fraunhofer AISEC. All rights reserved.
#
Expand Down Expand Up @@ -109,11 +137,16 @@ spotless {

python {
target("src/main/**/*.py")
targetExclude(
fileTree(project.projectDir) {
include("src/main/nodejs/node_modules")
}
)
licenseHeader(headerWithHashes, "from").yearSeparator(" - ")
}

format("golang") {
target("src/main/golang/**/*.go")
licenseHeader(headerWithStars, "package").yearSeparator(" - ")
licenseHeader(headerWithSlashes, "package").yearSeparator(" - ")
}
}

Large diffs are not rendered by default.

Loading

0 comments on commit ac4579e

Please sign in to comment.