- Status changed to Needs review
almost 2 years ago 6:58am 23 March 2023 - 🇮🇳India mrinalini9 New Delhi
Rerolled patch #3, please review it.
Thanks!
- Status changed to Needs work
almost 2 years ago 2:59pm 27 March 2023 - 🇮🇳India rajneeshb New Delhi
Patch #5 applied but there are still coding standard issues
FILE: /modules/contrib/better_exposed_filters/tests/src/FunctionalJavascript/BetterExposedFiltersTest.php
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------
79 | WARNING | Unused variable $display.
135 | WARNING | Unused variable $display.
136 | WARNING | Unused variable $block.
192 | WARNING | Unused variable $display.
--------------------------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/tests/src/Kernel/Plugin/sort/LinksSortWidgetKernelTest.php
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------
27 | WARNING | Unused variable $display.
-------------------------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/tests/src/Kernel/Plugin/sort/RadioButtonsSortWidgetKernelTest.php
--------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------
27 | WARNING | Unused variable $display.
--------------------------------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/tests/src/Kernel/Plugin/filter/SingleFilterWidgetKernelTest.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
27 | WARNING | Unused variable $display.
------------------------------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/tests/src/Kernel/Plugin/filter/FilterWidgetKernelTest.php
------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------
81 | WARNING | Unused variable $display.
125 | WARNING | Unused variable $display.
------------------------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/tests/src/Kernel/Plugin/filter/HiddenFilterWidgetKernelTest.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
27 | WARNING | Unused variable $display.
------------------------------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/tests/src/Kernel/BetterExposedFiltersKernelTest.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------
26 | WARNING | Unused variable $display.
51 | WARNING | Unused variable $display.
------------------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/includes/better_exposed_filters.theme.inc
--------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
162 | WARNING | '@todo' should match the format '@todo Fix problem X here.'
--------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/README.md
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
42 | WARNING | Line exceeds 80 characters; contains 94 characters
------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/better_exposed_filters.install
---------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
223 | WARNING | Line exceeds 80 characters; contains 84 characters
227 | WARNING | Line exceeds 80 characters; contains 83 characters
---------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/src/Plugin/better_exposed_filters/filter/DatePickers.php
-----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------
41 | WARNING | Unused variable $element.
-----------------------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/src/Plugin/better_exposed_filters/filter/FilterWidgetBase.php
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------
116 | WARNING | Only string literals should be passed to t() where possible
185 | WARNING | Only string literals should be passed to t() where possible
251 | WARNING | Line exceeds 80 characters; contains 104 characters
260 | WARNING | Line exceeds 80 characters; contains 84 characters
----------------------------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/src/Plugin/BetterExposedFiltersWidgetBase.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
159 | WARNING | Unused bound variable $form.
159 | WARNING | Unused bound variable $element.
------------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/src/Plugin/views/exposed_form/BetterExposedFilters.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
924 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
925 | ERROR | The array declaration extends to column 99 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------------FILE: /modules/contrib/better_exposed_filters/src/BetterExposedFiltersHelper.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------
80 | WARNING | Unused variable $value.
80 | WARNING | Unused variable $value.
83 | WARNING | Unused variable $value.
------------------------------------------------------------------------------------------------------------------------- - First commit to issue fork.
- Assigned to urvashi_vora
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 6:27am 28 March 2023 - Status changed to Needs work
almost 2 years ago 7:57am 28 March 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
- // Push jquery_ui_touch_punch module for installation if it isn't enabled already. + // Push jquery_ui_touch_punch module for + // installation if it isn't enabled already.
That comment is useless, since it describes what the code already makes clear. Actually, the code is clearer, as pushing a module is not a phrase that makes sense, at least to me.
That comment should be removed, not edited.- $(this).prop('checked', true); + $(this).prop('checked', TRUE); // @TODO: // _bef_highlight(this, context);
I think that the formatting for
@todo
is also valid for JavaScript files.- * @todo: To be honest, I'm not sure this is needed. Can you set a + * @todo To be honest, I'm not sure this is needed. Can you set a * Date API field to accept anything other than Y-m-d? Well, better * safe than sorry...
Since that comment is changed, the sentence following
@todo
should also be changed, for example to Verify this is really needed.- // Determine if wrapper element has min or max fields or if collapsible, if so then update type. + // Determine if wrapper element has min or max fields + // or if collapsible, if so then update type.
The first if should be replaced with it is.
The comma needs to be replaced by a semicolon.
There are missing articles to add.Determine if the wrapper element has min or max fields or it is collapsible; if so, then update the type.
- $display = &$view->storage->getDisplay('default'); - + // $display = &$view->storage->getDisplay('default');
Patches/MRs for these issues should never comment out code. Either the code is fixed, removed, or it is left as it is.
In the case of a variable that is initialized but never used, the code should be removed. - 🇮🇳India urvashi_vora Madhya Pradesh, India
Thanks for your valuable feedback, will make the appropriate changes in next patch.
- Status changed to Needs review
almost 2 years ago 8:22am 28 March 2023 - Status changed to Needs work
almost 2 years ago 11:21am 28 March 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
- $(this).prop('checked', true); - // @TODO: - // _bef_highlight(this, context); + $(this).prop('checked', TRUE); + // @todo: _bef_highlight(this, context);
If the
_bef_highlight()
function exists,@todo
can be removed. If that function does not exist, the sentence after@todo
should be explicit and say Implement _bef_highlight(). for example.- // @TODO: Put this somewhere else... + // @todo: Put this somewhere else...
The colon after
@todo
is not necessary. The sentence should end with a period; the ellipsis is not necessary, in that case.- $this.parents('ul').siblings('div').find('input:checkbox').prop('checked', false); + $this.parents('ul').siblings('div').find('input:checkbox').prop('checked', FALSE);
That is a change for PHP code. On JavaScript, it is different. (See big_pipe.js, for example.)
+ * @todo to Verify this is really needed + * + * If we could set a Date API field to accept anything + * other than Y-m-d? + *
Remove to and add the period at the end of the sentence.
The other sentence is not necessary. PHPCS fixed and exclude js in phpcs command. some error are still open to fix.
FILE: /var/www/html/modules/contrib/better_exposed_filters/src/BetterExposedFiltersHelper.php --------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 2 LINES --------------------------------------------------------------------------------------------- 80 | WARNING | Unused variable $value. 80 | WARNING | Unused variable $value. 83 | WARNING | Unused variable $value. --------------------------------------------------------------------------------------------- FILE: /var/www/html/modules/contrib/better_exposed_filters/src/Plugin/better_exposed_filters/filter/DatePickers.php ------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------- 41 | WARNING | Unused variable $element. -------------------------------------------------------------------------------------------------------------------
- 🇮🇹Italy apaderno Brescia, 🇮🇹
+ * @todo to Verify this is really needed + * If we could set a Date API field to accept anything + * other than Y-m-d?
to before Verify must be removed.
The sentence does not end with a period.
The other sentence should be completely changed in a question.- // Determine if wrapper element has min or max fields or if collapsible, if so then update type. + // Determine if wrapper element has min or max fields + // or it is collapsible, if so then update type.
That is an example of comma-split sentence (to avoid).
An article is missing before wrapper element. - 🇮🇳India Shreyas gowda
ERRORS are fixed but still left with some warnings
FILE: ...p64\www\contribution\better_exposed_filters\better_exposed_filters.install
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
223 | WARNING | Line exceeds 80 characters; contains 84 characters
227 | WARNING | Line exceeds 80 characters; contains 83 characters
--------------------------------------------------------------------------------FILE: ...tribution\better_exposed_filters\includes\better_exposed_filters.theme.inc
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
162 | WARNING | '@todo' should match the format '@todo Fix problem X here.'
--------------------------------------------------------------------------------FILE: C:\wamp64\www\contribution\better_exposed_filters\README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
42 | WARNING | Line exceeds 80 characters; contains 94 characters
----------------------------------------------------------------------FILE: ...osed_filters\src\Plugin\better_exposed_filters\filter\FilterWidgetBase.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
116 | WARNING | Only string literals should be passed to t() where possible
185 | WARNING | Only string literals should be passed to t() where possible
251 | WARNING | Line exceeds 80 characters; contains 104 characters
260 | WARNING | Line exceeds 80 characters; contains 84 characters - Status changed to Needs review
11 months ago 10:26am 19 February 2024 - Status changed to Closed: outdated
9 months ago 8:32pm 10 April 2024