Skip to content

Fixed issue in line length sniff for phrase and __ keyword #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 16, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#75: [BUG] LineLengthSniff RegEx misses long lines with Phrase/__ key…
…word in string

- fixed code style
  • Loading branch information
lenaorobei committed Aug 16, 2019
commit 35990c0079b96937851adc37f26ae7742e9e304d
2 changes: 1 addition & 1 deletion Magento2/Sniffs/PHP/FinalImplementationSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function register()
public function process(File $phpcsFile, $stackPtr)
{
$phpcsFile->addError(
// phpcs:ignore Magento2.Files.LineLength.MaxExceeded
// phpcs:ignore Generic.Files.LineLength
'Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies.',
$stackPtr,
'FoundFinal'
Expand Down
2 changes: 1 addition & 1 deletion Magento2/Sniffs/Security/LanguageConstructSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LanguageConstructSniff implements Sniff
/**
* String representation of backtick error.
*
* phpcs:disable Magento2.Files.LineLength.MaxExceeded
* phpcs:disable Generic.Files.LineLength
*
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion Magento2/Sniffs/Strings/ExecutableRegExSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ExecutableRegExSniff implements Sniff
/**
* String representation of error.
*
* phpcs:disable Magento2.Files.LineLength.MaxExceeded
* phpcs:disable Generic.Files.LineLength
*
* @var string
*/
Expand Down