Skip to content

Releases: SocialEngine/sniffer-rules

Lumen/Laravel 5.5 support

29 Sep 21:02
Compare
Choose a tag to compare

Added a handle method that calls fire internally. This should resolve compatibility issues with Laravel and Lumen 5.5

Prevent from registering in non-console cases

09 Oct 17:00
Compare
Choose a tag to compare

Since this is a cli command, we only register it in CLI.

Lumen Support

08 Oct 20:29
Compare
Choose a tag to compare

Added lumen support to sniffer.

No longer support L4

Fix colors bug for auto-fix, add manual instructions

01 Sep 21:28
Compare
Choose a tag to compare

In this release we fixed a bug introduced in previous release having to do with colors option.

Also, we added travis to dogfood the command and instructions on how to run sniff ruleset manually (outside laravel).

Better color detection, cli option parsing

24 Aug 21:31
Compare
Choose a tag to compare

On the heels of 2.1.1, this release makes cli options a lot more flexible by filtering out Symfony's built in commands (such as --no-interaction).

Additionally, removed some dead code and make color detection rely on Symfony's isDecorated() check (which can be set by --no-ansi in addition to doing terminal detection).

Add ability to set report type and report file

24 Aug 20:59
Compare
Choose a tag to compare

We needed jenkins-ci to run our sniffs, since jenkins supports structured reporting, we can change report type to checkstyle and set an output directory.

Changelog

  • New: add --report option to specify report type for phpcs (optionally)
  • New: add --report-file option to specify where to write the report (optionally)
  • Fix: change some docblocks for code completion.
  • Fix: remove unnecessary constructor.

Laravel 4 and 5 Compatibility

11 May 16:29
Compare
Choose a tag to compare

Thanks to @smazurov, our sniffer rules now support Laravel 4 and 5! The README.md was updated accordingly.

Updated according to code sniffer changes

04 May 06:26
Compare
Choose a tag to compare
Merge pull request #10 from SocialEngine/feature/update-sniffer-rules

Updated code according to the committed sniffer changes

2.0.0

04 May 06:29
Compare
Choose a tag to compare

1.0.3 - Configurable snake_case method names

14 Oct 21:45
Compare
Choose a tag to compare

This release sees the addition of a new configuration option: allowSnakeCaseMethodName

This option allows you to configure which methods are allowed to use snake_case versus camelCase.

Here's a demonstrative example config:

    'allowSnakeCaseMethodName' => [
        // Any method that starts with test, regardless of class
        [
            'classSuffix' => '*',
            'methodPrefix' => ['test'],
        ],
        // Any method in the a class that ends with 'Cest'
        [
            'classSuffix' => 'Cest',
            'methodPrefix' => ['*']
        ],
        // Methods that start with 'cats' in classes that end with 'Pet'
        [
            'classSuffix' => 'Pet',
            'methodPrefix' => ['cats']
        ],
        // Methods that start with 'foo' or 'bar' in classes that end with 'Baz'
        [
            'classSuffix' => 'Baz',
            'methodPrefix' => ['foo', 'bar']
        ],
    ]