Permalink
Browse files

Indentation style fixes (#19679)

  • Loading branch information...
ilovezfs committed Oct 21, 2017
1 parent 39141c8 commit ec2da05a0dc0a47727da888239d219bd604b6b7e
Showing with 1,384 additions and 1,359 deletions.
  1. +4 βˆ’2 Formula/abuse.rb
  2. +4 βˆ’4 Formula/agda.rb
  3. +23 βˆ’23 Formula/allure.rb
  4. +9 βˆ’9 Formula/antlr.rb
  5. +9 βˆ’9 Formula/antlr4-cpp-runtime.rb
  6. +25 βˆ’25 Formula/antlr@3.rb
  7. +11 βˆ’11 Formula/apgdiff.rb
  8. +36 βˆ’36 Formula/aqbanking.rb
  9. +2 βˆ’1 Formula/asciidoc.rb
  10. +7 βˆ’7 Formula/aurora-cli.rb
  11. +6 βˆ’6 Formula/awscli.rb
  12. +7 βˆ’7 Formula/bartycrouch.rb
  13. +5 βˆ’5 Formula/bats.rb
  14. +3 βˆ’3 Formula/bchunk.rb
  15. +3 βˆ’3 Formula/bcpp.rb
  16. +9 βˆ’9 Formula/bochs.rb
  17. +1 βˆ’2 Formula/boost.rb
  18. +1 βˆ’2 Formula/boost@1.55.rb
  19. +1 βˆ’2 Formula/boost@1.57.rb
  20. +1 βˆ’2 Formula/boost@1.59.rb
  21. +1 βˆ’2 Formula/boost@1.60.rb
  22. +3 βˆ’3 Formula/byteman.rb
  23. +5 βˆ’4 Formula/cc65.rb
  24. +2 βˆ’2 Formula/cdargs.rb
  25. +30 βˆ’30 Formula/cflow.rb
  26. +8 βˆ’8 Formula/cfr-decompiler.rb
  27. +17 βˆ’17 Formula/cfssl.rb
  28. +6 βˆ’6 Formula/ck.rb
  29. +3 βˆ’3 Formula/clisp.rb
  30. +3 βˆ’3 Formula/clojurescript.rb
  31. +4 βˆ’4 Formula/couchdb.rb
  32. +14 βˆ’14 Formula/cppp.rb
  33. +17 βˆ’17 Formula/desktop-file-utils.rb
  34. +6 βˆ’6 Formula/dfmt.rb
  35. +26 βˆ’25 Formula/docker-machine.rb
  36. +6 βˆ’6 Formula/dxpy.rb
  37. +2 βˆ’1 Formula/elasticsearch.rb
  38. +2 βˆ’1 Formula/elasticsearch@2.4.rb
  39. +2 βˆ’1 Formula/fabric-completion.rb
  40. +2 βˆ’1 Formula/fail2ban.rb
  41. +3 βˆ’4 Formula/gdal.rb
  42. +13 βˆ’13 Formula/ginac.rb
  43. +3 βˆ’3 Formula/git-series.rb
  44. +5 βˆ’5 Formula/gitlab-runner.rb
  45. +2 βˆ’2 Formula/global.rb
  46. +3 βˆ’3 Formula/gnuplot@4.rb
  47. +28 βˆ’28 Formula/gnuradio.rb
  48. +5 βˆ’5 Formula/go.rb
  49. +5 βˆ’5 Formula/go@1.4.rb
  50. +5 βˆ’5 Formula/go@1.5.rb
  51. +5 βˆ’5 Formula/go@1.6.rb
  52. +5 βˆ’5 Formula/go@1.7.rb
  53. +5 βˆ’5 Formula/go@1.8.rb
  54. +7 βˆ’7 Formula/gollum.rb
  55. +2 βˆ’1 Formula/gpg-agent.rb
  56. +3 βˆ’3 Formula/graphviz.rb
  57. +2 βˆ’2 Formula/groff.rb
  58. +11 βˆ’11 Formula/grunt-cli.rb
  59. +5 βˆ’6 Formula/gtkextra.rb
  60. +120 βˆ’120 Formula/guichan.rb
  61. +2 βˆ’2 Formula/guile.rb
  62. +2 βˆ’2 Formula/guile@2.0.rb
  63. +6 βˆ’6 Formula/gumbo-parser.rb
  64. +25 βˆ’25 Formula/hbase.rb
  65. +10 βˆ’10 Formula/hqx.rb
  66. +37 βˆ’37 Formula/isc-dhcp.rb
  67. +14 βˆ’16 Formula/jasmin.rb
  68. +2 βˆ’1 Formula/jboss-as@5.rb
  69. +12 βˆ’12 Formula/jsonschema2pojo.rb
  70. +2 βˆ’1 Formula/ksh.rb
  71. +5 βˆ’5 Formula/latexml.rb
  72. +17 βˆ’17 Formula/libchewing.rb
  73. +38 βˆ’38 Formula/libffi.rb
  74. +22 βˆ’22 Formula/libggz.rb
  75. +5 βˆ’5 Formula/liblinear.rb
  76. +7 βˆ’7 Formula/libmspub.rb
  77. +23 βˆ’23 Formula/libosmium.rb
  78. +2 βˆ’2 Formula/libsamplerate.rb
  79. +8 βˆ’8 Formula/libsvm.rb
  80. +7 βˆ’7 Formula/libxkbcommon.rb
  81. +15 βˆ’15 Formula/lldpd.rb
  82. +2 βˆ’2 Formula/logrotate.rb
  83. +2 βˆ’1 Formula/logstash.rb
  84. +2 βˆ’1 Formula/mat.rb
  85. +3 βˆ’3 Formula/mdv.rb
  86. +10 βˆ’10 Formula/mdxmini.rb
  87. +4 βˆ’3 Formula/mecab-ipadic.rb
  88. +4 βˆ’3 Formula/mecab-jumandic.rb
  89. +4 βˆ’3 Formula/mecab-ko-dic.rb
  90. +4 βˆ’3 Formula/mecab-unidic-extended.rb
  91. +4 βˆ’3 Formula/mecab-unidic.rb
  92. +19 βˆ’19 Formula/metaproxy.rb
  93. +5 βˆ’5 Formula/mikutter.rb
  94. +2 βˆ’1 Formula/minetest.rb
  95. +2 βˆ’1 Formula/minidlna.rb
  96. +36 βˆ’35 Formula/minio.rb
  97. +4 βˆ’4 Formula/moc.rb
  98. +1 βˆ’1 Formula/moco.rb
  99. +2 βˆ’2 Formula/monitoring-plugins.rb
  100. +1 βˆ’1 Formula/moz-git-tools.rb
  101. +5 βˆ’5 Formula/mysql.rb
  102. +2 βˆ’2 Formula/nagios-plugins.rb
  103. +4 βˆ’4 Formula/nginx.rb
  104. +37 βˆ’37 Formula/nlopt.rb
  105. +24 βˆ’24 Formula/ntfs-3g.rb
  106. +31 βˆ’30 Formula/ooniprobe.rb
  107. +34 βˆ’34 Formula/open-mesh.rb
  108. +2 βˆ’2 Formula/openjazz.rb
  109. +2 βˆ’1 Formula/openttd.rb
  110. +16 βˆ’16 Formula/osrm-backend.rb
  111. +7 βˆ’7 Formula/pazpar2.rb
  112. +2 βˆ’1 Formula/pgbouncer.rb
  113. +18 βˆ’18 Formula/pgplot.rb
  114. +12 βˆ’12 Formula/pla.rb
  115. +2 βˆ’1 Formula/plod.rb
  116. +11 βˆ’11 Formula/pmdmini.rb
  117. +3 βˆ’3 Formula/pony-stable.rb
  118. +3 βˆ’3 Formula/ponyc.rb
  119. +9 βˆ’9 Formula/postgresql@9.4.rb
  120. +4 βˆ’4 Formula/pre-commit.rb
  121. +6 βˆ’6 Formula/procyon-decompiler.rb
  122. +2 βˆ’2 Formula/prometheus.rb
  123. +2 βˆ’2 Formula/pygobject3.rb
  124. +3 βˆ’3 Formula/python.rb
  125. +3 βˆ’3 Formula/python3.rb
  126. +3 βˆ’3 Formula/pytouhou.rb
  127. +10 βˆ’10 Formula/ragel.rb
  128. +2 βˆ’2 Formula/ringojs.rb
  129. +6 βˆ’6 Formula/rtags.rb
  130. +3 βˆ’3 Formula/rtf2latex2e.rb
  131. +3 βˆ’3 Formula/rust.rb
  132. +3 βˆ’3 Formula/s6.rb
  133. +10 βˆ’10 Formula/smali.rb
  134. +2 βˆ’1 Formula/solr.rb
  135. +2 βˆ’1 Formula/solr@5.5.rb
  136. +2 βˆ’1 Formula/somagic.rb
  137. +2 βˆ’1 Formula/sshconfigfs.rb
  138. +3 βˆ’3 Formula/subversion.rb
  139. +3 βˆ’3 Formula/subversion@1.8.rb
  140. +10 βˆ’10 Formula/swift.rb
  141. +10 βˆ’10 Formula/tarantool.rb
  142. +26 βˆ’26 Formula/terraform-inventory.rb
  143. +8 βˆ’8 Formula/tinysvm.rb
  144. +2 βˆ’1 Formula/ucon64.rb
  145. +2 βˆ’1 Formula/varnish.rb
  146. +2 βˆ’1 Formula/varnish@4.rb
  147. +5 βˆ’5 Formula/vowpal-wabbit.rb
  148. +2 βˆ’1 Formula/weechat.rb
  149. +22 βˆ’22 Formula/wla-dx.rb
  150. +18 βˆ’18 Formula/xsd.rb
  151. +20 βˆ’20 Formula/yamcha.rb
  152. +4 βˆ’4 Formula/zita-convolver.rb
  153. +4 βˆ’4 Formula/zsh-autosuggestions.rb
  154. +7 βˆ’7 Formula/zsh-completions.rb
  155. +4 βˆ’4 Formula/zsh-history-substring-search.rb
  156. +5 βˆ’5 Formula/zsh-syntax-highlighting.rb
View
@@ -21,7 +21,8 @@ class Abuse < Formula
depends_on "sdl_mixer"
depends_on "libvorbis"
def startup_script; <<~EOS
def startup_script
<<~EOS
#!/bin/bash
#{libexec}/abuse-bin -datadir "#{pkgshare}" "$@"
EOS
@@ -70,7 +71,8 @@ def install
(bin/"abuse").write startup_script
end
def caveats; <<~EOS
def caveats
<<~EOS
Game settings and saves will be written to the ~/.abuse folder.
EOS
end
View
@@ -80,10 +80,10 @@ def caveats
if build.with? "stdlib"
s += <<~EOS
To use the Agda standard library by default:
mkdir -p ~/.agda
echo #{HOMEBREW_PREFIX}/lib/agda/standard-library.agda-lib >>~/.agda/libraries
echo standard-library >>~/.agda/defaults
To use the Agda standard library by default:
mkdir -p ~/.agda
echo #{HOMEBREW_PREFIX}/lib/agda/standard-library.agda-lib >>~/.agda/libraries
echo standard-library >>~/.agda/defaults
EOS
end
View
@@ -19,29 +19,29 @@ def install
test do
(testpath/"allure-results/allure-result.json").write <<~EOS
{
"uuid": "allure",
"name": "testReportGeneration",
"fullName": "org.homebrew.AllureFormula.testReportGeneration",
"status": "passed",
"stage": "finished",
"start": 1494857300486,
"stop": 1494857300492,
"labels": [
{
"name": "package",
"value": "org.homebrew"
},
{
"name": "testClass",
"value": "AllureFormula"
},
{
"name": "testMethod",
"value": "testReportGeneration"
}
]
}
{
"uuid": "allure",
"name": "testReportGeneration",
"fullName": "org.homebrew.AllureFormula.testReportGeneration",
"status": "passed",
"stage": "finished",
"start": 1494857300486,
"stop": 1494857300492,
"labels": [
{
"name": "package",
"value": "org.homebrew"
},
{
"name": "testClass",
"value": "AllureFormula"
},
{
"name": "testMethod",
"value": "testReportGeneration"
}
]
}
EOS
system "#{bin}/allure", "generate", "#{testpath}/allure-results", "-o", "#{testpath}/allure-report"
end
View
@@ -25,15 +25,15 @@ def install
test do
path = testpath/"Expr.g4"
path.write <<~EOS
grammar Expr;
prog:\t(expr NEWLINE)* ;
expr:\texpr ('*'|'/') expr
|\texpr ('+'|'-') expr
|\tINT
|\t'(' expr ')'
;
NEWLINE :\t[\\r\\n]+ ;
INT :\t[0-9]+ ;
grammar Expr;
prog:\t(expr NEWLINE)* ;
expr:\texpr ('*'|'/') expr
|\texpr ('+'|'-') expr
|\tINT
|\t'(' expr ')'
;
NEWLINE :\t[\\r\\n]+ ;
INT :\t[0-9]+ ;
EOS
ENV.prepend "CLASSPATH", "#{prefix}/antlr-#{version}-complete.jar", ":"
ENV.prepend "CLASSPATH", ".", ":"
@@ -21,15 +21,15 @@ def install
test do
(testpath/"test.cc").write <<~EOS
#include <antlr4-runtime.h>
int main(int argc, const char* argv[]) {
try {
throw antlr4::ParseCancellationException() ;
} catch (antlr4::ParseCancellationException &exception) {
/* ignore */
}
return 0 ;
}
#include <antlr4-runtime.h>
int main(int argc, const char* argv[]) {
try {
throw antlr4::ParseCancellationException() ;
} catch (antlr4::ParseCancellationException &exception) {
/* ignore */
}
return 0 ;
}
EOS
system ENV.cxx, "-std=c++11", "-I#{include}/antlr4-runtime", "test.cc", "-L#{lib}", "-lantlr4-runtime", "-o", "test"
system "./test"
View
@@ -18,40 +18,40 @@ def install
libexec.install "antlr-3.5.2-complete.jar"
(share+"java").install_symlink "#{libexec}/antlr-3.5.2-complete.jar" => "antlr3.jar"
(bin+"antlr3").write <<~EOS
#!/bin/sh
java -jar #{libexec}/antlr-3.5.2-complete.jar "$@"
#!/bin/sh
java -jar #{libexec}/antlr-3.5.2-complete.jar "$@"
EOS
end
test do
exppath = testpath/"Exp.g"
exppath.write <<~EOS
grammar Exp;
eval returns [double value]
: exp=atomExp {$value = $exp.value;}
;
atomExp returns [double value]
: n=Number {$value = Double.parseDouble($n.text);}
;
Number
: ('0'..'9')+ ('.' ('0'..'9')+)?
;
WS
: (' ' | '\\t' | '\\r'| '\\n') {\$channel=HIDDEN;}
;
grammar Exp;
eval returns [double value]
: exp=atomExp {$value = $exp.value;}
;
atomExp returns [double value]
: n=Number {$value = Double.parseDouble($n.text);}
;
Number
: ('0'..'9')+ ('.' ('0'..'9')+)?
;
WS
: (' ' | '\\t' | '\\r'| '\\n') {\$channel=HIDDEN;}
;
EOS
javapath = testpath/"ANTLRDemo.java"
javapath.write <<~EOS
import org.antlr.runtime.*;
public class ANTLRDemo {
public static void main(String[] args) throws Exception {
ANTLRStringStream in = new ANTLRStringStream("42");
ExpLexer lexer = new ExpLexer(in);
CommonTokenStream tokens = new CommonTokenStream(lexer);
ExpParser parser = new ExpParser(tokens);
System.out.println(parser.eval()); // print the value
}
}
import org.antlr.runtime.*;
public class ANTLRDemo {
public static void main(String[] args) throws Exception {
ANTLRStringStream in = new ANTLRStringStream("42");
ExpLexer lexer = new ExpLexer(in);
CommonTokenStream tokens = new CommonTokenStream(lexer);
ExpParser parser = new ExpParser(tokens);
System.out.println(parser.eval()); // print the value
}
}
EOS
ENV.prepend "CLASSPATH", "#{share}/java/antlr3.jar", ":"
ENV.prepend "CLASSPATH", ".", ":"
View
@@ -31,23 +31,23 @@ def install
sql_new = testpath/"new.sql"
sql_orig.write <<~EOS
SET search_path = public, pg_catalog;
SET default_tablespace = '';
CREATE TABLE testtable (field1 integer);
ALTER TABLE public.testtable OWNER TO fordfrog;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
CREATE TABLE testtable (field1 integer);
ALTER TABLE public.testtable OWNER TO fordfrog;
EOS
sql_new.write <<~EOS
SET search_path = public, pg_catalog;
SET default_tablespace = '';
CREATE TABLE testtable (field1 integer,
field2 boolean DEFAULT false NOT NULL);
ALTER TABLE public.testtable OWNER TO fordfrog;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
CREATE TABLE testtable (field1 integer,
field2 boolean DEFAULT false NOT NULL);
ALTER TABLE public.testtable OWNER TO fordfrog;
EOS
expected = <<~EOS.strip
ALTER TABLE testtable
\tADD COLUMN field2 boolean DEFAULT false NOT NULL;
ALTER TABLE testtable
\tADD COLUMN field2 boolean DEFAULT false NOT NULL;
EOS
result = pipe_output("#{bin}/apgdiff #{sql_orig} #{sql_new}").strip
View
@@ -43,49 +43,49 @@ def install
ENV["TZ"] = "UTC"
context = "balance.ctx"
(testpath/context).write <<~EOS
accountInfoList {
accountInfo {
char bankCode="110000000"
char bankName="STRIPE TEST BANK"
char accountNumber="000123456789"
char accountName="demand deposit"
char iban="US44110000000000123456789"
char bic="BYLADEM1001"
char owner="JOHN DOE"
char currency="USD"
int accountType="0"
int accountId="2"
statusList {
status {
int time="1388664000"
notedBalance {
value {
char value="123456%2F100"
char currency="USD"
} #value
accountInfoList {
accountInfo {
char bankCode="110000000"
char bankName="STRIPE TEST BANK"
char accountNumber="000123456789"
char accountName="demand deposit"
char iban="US44110000000000123456789"
char bic="BYLADEM1001"
char owner="JOHN DOE"
char currency="USD"
int accountType="0"
int accountId="2"
statusList {
status {
int time="1388664000"
} #notedBalance
} #status
status {
int time="1388750400"
notedBalance {
value {
char value="123456%2F100"
char currency="USD"
} #value
notedBalance {
value {
char value="132436%2F100"
char currency="USD"
} #value
int time="1388664000"
} #notedBalance
} #status
status {
int time="1388750400"
} #notedBalance
} #status
} #statusList
} # accountInfo
} # accountInfoList
notedBalance {
value {
char value="132436%2F100"
char currency="USD"
} #value
int time="1388750400"
} #notedBalance
} #status
} #statusList
} # accountInfo
} # accountInfoList
EOS
assert_match /^Account\s+110000000\s+000123456789\s+STRIPE TEST BANK\s+03.01.2014\s+12:00\s+1324.36\s+USD\s+$/, shell_output("#{bin}/aqbanking-cli listbal -c #{context}")
end
View
@@ -34,7 +34,8 @@ def install
system "make", "docs"
end
def caveats; <<~EOS
def caveats
<<~EOS
If you intend to process AsciiDoc files through an XML stage
(such as a2x for manpage generation) you need to add something
like:
View
@@ -23,13 +23,13 @@ def install
test do
ENV["AURORA_CONFIG_ROOT"] = "#{testpath}/"
(testpath/"clusters.json").write <<~EOS
[{
"name": "devcluster",
"slave_root": "/tmp/mesos/",
"zk": "172.16.64.185",
"scheduler_zk_path": "/aurora/scheduler",
"auth_mechanism": "UNAUTHENTICATED"
}]
[{
"name": "devcluster",
"slave_root": "/tmp/mesos/",
"zk": "172.16.64.185",
"scheduler_zk_path": "/aurora/scheduler",
"auth_mechanism": "UNAUTHENTICATED"
}]
EOS
system "#{bin}/aurora_admin", "get_cluster_config", "devcluster"
end
View
@@ -30,12 +30,12 @@ def install
bash_completion.install "bin/aws_bash_completer"
zsh_completion.install "bin/aws_zsh_completer.sh"
(zsh_completion/"_aws").write <<~EOS
#compdef aws
_aws () {
local e
e=$(dirname ${funcsourcetrace[1]%:*})/aws_zsh_completer.sh
if [[ -f $e ]]; then source $e; fi
}
#compdef aws
_aws () {
local e
e=$(dirname ${funcsourcetrace[1]%:*})/aws_zsh_completer.sh
if [[ -f $e ]]; then source $e; fi
}
EOS
end
Oops, something went wrong.

0 comments on commit ec2da05

Please sign in to comment.