Skip to content

Commit

Permalink
Linting fixes for already merged queries. (#3064)
Browse files Browse the repository at this point in the history
* Fix eCommerce query using wrong month for 2021

* Correct labels

* Add noqa to CSS queries
  • Loading branch information
tunetheweb committed Aug 14, 2022
1 parent 1a1a504 commit f04fcf3
Show file tree
Hide file tree
Showing 59 changed files with 72 additions and 72 deletions.
2 changes: 1 addition & 1 deletion sql/2022/css/all_properties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/box_sizing_border_box_selectors.sql
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ FROM (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/calc_operators.sql
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/calc_properties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/calc_units.sql
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/color_alpha_functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/color_formats.sql
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/color_p3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
4 changes: 2 additions & 2 deletions sql/2022/css/css_in_js.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ FROM (
url,
cssInJs
FROM
`httparchive.pages.2022_07_01_*`,
`httparchive.pages.2022_07_01_*`, -- noqa: L062
UNNEST(getCssInJS(payload)) AS cssInJs)
JOIN (
SELECT
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING (client)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/custom_property_adoption.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ FROM (
client,
page)
JOIN
(SELECT _TABLE_SUFFIX AS client, COUNT(0) AS total FROM `httparchive.summary_pages.2022_07_01_*` GROUP BY client)
(SELECT _TABLE_SUFFIX AS client, COUNT(0) AS total FROM `httparchive.summary_pages.2022_07_01_*` GROUP BY client) --noqa: L062
USING
(client)
GROUP BY
Expand Down
4 changes: 2 additions & 2 deletions sql/2022/css/custom_property_depth.sql
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand All @@ -107,7 +107,7 @@ FROM (
custom_properties.depth,
custom_properties.freq
FROM
`httparchive.pages.2022_07_01_*`,
`httparchive.pages.2022_07_01_*`, -- noqa: L062
UNNEST(getCustomPropertyLengths(payload)) AS custom_properties)
JOIN
totals
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/custom_property_functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
4 changes: 2 additions & 2 deletions sql/2022/css/custom_property_names.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ FROM (
getCustomPropertyNames(payload) AS names,
total
FROM
`httparchive.pages.2022_07_01_*`
`httparchive.pages.2022_07_01_*` -- noqa: L062
JOIN (
SELECT
_TABLE_SUFFIX,
COUNT(DISTINCT url) AS total
FROM
`httparchive.pages.2022_07_01_*`
`httparchive.pages.2022_07_01_*` -- noqa: L062
GROUP BY
_TABLE_SUFFIX)
USING (_TABLE_SUFFIX)),
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/custom_property_properties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/custom_property_value_types.sql
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ FROM (
value.type,
value.freq
FROM
`httparchive.pages.2022_07_01_*`
`httparchive.pages.2022_07_01_*` -- noqa: L062
LEFT JOIN
UNNEST(getCustomPropertyValueTypes(JSON_EXTRACT_SCALAR(payload, "$['_css-variables']"))) AS value)
ORDER BY
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/effects_blend_mode_popularity.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/flexbox_grid.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
UNION ALL
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/gradient_adoption.sql
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/gradient_functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/houdini_paint_worklets.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/i18n_dir_html_elements.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ FROM (
SUM(COUNT(0)) OVER (PARTITION BY _TABLE_SUFFIX, dir.element) AS total,
COUNT(0) / SUM(COUNT(0)) OVER (PARTITION BY _TABLE_SUFFIX, dir.element) AS pct
FROM
`httparchive.pages.2022_07_01_*`,
`httparchive.pages.2022_07_01_*`, -- noqa: L062
UNNEST(getMarkupDirs(payload)) AS dir
GROUP BY
client,
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/i18n_logical_properties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/i18n_physical_properties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/keyword_totals.sql
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/layout_properties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/media_query_features.sql
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/media_query_properties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/media_query_responsive.sql
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/media_query_values.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/meta_important_properties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/meta_shorthand_first_properties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/multicol.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/print_page_properties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/print_page_pseudo_classes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/print_stylesheet_adoption.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ WITH print AS (
_TABLE_SUFFIX AS client,
hasPrintStylesheet(payload) AS has_print_stylesheet
FROM
`httparchive.pages.2022_07_01_*`
`httparchive.pages.2022_07_01_*` -- noqa: L062
)


Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/ruby_adoption.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ JOIN (
_TABLE_SUFFIX AS client,
COUNT(0) AS total
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client)
USING
Expand Down
4 changes: 2 additions & 2 deletions sql/2022/css/sass_animated_custom_properties.sql
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ WITH totals AS (
_TABLE_SUFFIX AS client,
COUNT(0) AS total_pages
FROM
`httparchive.summary_pages.2022_07_01_*`
`httparchive.summary_pages.2022_07_01_*` -- noqa: L062
GROUP BY
client
)
Expand All @@ -96,7 +96,7 @@ JOIN (
url AS page,
prop
FROM
`httparchive.pages.2022_07_01_*`,
`httparchive.pages.2022_07_01_*`, -- noqa: L062
UNNEST(getCustomPropertiesWithComputedStyle(payload)) AS prop)
USING
(client, page, prop)
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/sass_combined_variable_names.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FROM (
SUM(COUNT(0)) OVER (PARTITION BY _TABLE_SUFFIX) AS total,
COUNT(0) / SUM(COUNT(0)) OVER (PARTITION BY _TABLE_SUFFIX) AS pct
FROM
`httparchive.pages.2022_07_01_*`,
`httparchive.pages.2022_07_01_*`, -- noqa: L062
UNNEST(getCombinedVariableNames(payload)) AS name
GROUP BY
client,
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/css/sass_combined_variables_distribution.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FROM (
var.usage,
var.freq
FROM
`httparchive.pages.2022_07_01_*`,
`httparchive.pages.2022_07_01_*`, -- noqa: L062
UNNEST(countCombinedVariables(payload)) AS var),
UNNEST([10, 25, 50, 75, 90, 100]) AS percentile
GROUP BY
Expand Down
Loading

0 comments on commit f04fcf3

Please sign in to comment.