Hello.
Added patch for Drupal core 10.2.6
Hello.
Sorry, It's related to my custom patch and doesn't reproduce in 1.6 version.
ankondrat4 ā created an issue.
Hello.
We have applied patch #9, but sometimes we have this error when go to Content dashboard
Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Route "view.block_content.page_1" does not exist." at /mnt/www/html/docroot/core/lib/Drupal/Core/Routing/RouteProvider.php line 206
Seems patch #9 doesn't fix the issue as well(
Workaround, clearing Drupal caches...
Hello.
I have the same issue on my current Drupal core 10.1,5. Module enabled as expected but after clearing cache I have this issue and it blocked my site.
ankondrat4 ā created an issue.
Hello.
+1 RTBC for patch #14 and MR !56 on Drupal 10.
ankondrat4 ā made their first commit to this issueās fork.
+1 RTBC for MR6.
It works as expected on Drupal 10.
Hello.
+1 RTBC for patch #4
_shY ā credited ankondrat4 ā .
Hello @sakthi_dev
We have pipeline with phpcs in this module)))) FYI: https://git.drupalcode.org/issue/ultimate_cron-3421334/-/jobs/815693
ankondrat4 ā created an issue.
Hello.
I have created MR. Please review.
ankondrat4 ā made their first commit to this issueās fork.
Please review MR !401
ankondrat4 ā changed the visibility of the branch 3421103-drupal-coding-standarts to hidden.
I have used on local rules: Drupal, DrupalPractice for extensions: twig,css,inc,install,module,php,profile,test,theme,module/php,install/php,js
Ok, I will create separate branch to fix only Drupal coding standards that proposed in pipeline from .gitlab-ci.yml
Hello.
@abramm TY
Please, review.
ankondrat4 ā made their first commit to this issueās fork.
Hello.
Please, review https://git.drupalcode.org/issue/webform-3421103/-/jobs/803692
ankondrat4 ā created an issue.
Hello.
Please, review MR !398
ankondrat4 ā made their first commit to this issueās fork.
ankondrat4 ā made their first commit to this issueās fork.
Hello.
gitlabci is ready for working.
https://git.drupalcode.org/issue/redirect-3421073/-/pipelines/93694
ankondrat4 ā created an issue.
Hello.
MR !82 is ready for review. We have fixed Drupal coding standards.
https://git.drupalcode.org/issue/redirect-3376530/-/jobs/802404
ankondrat4 ā changed the visibility of the branch 8.x-1.x to hidden.
ankondrat4 ā changed the visibility of the branch 3376530-code-standards-fixes to active.
Hello.
Fixed and created MR.
Need review.
ankondrat4 ā made their first commit to this issueās fork.
Hello.
Refactor and created MR.
Please review.
ankondrat4 ā made their first commit to this issueās fork.
Hello.
The module was prepared to review. Drupal coding standards were fixed as for Drupal 7 version of module https://git.drupalcode.org/project/file_compressor_field/-/pipelines/86778
ankondrat4 ā created an issue.
Hello.
Added to release 2.1.0.
Hello.
The module was prepared to review. Drupal coding standards were fixed as for Drupal 9/10 as for Drupal 7 version of module.
ankondrat4 ā created an issue.
ankondrat4 ā created an issue.
ankondrat4 ā made their first commit to this issueās fork.
Hello.
Please, create MR for this.
ankondrat4 ā created an issue.
Fixed.
Thank you.
Hello.
As I see, it was fixed in 2.0.0 version.
Hello.
As I see, it was fixed in 2.0.0 version.
Need to fix phpstan errors:
$ php vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME $PHPSTAN_CONFIGURATION --no-progress || EXIT_CODE=$?
------ ------------------------------------------------------------------------------
Line src/Form/FileCompressorRebuildForm.php
------ ------------------------------------------------------------------------------
61 Unsafe usage of new static().
š” See:
https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static
137 \Drupal calls should be avoided in classes, use dependency injection
instead
141 Relying on entity queries to check access by default is deprecated in
drupal:9.2.0 and an error will be thrown from drupal:10.0.0. Call
\Drupal\Core\Entity\Query\QueryInterface::accessCheck() with TRUE or
FALSE to specify whether access should be checked.
š” See https://www.drupal.org/node/3201242
------ ------------------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Plugin/FileCompressor/FileCompressorGZip.php
------ ----------------------------------------------------------------------
29 \Drupal calls should be avoided in classes, use dependency injection
instead
33 \Drupal calls should be avoided in classes, use dependency injection
instead
------ ----------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Plugin/FileCompressor/FileCompressorZip.php
------ ----------------------------------------------------------------------
28 \Drupal calls should be avoided in classes, use dependency injection
instead
30 \Drupal calls should be avoided in classes, use dependency injection
instead
------ ----------------------------------------------------------------------
[ERROR] Found 7 errors
Drupal coding standarts:
$ vendor/bin/phpcs -s $_WEB_ROOT/modules/custom --report-junit=junit.xml --report-full --report-summary --report-source
FILE: .../custom/file_compressor_field/src/Plugin/FileCompressorPluginInterface.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
| | with a file doc comment
| | (Drupal.Commenting.FileComment.NamespaceNoFileDoc)
47 | ERROR | [ ] Missing parameter type
| | (Drupal.Commenting.FunctionComment.MissingParamType)
56 | ERROR | [x] Whitespace found at end of line
| | (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: .../modules/custom/file_compressor_field/src/Plugin/FileCompressorManager.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
| | with a file doc comment
| | (Drupal.Commenting.FileComment.NamespaceNoFileDoc)
21 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
| | (Drupal.Commenting.DocComment.ShortSingleLine)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...web/modules/custom/file_compressor_field/src/Plugin/FileCompressorBase.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
| | with a file doc comment
| | (Drupal.Commenting.FileComment.NamespaceNoFileDoc)
14 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
| | (Drupal.Commenting.DocComment.ShortSingleLine)
41 | ERROR | [ ] Missing short description in doc comment
| | (Drupal.Commenting.DocComment.MissingShort)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...stom/file_compressor_field/src/Plugin/FileCompressor/FileCompressorZip.php
--------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
| | with a file doc comment
| | (Drupal.Commenting.FileComment.NamespaceNoFileDoc)
23 | ERROR | [ ] Missing short description in doc comment
| | (Drupal.Commenting.DocComment.MissingShort)
41 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
45 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
49 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...tom/file_compressor_field/src/Plugin/FileCompressor/FileCompressorGZip.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
| | with a file doc comment
| | (Drupal.Commenting.FileComment.NamespaceNoFileDoc)
24 | ERROR | [ ] Missing short description in doc comment
| | (Drupal.Commenting.DocComment.MissingShort)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...om/file_compressor_field/src/Plugin/Field/FieldType/FileCompressorItem.php
--------------------------------------------------------------------------------
FOUND 19 ERRORS AFFECTING 14 LINES
--------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
| | with a file doc comment
| | (Drupal.Commenting.FileComment.NamespaceNoFileDoc)
30 | ERROR | [x] Missing function doc comment
| | (Drupal.Commenting.FunctionComment.Missing)
31 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
40 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
41 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
61 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
70 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
| | (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction)
70 | ERROR | [x] Expected 1 space before opening brace; found 0
| | (Generic.Functions.OpeningFunctionBraceKernighanRitchie.SpaceBeforeBrace)
70 | ERROR | [x] Expected 1 space before opening brace; found 0
| | (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeBrace)
74 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
83 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
| | (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
92 | ERROR | [x] There should be no white space after an opening "("
| | (Drupal.WhiteSpace.OpenBracketSpacing.OpeningWhitespace)
92 | ERROR | [x] There should be no white space before a closing ")"
| | (Drupal.WhiteSpace.CloseBracketSpacing.ClosingWhitespace)
104 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
106 | ERROR | [x] Expected 1 space after "=>"; 0 found
| | (Squiz.ControlStructures.ForEachLoopDeclaration.NoSpaceAfterArrow)
106 | ERROR | [x] Expected 1 space after "=>"; 0 found
| | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter)
107 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
107 | ERROR | [ ] The array declaration extends to column 124 (the limit is
| | 120). The array content should be split up over multiple
| | lines (Drupal.Arrays.Array.LongLineDeclaration)
112 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ..._field/src/Plugin/Field/FieldType/FileCompressorFieldItemListInterface.php
--------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
| | (Drupal.WhiteSpace.OpenTagNewline.BlankLine)
2 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
| | with a file doc comment
| | (Drupal.Commenting.FileComment.NamespaceNoFileDoc)
18 | ERROR | [ ] Missing parameter type
| | (Drupal.Commenting.FunctionComment.MissingParamType)
21 | ERROR | [ ] Return type missing for @return tag in function comment
| | (Drupal.Commenting.FunctionComment.MissingReturnType)
26 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
27 | ERROR | [x] Expected 1 newline at end of file; 0 found
| | (Drupal.Files.EndFileNewline.NoneFound)
27 | ERROR | [x] The closing brace for the interface must have an empty line
| | before it
| | (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...ompressor_field/src/Plugin/Field/FieldType/FileCompressorFieldItemList.php
--------------------------------------------------------------------------------
FOUND 14 ERRORS AND 1 WARNING AFFECTING 13 LINES
--------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
| | with a file doc comment
| | (Drupal.Commenting.FileComment.NamespaceNoFileDoc)
14 | WARNING | [x] Unused use statement
| | (Drupal.Classes.UnusedUseStatement.UnusedUse)
25 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
29 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
| | (Drupal.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
44 | ERROR | [x] There should be no white space before a closing ")"
| | (Drupal.WhiteSpace.CloseBracketSpacing.ClosingWhitespace)
45 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
54 | ERROR | [ ] Doc comment short description must end with a full stop
| | (Drupal.Commenting.DocComment.ShortFullStop)
57 | ERROR | [x] Parameter comment must end with a full stop
| | (Drupal.Commenting.FunctionComment.ParamCommentFullStop)
64 | ERROR | [x] Data types in @var tags need to be fully namespaced
| | (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace)
64 | ERROR | [x] Data types in @var tags need to be fully namespaced
| | (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace)
102 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
111 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
| | (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
117 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
141 | ERROR | [x] Data types in @var tags need to be fully namespaced
| | (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace)
141 | ERROR | [x] Data types in @var tags need to be fully namespaced
| | (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...odules/custom/file_compressor_field/src/Form/FileCompressorRebuildForm.php
--------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 7 LINES
--------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
| | with a file doc comment
| | (Drupal.Commenting.FileComment.NamespaceNoFileDoc)
81 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
88 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
90 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
90 | ERROR | [ ] The array declaration extends to column 145 (the limit is
| | 120). The array content should be split up over multiple
| | lines (Drupal.Arrays.Array.LongLineDeclaration)
99 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
101 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
109 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...web/modules/custom/file_compressor_field/src/Annotation/FileCompressor.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
| | with a file doc comment
| | (Drupal.Commenting.FileComment.NamespaceNoFileDoc)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...ield/web/modules/custom/file_compressor_field/file_compressor_field.module
--------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------
8 | ERROR | [x] When importing a class with "use", do not include a leading \
| | (Drupal.Classes.UseLeadingBackslash.SeparatorStart)
29 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
29 | ERROR | [x] Expected 1 space between double arrow and
| | "'http://php.net/manual/es/book.zip.php'"; 0 found
| | (Squiz.Arrays.ArrayDeclaration.NoSpaceAfterDoubleArrow)
29 | ERROR | [x] Expected 1 space after "=>"; 0 found
| | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter)
30 | ERROR | [x] Short array syntax must be used to define arrays
| | (Drupal.Arrays.DisallowLongArraySyntax.Found)
30 | ERROR | [x] Expected 1 space between double arrow and
| | "'http://pear.php.net/package/Archive_Tar'"; 0 found
| | (Squiz.Arrays.ArrayDeclaration.NoSpaceAfterDoubleArrow)
30 | ERROR | [x] Expected 1 space after "=>"; 0 found
| | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter)
32 | ERROR | [x] Case breaking statements must be followed by a single blank
| | line
| | (Squiz.ControlStructures.SwitchDeclaration.SpacingAfterBreak)
62 | ERROR | [x] Expected 1 newline at end of file; 0 found
| | (Drupal.Files.EndFileNewline.NoneFound)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Time: 161ms; Memory: 6MB
PHP CODE SNIFFER REPORT SUMMARY
--------------------------------------------------------------------------------
FILE ERRORS WARNINGS
--------------------------------------------------------------------------------
...s/custom/file_compressor_field/file_compressor_field.module 9 0
...tom/file_compressor_field/src/Annotation/FileCompressor.php 1 0
...ile_compressor_field/src/Form/FileCompressorRebuildForm.php 8 0
...tom/file_compressor_field/src/Plugin/FileCompressorBase.php 3 0
.../file_compressor_field/src/Plugin/FileCompressorManager.php 2 0
...mpressor_field/src/Plugin/FileCompressorPluginInterface.php 3 0
.../src/Plugin/Field/FieldType/FileCompressorFieldItemList.php 14 1
...in/Field/FieldType/FileCompressorFieldItemListInterface.php 7 0
...sor_field/src/Plugin/Field/FieldType/FileCompressorItem.php 19 0
...ssor_field/src/Plugin/FileCompressor/FileCompressorGZip.php 2 0
...essor_field/src/Plugin/FileCompressor/FileCompressorZip.php 5 0
--------------------------------------------------------------------------------
A TOTAL OF 73 ERRORS AND 1 WARNING WERE FOUND IN 11 FILES
--------------------------------------------------------------------------------
PHPCBF CAN FIX 63 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
ESLINT
$ $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$CI_PROJECT_DIR/$_WEB_ROOT/core --ext=.js,.yml . || true
/builds/project/file_compressor_field/web/modules/custom/file_compressor_field/file_compressor_field.services.yml
3:1 error Expected indentation of 4 spaces but found 6 spaces yml/indent
4:1 error Expected indentation of 4 spaces but found 6 spaces yml/indent
ā 2 problems (2 errors, 0 warnings)
2 errors and 0 warnings potentially fixable with the `--fix` option.
https://git.drupalcode.org/project/file_compressor_field/-/pipelines/85323
ankondrat4 ā created an issue.
Hello.
Module was adapted to Drupal 10.
Please, review.
Hello.
Created a new MR with gitlab ci.
ankondrat4 ā created an issue.
Hello.
RTBC +1 for MR !3
Fixed phpstan.
Fixed.
Hello.
All issues described issues were fixed gere https://www.drupal.org/project/activity/issues/3417212 š Coding standards Needs review
Fixed.
Please, review.
Hello.
Fixed, please review.
Hello.
Fixed coding standard and deprecated code.
Hello.
I have fixed coding standards for this module. Scanned by phpstan and phpcs.
$ vendor/bin/phpstan analyze web/modules/contrib/phone_link-3417237
2/2 [āāāāāāāāāāāāāāāāāāāāāāāāāāāā] 100%
[OK] No errors
š” Tip of the Day:
PHPStan is performing only the most basic checks.
You can pass a higher rule level through the --level option
(the default and current level is 0) to analyse code more thoroughly.
$ vendor/bin/phpcs web/modules/contrib/phone_link-3417237
Please review.
Added Drupal 9 and 10 compatibility.
Hello.
I have done compatibility with Drupal 10.
Please, review.
I have fixed phpcs issues
Hello.
Compatible with Drupal 10 was applied.
When we tried to use DI of service @domain.negotiator, we got Fatal error as described in description of task. Maybe someone has solution, you are welcome to change this)
Please, review.
Hello.
Nice feature. I propose to add this as a function of the module.
@freelock what do you think about it?