Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Ignore any lint error detected by HHClientLinter that is not a duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry committed Dec 10, 2021
1 parent bf19fee commit 8851216
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Herp\Derp;

/*HHAST_IGNORE_ALL[CamelCasedMethodsUnderscoredFunctions]*/
// HHAST_IGNORE_ALL[5623] HHAST_IGNORE_ALL[5624] because the error code is not the interested in this example

use type Facebook\HackTest\{DataProvider, HackTest};
use function Facebook\FBExpect\expect;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Herp\Derp;

/*HHAST_IGNORE_ALL[CamelCasedMethodsUnderscoredFunctions]*/
// HHAST_IGNORE_ALL[5623] HHAST_IGNORE_ALL[5624] because the error code is not the interested in this example

use type Facebook\HackTest\{DataProvider, HackTest};
use function Facebook\FBExpect\expect;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
*/
namespace BlahNew;

// HHAST_IGNORE_ALL[5624] because the error code is not the interested in this example

final class Test {
// using private type as type annotations
function anotherTest<T as \Blah\__Private\some_private_type_t>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?hh
// HHAST_IGNORE_ALL[5581] HHAST_IGNORE_ALL[5622] HHAST_IGNORE_ALL[5623] HHAST_IGNORE_ERROR[5624] because the error code is not the interested in this example

function no_side_effects(): void {
if ("NO SIDE EFFECTS") {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?hh
// HHAST_IGNORE_ALL[5581] HHAST_IGNORE_ALL[5622] HHAST_IGNORE_ALL[5623] HHAST_IGNORE_ERROR[5624] because the error code is not the interested in this example

function no_side_effects(): void {
if ("NO SIDE EFFECTS") ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?hh

// HHAST_IGNORE_ALL[5568] because the error code is not the interested in this example
function foreach_value($items) {
foreach ($items as $_item) {
}
Expand Down
1 change: 1 addition & 0 deletions tests/examples/UnusedVariableLinter/unused_foreach.php.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?hh

// HHAST_IGNORE_ALL[5568] because the error code is not the interested in this example
function foreach_value($items) {
foreach ($items as $item) {
}
Expand Down

0 comments on commit 8851216

Please sign in to comment.