Mario Zechner 044cb3366e Fix formatters gradle wrapper version for jreleaser. 1 tháng trước cách đây
..
gradle 044cb3366e Fix formatters gradle wrapper version for jreleaser. 1 tháng trước cách đây
.clang-format 3f6bc07bad Move all formatter related files to formatters/ 4 năm trước cách đây
.editorconfig 34d5af502e [tools] Updated csharp .editorconfig formatter configuration to include a newline the the end of file. Removed commented out unused code. 3 năm trước cách đây
README.md fd617b562e [libgdx] Fixed AnimationState.trackEntry() 3 năm trước cách đây
build.gradle 12f11cbbf9 Add spine-android to formatter 1 năm trước cách đây
eclipse-formatter.xml 109356268f Eclipse formatter update. 4 năm trước cách đây
format.sh 2022713bd2 [c][cpp] Formatter pass. 3 năm trước cách đây
gradlew 3f6bc07bad Move all formatter related files to formatters/ 4 năm trước cách đây
gradlew.bat 3f6bc07bad Move all formatter related files to formatters/ 4 năm trước cách đây
settings.gradle 41371b6f6e Fix Gradle build for spotless formatting. 3 năm trước cách đây
tsfmt.json 61f63549d4 Apply tsfmt to TypeScript sources, formatting pass on .ts files. 4 năm trước cách đây

README.md

Formatters

This folder contains formatter configuration files to be used with IDEs as well as the spotless formatter expressed in the Gradle project in this directory.

You will need the following on your PATH:

  • JDK 10+
  • clang-format 12.0.1 (i.e. brew install clang-format). Also set the environment variable CLANGFORMAT to the path of the clang-format executable.
  • dotnet format (i.e. dotnet tool install -g dotnet-format, comes with dotnet 6 out of the box)
  • tsfmt, (i.e. npm install -g typescript-formatter)

To run the formatter, invoke the format.sh script. This will shuffle around the Gradle config files, invoke spotless, then undo the config file shuffling. Invoking ./gradlew spotlessApply from the formatters/ directory will not work.