This minimalistic module activates the 'Tab to Search' feature used in Chrome.

Link: https://www.drupal.org/sandbox/antoninslejska/2847577

git clone --branch 8.x-0.1 https://git.drupal.org/sandbox/AntoninSlejska/2847577.git opensearchtab

The 'Tab to Search' feature is described in the article Google Chrome – Tab to Search. How can a website enable the 'Tab to Search' is described on the website of the Chromium project: Tab to Search.

You can test the module on a test site, by writing 'drupal.slejska.de test' in your Chrome address bar.

Comments

Antonín Slejška created an issue. See original summary.

PA robot’s picture

Issue summary: View changes
Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxAntoninSlejska284757...

Fixed the git clone URL in the issue summary for non-maintainer users.

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

antonín slejška’s picture

Status: Needs work » Needs review

The 'errors' have been solved.

I'm used to use 4 spaces for identing, see: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-codi...
I was surprised, that the automated review tool evaluates 4 spaces as an error.

scott.allison’s picture

Hi Antonín,

Automated Review

Please correct the pareview.sh issues here https://pareview.sh/node/1005

  1. Branch should be named 8.x-1.x
  2. Update your documentation in opensearchtab.module on line 9 to * Implements hook_page_attachments().

Manual Review

Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation.
Master Branch
No: Does not follow the guidelines for master branch. Rename default branch to 8.x-1.x
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.
README.txt/README.md
No: Does not follow the guidelines for in-project documentation and/or the README Template.
Code long/complex enough for review
No: Does not follow the guidelines for project length and complexity.
Secure code
Yes: Meets the security requirements.
Coding style & Drupal API usage
See above.
visabhishek’s picture

@scott.allison : Looks like you forgot to change the status. Is this now RTBC after your review or are there application blockers left and this should be "needs work"?

scott.allison’s picture

Status: Needs review » Needs work

Hi @visabhishek sorry about that. Yes, this needs work.

antonín slejška’s picture

antonín slejška’s picture

@scott.allison: Is it possible, that the public IP of the company, where I work (91.208.212.1) is on the server git.drupal.org blacklisted at /etc/hosts.deny ?

antonín slejška’s picture

Status: Needs work » Needs review

I have change the README.md to comply with the README Template.

I increased the complexity of the code adding a configuration. But I would like to keep the module as simple as possible...

I have renamed the branch to 8.x-1.x and synchronised the 'git push' with GitHub. (Both remotes are updated by one 'git push origin 8.x-1.x' command now).

jeetendrakumar’s picture

Status: Needs review » Needs work

@Antonín

Automatic application review tool found so many major issues in your application.

https://pareview.sh/node/1005

antonín slejška’s picture

Status: Needs work » Needs review

All spaces and end of lines are compatible with the review program now.

zyyz’s picture

There are still many coding standard violations at https://pareview.sh/node/1005,
Use dependency injection in classes. Use $this->t(), instead of t() in OpenSearchSettingsForm.php

zyyz’s picture

Status: Needs review » Needs work
antonín slejška’s picture

Status: Needs work » Needs review

The warnings have been solved as well. It is intresting, that even books like 'Drupal 8 Development Cookbook' are published with code, which contains quite a lot rows, which are by the review script marked as an error or a warning.

SergDidenko’s picture

Status: Needs review » Needs work

Automated Review

FILE: /root/repos/pareviewsh/pareview_temp/opensearchtab.routing.yml
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
8 | WARNING | Open page callback found, please add a comment before the
| | line why there is no access restriction
17 | WARNING | Open page callback found, please add a comment before the
| | line why there is no access restriction
--------------------------------------------------------------------------

FILE: /root/repos/pareviewsh/pareview_temp/opensearchtab.info.yml
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
9 | WARNING | All dependencies must be prefixed with the project name,
| | for example "drupal:"

FILE: /root/repos/pareviewsh/pareview_temp/opensearchtab.info.yml
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
--------------------------------------------------------------------------

FILE: ...t/repos/pareviewsh/pareview_temp/src/Form/OpenSearchSettingsForm.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------
34 | ERROR | [x] Short array syntax must be used to define arrays
40 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY

Individual user account
Yes: Follows guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation.
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
README.txt/README.md
Yes: Follows the README Template.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
Yes: Follows the security requirements.
Coding style & Drupal API usage
* Please fix code style according to issues above.
* Just a friendly bit of advice. You should add some description of this module to .module file using hook_help. It may be really useful.

antonín slejška’s picture

Status: Needs work » Needs review

There are no errors and no warnings now: https://pareview.sh/node/1691 (Two months ago there ware no errors and warnings as well. It looks like, that the pareview.sh has been in the meantime improved.)

I will add the hook_help to .module tomorrow.

zakaria.elhariri’s picture

Hi,

Automated Review

Remove the LICENSE, drupal.org packaging will add a LICENSE.txt file automatically.

Manuel review

I installed your module locally and I test with your demo site (https://drupal.slejska.de), but I can't make it work, I have not the site in the settings of google chrome (chrome://settings/searchEngines).

http://i.imgur.com/Hi71FTa.png

zakaria.elhariri’s picture

Status: Needs review » Needs work
PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.

avpaderno’s picture

Status: Closed (won't fix) » Closed (duplicate)
Related issues: +#3106278: [D8] Open Search Tab