Personal Access Restriction module provides the ability to restrict access to a particular Node or Taxonomy Term by UID or User role.
Also, it provides the ability to select the type of response ("Access denied" or "Page not found").
Project link
https://www.drupal.org/project/par
Git instructions
git clone --branch 8.x-2.x https://git.drupalcode.org/project/par.git
PAReview checklist
https://pareview.sh/pareview/https-git.drupal.org-project-par-8.x-2.x
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | https git drupal org project par 8 x-2 x PAReview.png | 379.08 KB | maheshkp92 |
Comments
Comment #2
rksyraviHi @rsych,
Thank you for your contribution!!!
Initially, you'll need to fix coding standards and all the errors & warnings mentioned below.
Along with that, I am adding the link of PAReview checklist here as well as in the issue summary which will help in fixes.
PAReview checklist
https://pareview.sh/pareview/https-git.drupal.org-project-par-8.x-2.x
Comment #3
rksyraviComment #4
rksyraviHi,
also, git branch should be 8.x-2.x instead master
Comment #5
rsych commentedHi, I pushed my changes to the 8.x-2.x branch. Can you check or tell me are these changes available for you?
Comment #6
avpadernoRemember to change status after you change the code as reported, or reviewers will not know the project is ready to be reviewed again.
Comment #7
rsych commented@kiamlaluno, thanks
Comment #8
maheshkp92PAReview issues haven't been fixed yet.
Changing status back to "Needs Work" state.
PFA
Comment #9
avpadernoA review should point out what needs to be changed, not showing a screenshot of what a tool reports.
Comment #10
ankush_03Still some issue pending :
Git errors:
There is still a master branch, make sure to set the correct default branch: https://www.drupal.org/node/1659588 . Then remove the master branch, see also step 6 and 7 in https://www.drupal.org/node/1127732
Review of the 8.x-2.x branch (commit 44019b9):
Coder Sniffer has found some issues with your code (please check the Drupal coding standards). See attachment.
No automated test cases were found, did you consider writing PHPUnit tests? This is not a requirement but encouraged for professional software development.
This automated report was generated with PAReview.sh, your friendly project application review script.
FILE: ...0000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/par.install
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
5 | WARNING | Line exceeds 80 characters; contains 86 characters
--------------------------------------------------------------------------
FILE: ...te1101/web/vendor/drupal/pareviewsh/pareview_temp/src/ParService.php
--------------------------------------------------------------------------
FOUND 64 ERRORS AND 2 WARNINGS AFFECTING 46 LINES
--------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
27 | ERROR | [x] Data types in @var tags need to be fully namespaced
34 | ERROR | [x] Data types in @var tags need to be fully namespaced
34 | ERROR | [x] Data types in @var tags need to be fully namespaced
36 | ERROR | [ ] Class property $user_storage should use lowerCamel
| | naming without underscores
41 | ERROR | [x] Data types in @var tags need to be fully namespaced
48 | ERROR | [ ] Missing parameter comment
48 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
49 | ERROR | [x] Separate the @param and @return sections by a blank
| | line.
59 | ERROR | [ ] Parameter $current_user is not described in comment
59 | ERROR | [ ] Parameter $user_storage is not described in comment
62 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
74 | ERROR | [ ] Missing parameter comment
74 | ERROR | [ ] Missing parameter type
75 | ERROR | [ ] Missing parameter comment
75 | ERROR | [ ] Missing parameter type
76 | ERROR | [ ] Missing parameter comment
77 | ERROR | [ ] Missing parameter comment
78 | ERROR | [ ] Missing parameter comment
80 | ERROR | [ ] Type hint "array" missing for $uids
80 | ERROR | [ ] Type hint "array" missing for $roles
90 | ERROR | [x] Array indentation error, expected 12 spaces but
| | found 14
91 | ERROR | [x] Array closing indentation error, expected 10 spaces
| | but found 12
99 | ERROR | [x] Array indentation error, expected 12 spaces but
| | found 14
100 | ERROR | [x] Array closing indentation error, expected 10 spaces
| | but found 12
109 | ERROR | [ ] Missing parameter comment
109 | ERROR | [ ] Missing parameter type
110 | ERROR | [ ] Missing parameter comment
110 | ERROR | [ ] Missing parameter type
111 | ERROR | [ ] Missing parameter comment
112 | ERROR | [ ] Missing parameter comment
113 | ERROR | [ ] Missing parameter comment
115 | ERROR | [ ] Type hint "array" missing for $uids
115 | ERROR | [ ] Type hint "array" missing for $roles
136 | ERROR | [ ] Missing parameter comment
136 | ERROR | [ ] Missing parameter type
137 | ERROR | [x] Separate the @param and @return sections by a blank
| | line.
137 | ERROR | [ ] Description for the @return value is missing
148 | ERROR | [x] Doc comment short description must start with a
| | capital letter
150 | ERROR | [ ] Missing parameter comment
151 | ERROR | [x] Separate the @param and @return sections by a blank
| | line.
151 | ERROR | [ ] Description for the @return value is missing
153 | ERROR | [ ] Type hint "null" missing for $uid
168 | ERROR | [ ] Missing parameter comment
169 | ERROR | [ ] Missing parameter comment
170 | ERROR | [ ] Missing parameter comment
171 | ERROR | [ ] Missing parameter comment
172 | ERROR | [ ] Missing parameter comment
173 | ERROR | [x] Separate the @param and @return sections by a blank
| | line.
173 | ERROR | [ ] Description for the @return value is missing
175 | ERROR | [ ] Type hint "null" missing for $uid
175 | ERROR | [ ] Type hint "null" missing for $role
175 | ERROR | [ ] Type hint "null" missing for $action
201 | ERROR | [ ] Missing parameter comment
201 | ERROR | [ ] Missing parameter type
202 | ERROR | [ ] Missing parameter comment
202 | ERROR | [ ] Missing parameter type
203 | ERROR | [ ] Missing parameter comment
204 | ERROR | [x] Separate the @param and @return sections by a blank
| | line.
204 | ERROR | [ ] Description for the @return value is missing
206 | ERROR | [ ] Type hint "null" missing for $uid
228 | ERROR | [ ] Missing parameter comment
228 | ERROR | [ ] Missing parameter type
229 | ERROR | [x] Separate the @param and @return sections by a blank
| | line.
229 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
Time: 1.51 secs; Memory: 6Mb
Comment #11
shaktikPlease fix also some drupal-check error.
Comment #12
avpadernoComment #13
avpadernoI am closing this application due to lack of replies.
The last commit has been done 9 months ago, before the last two reviews.