File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -779,6 +779,11 @@ namespace :dotnet do
779779 Bazel . execute ( 'build' , args , '//dotnet:all' )
780780 end
781781
782+ desc 'Format .NET source files'
783+ task :format do
784+ Bazel . execute ( 'run' , [ ] , '//dotnet:format' )
785+ end
786+
782787 desc 'Package .NET bindings into zipped assets and stage for release'
783788 task :package do |_task , arguments |
784789 args = arguments . to_a . compact . empty? ? [ '--stamp' ] : arguments . to_a . compact
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ section "Buildifier"
1414echo " buildifier" >&2
1515bazel run //:buildifier
1616
17+ section " Dotnet"
18+ echo " dotnet format" >&2
19+ bazel run //dotnet:format
20+
1721section " Java"
1822echo " google-java-format" >&2
1923find " $PWD /java" -type f -name ' *.java' | xargs " $GOOGLE_JAVA_FORMAT " --replace
You can’t perform that action at this time.
0 commit comments