Skip to content

Contribute to phpcs upstream #52

@razvanphp

Description

@razvanphp

Hello!

First of all, thank you for this great piece of code, works beautifully.

What do you think about opening a PR to squizlabs/PHP_CodeSniffer for including the codeclimate spec?

Basically gitlab is using a subset of it, but still, both would benefit the community and didn't want to steal your work 🙂

Cheers!
R

PS: found another really cool solution here:

php -dmemory_limit=-1 vendor/bin/phpcs  --report=json . | jq '[.files | keys[] as $file | .[] | .messages | .[] as $msg |  {type: "issue", check_name: $msg.source, categories: ["PHP", "phpcs"], fingerprint: ("\($file):\($msg.line):\($msg.source)"), description: $msg.message, location: { path: $file, lines: {begin: $msg.line, end: $msg.line }}}]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions