Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Spotless for formatting #1619

Merged
merged 7 commits into from
Jun 23, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add general formatting
  • Loading branch information
tylerbenson committed Jun 19, 2020
commit ccc5af0ef4e476008a9efcd571ca3e633084f05d
2 changes: 1 addition & 1 deletion dd-java-agent/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Datadog Java Agent for APM
# Datadog Java Agent for APM
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Jar file has a structure similar to the agent jar:

```bash
jar -tf testjar
jar -tf testjar
META-INF/
META-INF/MANIFEST.MF
parent/
Expand Down
1 change: 0 additions & 1 deletion dd-java-agent/agent-jmxfetch/copy-metric-configs.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ for input_file in $metrics_files ; do
output_file="$build_resources_output_directory/metricconfigs/$output_file.yaml"
cp $input_file $output_file
done

10 changes: 10 additions & 0 deletions gradle/spotless.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,14 @@ spotless {
target '*.gradle'
greclipse().configFile(project.rootProject.rootDir.path + '/gradle/enforcement/spotless-groovy.properties')
}

format 'misc', {
target '**/.gitignore', '**/*.md', '**/*.sh'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
}

task formatCode(dependsOn: ['spotlessApply'])
check.dependsOn 'spotlessApply'