github.com/cheshirekow/buildtools@v0.0.0-20200224190056-5d637702fe81/build/testdata/062.build.golden (about) 1 foo( 2 srcs = [ 3 "list", 4 "not", 5 "sorted", 6 ], # this should be sorted in the build mode only 7 bar = [ 8 f(x) 9 for x in [ 10 # please keep sorted 11 "list", 12 "not", 13 "sorted", 14 ] 15 ], 16 # keep sorted 17 foo = [ 18 "list", 19 "not", 20 "sorted", 21 ], 22 ) 23 24 # buildifier: keep sorted 25 x = [ 26 "list", 27 "not", 28 "sorted", 29 ] 30 31 y = [ 32 "not", 33 "sorted", 34 "list", 35 ] 36 37 # buildifier: keep sorted 38 [ 39 "list", 40 "not", 41 "sorted", 42 ] 43 44 [ 45 "not", 46 "sorted", 47 "list", 48 ] 49 50 [ 51 # buildifier: keep sorted 52 "list", 53 "not", 54 "sorted", 55 ]