mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:37:44 +00:00
Meta+Userland: Run the GML formatter on CI and pre-commit
Now that the GML formatter is both perserving comments and also mostly agrees to the existing GML style, it can be used to auto-format all the GML files in the system. This commit does not only contain the scripts for running the formatting on CI and the pre-commit hook, but also initially formats all the existing GML files so that the hook is successfull.
This commit is contained in:
parent
32de6dde4c
commit
6ee597369d
60 changed files with 221 additions and 552 deletions
|
@ -1,7 +1,6 @@
|
|||
@GUI::Widget {
|
||||
name: "main"
|
||||
fill_with_background_color: true
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [4]
|
||||
spacing: 4
|
||||
|
@ -13,7 +12,6 @@
|
|||
|
||||
@GUI::Widget {
|
||||
shrink_to_fit: true
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
spacing: 10
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
@GUI::Widget {
|
||||
shrink_to_fit: true
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::Label {
|
||||
|
@ -21,7 +20,6 @@
|
|||
|
||||
@GUI::Widget {
|
||||
shrink_to_fit: true
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::Label {
|
||||
|
@ -36,7 +34,6 @@
|
|||
|
||||
@GUI::Widget {
|
||||
shrink_to_fit: true
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::Label {
|
||||
|
|
|
@ -6,17 +6,13 @@
|
|||
@GUI::HorizontalSplitter {
|
||||
@GUI::Widget {
|
||||
name: "csv_options"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
}
|
||||
layout: @GUI::VerticalBoxLayout
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::GroupBox {
|
||||
title: "Delimiter"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
@ -47,9 +43,7 @@
|
|||
|
||||
@GUI::Widget {
|
||||
fixed_height: 25
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::RadioButton {
|
||||
name: "delimiter_other_radio"
|
||||
|
@ -66,7 +60,6 @@
|
|||
|
||||
@GUI::GroupBox {
|
||||
title: "Quote"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
@ -85,9 +78,7 @@
|
|||
|
||||
@GUI::Widget {
|
||||
fixed_height: 25
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::RadioButton {
|
||||
name: "quote_other_radio"
|
||||
|
@ -101,14 +92,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
}
|
||||
@GUI::Widget
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_height: 25
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::Label {
|
||||
text: "Escape by "
|
||||
|
@ -121,16 +109,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
}
|
||||
@GUI::Widget
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_height: 25
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "export_header_check_box"
|
||||
|
@ -147,7 +132,6 @@
|
|||
@GUI::GroupBox {
|
||||
title: "Data Preview"
|
||||
fixed_width: 150
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
|
|
@ -6,17 +6,13 @@
|
|||
@GUI::HorizontalSplitter {
|
||||
@GUI::Widget {
|
||||
name: "csv_options"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
}
|
||||
layout: @GUI::VerticalBoxLayout
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::GroupBox {
|
||||
title: "Delimiter"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
@ -47,9 +43,7 @@
|
|||
|
||||
@GUI::Widget {
|
||||
fixed_height: 25
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::RadioButton {
|
||||
name: "delimiter_other_radio"
|
||||
|
@ -66,7 +60,6 @@
|
|||
|
||||
@GUI::GroupBox {
|
||||
title: "Quote"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
@ -85,9 +78,7 @@
|
|||
|
||||
@GUI::Widget {
|
||||
fixed_height: 25
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::RadioButton {
|
||||
name: "quote_other_radio"
|
||||
|
@ -101,14 +92,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
}
|
||||
@GUI::Widget
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_height: 25
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::Label {
|
||||
text: "Escape by "
|
||||
|
@ -121,22 +109,19 @@
|
|||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
}
|
||||
@GUI::Widget
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::GroupBox {
|
||||
title: "Trim Field Spaces"
|
||||
fixed_height: 40
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [4, 4, 0]
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "trim_leading_field_spaces_check_box"
|
||||
|
@ -160,17 +145,16 @@
|
|||
@GUI::GroupBox {
|
||||
title: "Data Preview"
|
||||
fixed_width: 150
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
||||
@GUI::StackWidget {
|
||||
name: "data_preview_widget"
|
||||
|
||||
@GUI::TableView {
|
||||
name: "data_preview_table_view"
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
name: "data_preview_error_label"
|
||||
word_wrap: true
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
@GUI::Widget {
|
||||
name: "select_format"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [20]
|
||||
}
|
||||
|
@ -13,9 +12,7 @@
|
|||
|
||||
@GUI::Widget {
|
||||
fixed_height: 25
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
|
||||
@GUI::Label {
|
||||
text: "Type: "
|
||||
|
@ -28,6 +25,5 @@
|
|||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
}
|
||||
@GUI::Widget
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue