Skip to content

Commit c9bf018

Browse files
authored
Bump CodeNarc to 2.2.0 (DataDog#3267)
* Bump CodeNarc to 2.2.0 * Run CodeNarc Groovy code check in pre-commit hook Co-authored-by: Yury Gribkov <[email protected]>
1 parent a217492 commit c9bf018

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.githooks/pre-commit

+3
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ if ! ./gradlew spotlessCheck; then
1212
echo ""
1313
exit 1
1414
fi
15+
16+
# Run Groovy code check
17+
./gradlew codenarcTest -PskipTests

gradle/codenarc.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: "codenarc"
22

33
dependencies {
4-
codenarc 'org.codenarc:CodeNarc:1.5'
4+
codenarc 'org.codenarc:CodeNarc:2.2.0'
55
// if the groovy transitive dependencies are upgraded, this may not be pulled
66
codenarc 'org.codehaus.groovy:groovy-templates'
77
}

0 commit comments

Comments
 (0)