Skip to content

Fix datetime field with empty default #363

Fix datetime field with empty default

Fix datetime field with empty default #363

Triggered via pull request December 11, 2024 16:54
Status Failure
Total duration 25s
Artifacts

cs.yml

on: pull_request
Check code style
15s
Check code style
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 2 warnings
Check code style: tests/WP_SQLite_Translator_Tests.php#L295
String "CREATE TABLE _tmp_table (\n ID BIGINT PRIMARY KEY AUTO_INCREMENT,\n timestamp1 datetime NOT NULL,\n timestamp2 date NOT NULL,\n timestamp3 time NOT NULL,\n timestamp4 timestamp NOT NULL,\n timestamp5 year NOT NULL\n );" does not require double quotes; use single quotes instead
Check code style: tests/WP_SQLite_Translator_Tests.php#L311
String "CREATE TABLE `_tmp_table` (\n `ID` bigint AUTO_INCREMENT,\n `timestamp1` datetime NOT NULL,\n `timestamp2` date NOT NULL,\n `timestamp3` time NOT NULL,\n `timestamp4` timestamp NOT NULL,\n `timestamp5` year NOT NULL,\n PRIMARY KEY (`ID`)\n);" does not require double quotes; use single quotes instead
Check code style: wp-includes/sqlite/class-wp-sqlite-translator.php#L3870
Expected 1 space before opening brace; found 2
Check code style
Process completed with exit code 1.
Check code style
Process completed with exit code 2.
Check code style
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check code style: wp-includes/sqlite/class-wp-sqlite-translator.php#L3696
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space