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 21, 2023
1 parent 2804c6c commit 1d25c3d
Show file tree
Hide file tree
Showing 106 changed files with 2,599 additions and 3,236 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 @@ -62,6 +62,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 @@ -101,11 +129,16 @@ spotless {
}
)
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 1d25c3d

Please sign in to comment.