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 9, 2021
1 parent bf19fee commit 9e16b4d
Show file tree
Hide file tree
Showing 6 changed files with 7 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
Expand Up @@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree.
*
*/
// HHAST_IGNORE_ALL[0] because the error code is not the interested in this example
final class Test {
private static function testThis() {
$some_value as SomeNamespace\__Private\SomeEnumName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree.
*
*/
// HHAST_IGNORE_ALL[0] because the error code is not the interested in this example
final class Test {
private static function testThis() {
\SomeNamespace\__Private\SomeEnumName::SOME_VALUE;
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
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 9e16b4d

Please sign in to comment.