Skip to content
#

formatter

Here are 1,302 public repositories matching this topic...

black
ichard26
ichard26 commented Jul 3, 2022

I'm not sure this will help us much; Black is not a particularly security-sensitive tool.

Maybe we should document that blackd shouldn't be run as a publicly accessible server though.

Originally posted by @JelleZijlstra in psf/black#3045 (comment)

good first issue T: documentation C: integrations
dankegel
dankegel commented Jun 29, 2022

Given the invalid command

let x/x

bash rightfully complains:

$ let x/x
bash: let: x/x: division by 0 (error token is "x")

but gosh panics:

$ go run cmd/gosh/main.go
$ let x/x
panic: runtime error: integer divide by zero

goroutine 1 [running]:
mvdan.cc/sh/v3/expand.binArit(0x111540?, 0x589de0?, 0xc000122f28?)
	/home/dank/src/sh/expand/arith.go:173 +0x245
mv
xhalo32
xhalo32 commented May 31, 2022
trait Test</* comment */ T> {}

Gets reformatted as

trait Test</* comment */ T> /* comment */ T> {}

Whereas no changes were expected.

Playground:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=88c36ba8a83e2c01030bbbf95327be6a

Setting version = Two has no effect.

λ rustfmt --version
rustfmt 1.4.38-stable (7737e0b 2022-04
bug good first issue a-comments help wanted

Improve this page

Add a description, image, and links to the formatter topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the formatter topic, visit your repo's landing page and select "manage topics."

Learn more