Uh oh!
There was an error while loading. Please reload this page.
tidy: check fluent files for style - #100671
Conversation
rust-highfive
commented
Aug 17, 2022
r? @jyn514 (rust-highfive has picked a reviewer for you, use r? to override) |
davidtwco
left a comment
There was a problem hiding this comment.
This looks good to me, thanks for the patch!
Uh oh!
There was an error while loading. Please reload this page.
davidtwco
commented
Aug 17, 2022
r? @davidtwco |
davidtwco
left a comment
There was a problem hiding this comment.
Great! Will r=me once CI passes.
davidtwco
commented
Aug 17, 2022
cc @Mark-Simulacrum for the tidy change |
davidtwco
commented
Aug 17, 2022
@bors r+ rollup |
bors
commented
Aug 17, 2022
est31
commented
Aug 17, 2022
I'm not sure this PR is a good idea, at least for non-english fluent files, because those will be edited using a tool (at least according to what @Manishearth said), and that tool might not create ftl files that conform with tidy checks. Even with the submodules/subtrees that rustc uses, a lot of them are exempt from tidy, see the |
davidtwco
commented
Aug 17, 2022
English Fluent will be maintained manually like it is now. We can add whatever exceptions we need for submodules or translations or however we end up handling that, so I think this should be okay. |
…twco tidy: check fluent files for style Inspired by rust-lang#100651 (comment) There were a lot of line length violations, so I've excepted that lint - I'm not sure if fluent files can be formatted to avoid long lines at all.
matthiaskrgr
commented
Aug 17, 2022
@bors r- files are actually causing errors |
Xiretza
commented
Aug 18, 2022
My plan is to wait until #100651 lands, then rebase this (fixing the new formatting problems) and hope it doesn't race another PR that adds whitespace problems. Sound sensible? |
fd05fa0 to
2954571Comparerustbot
commented
Aug 18, 2022
|
Xiretza
commented
Aug 18, 2022
@rustbot ready |
davidtwco
commented
Aug 18, 2022
I'll approve this but not for inclusion in rollups just in case it gets mixed in with the other translation PRs that are happening and makes things fail. @bors r+ rollup=never |
bors
commented
Aug 18, 2022
bors
commented
Aug 22, 2022
bors
commented
Aug 22, 2022
☀️ Test successful - checks-actions |
rust-timer
commented
Aug 22, 2022
Finished benchmarking commit (d0ea1d7): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
… r=davidtwco fluent: mandate slug names to be prefixed by crate name This is currently only convention, but not actively checked for. Additionally, improve error messages to highlight the path of the offending fluent file rather than the identifier preceding it. This will conflict with rust-lang#100671, so I'll leave it as draft until that's merged.
Inspired by #100651 (comment)
There were a lot of line length violations, so I've excepted that lint - I'm not sure if fluent files can be formatted to avoid long lines at all.