Skip to content
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

Add SARIF output format #312

Closed
llaville opened this issue Dec 16, 2021 · 1 comment
Closed

Add SARIF output format #312

llaville opened this issue Dec 16, 2021 · 1 comment
Assignees

Comments

@llaville
Copy link
Owner

Feature request

Summary

With commit 7c0334c, I've recently allow to add new output format easily with the Reporter extension. Now it's turn to add SARIF in output formats list.

Description

SARIF (Static Analysis Results Interchange Format) is an OASIS Standard that defines an output file format. The SARIF standard is used to streamline how static analysis tools share their results by implementing a subset of the SARIF 2.1.0 JSON schema.

Other Static Tool Analysers like

Because I don't found any PHP library that support SARIF v2 specifications, I've published a PHP SDK as a new bartlett/sarif-php-sdk package already available on packagist that implement the full v2.1.0 specifications.

@llaville
Copy link
Owner Author

Summary of rules list implemented

Rule Id. Sniff
CA4001 MethodDeclarationSniff
CA4002 DeclareSniff
CA4003 PropertyDeclarationSniff
---------- -------------------------------
CA5101 MagicMethodsSniff
CA5108 ParamTypeDeclarationSniff
---------- -------------------------------
CA5208 ParamTypeDeclarationSniff
---------- -------------------------------
CA5301 MagicMethodsSniff
CA5302 DeclareSniff
CA5303 GotoSniff
CA5304 ShortTernaryOperatorSniff
CA5305 CryptStringSniff
CA5306 ConstSyntaxSniff
---------- -------------------------------
CA5401 ClosureSniff
CA5402 ArrayDereferencingSyntaxSniff
CA5403 ShortArraySyntaxSniff
CA5404 ClassMemberAccessSniff
CA5405 ClassExprSyntaxSniff
CA5406 BinaryNumberFormatSniff
CA5407 UseTraitSniff
CA5408 ParamTypeDeclarationSniff
---------- -------------------------------
CA5501 MagicClassConstantSniff
CA5502 EmptySniff
CA5503 GeneratorSniff
---------- -------------------------------
CA5601 MagicMethodsSniff
CA5602 PowOperatorSniff
CA5603 UseConstFunctionSniff
CA5606 ConstSyntaxSniff
---------- -------------------------------
CA7001 ReturnTypeDeclarationSniff
CA7002 DeclareSniff
CA7003 GeneratorSniff
CA7004 ClassMemberAccessSniff
CA7005 NullCoalesceOperatorSniff
CA7006 CombinedComparisonOperatorSniff
CA7007 ReservedSniff
CA7008 ParamTypeDeclarationSniff
CA7009 AnonymousClassSniff
---------- -------------------------------
CA7107 ReservedSniff
CA7108 ParamTypeDeclarationSniff
---------- -------------------------------
CA7207 ReservedSniff
CA7208 ParamTypeDeclarationSniff
---------- -------------------------------
CA7401 TypedPropertySniff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant