Skip to content

Instantly share code, notes, and snippets.

@laravel-shift
Last active July 21, 2022 15:23
Show Gist options
  • Select an option

  • Save laravel-shift/e8e55d7cafa46fc33783823bb675b711 to your computer and use it in GitHub Desktop.

Select an option

Save laravel-shift/e8e55d7cafa46fc33783823bb675b711 to your computer and use it in GitHub Desktop.

Revisions

  1. laravel-shift revised this gist Jul 21, 2022. 1 changed file with 5 additions and 11 deletions.
    16 changes: 5 additions & 11 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -8,10 +8,11 @@
    ; Section to set options for PHP Shifts.
    [php]

    ; The path to the .php_cs config file included
    ; in your project for Shift to apply your
    ; custom code style instead of PSR-2.
    phpcs = ""
    ; The path to the config file included in your project
    ; for Shift to apply your custom code style. This
    ; only needs to be set if you use a different
    ; path than one of the defaults.
    code_style = ""


    ; Section to set general options for all Shifts.
    @@ -67,13 +68,6 @@ form_request_array_syntax = true
    ; as an opportunity to use traits.
    core_inheritance = true

    ; Register routes using static `::class`
    ; references for better static analysis.
    ; This syntax has been supported since
    ; Laravel 6 and the default convention
    ; since Laravel 8.
    class_based_routes = true

    ; Report routes containing "api" within
    ; the routes/web.php file as an opportunity
    ; to relocate them to the appropriate
  2. laravel-shift revised this gist May 28, 2021. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion .shiftrc
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@
    ; These may be used to customize the behavior of the
    ; Shift bot by disabling or guiding the automation.

    ; NOTE: Any paths should be relative to location
    ; of this file and exclude a trailing slash.

    ; Section to set options for PHP Shifts.
    [php]
    @@ -75,7 +77,7 @@ class_based_routes = true
    ; Report routes containing "api" within
    ; the routes/web.php file as an opportunity
    ; to relocate them to the appropriate
    ; routes/api.php file
    ; routes/api.php file.
    api_routes = true

    ; Force the upgrade for core config files
    @@ -110,3 +112,11 @@ source_path = ""
    ; Separate multiple paths with `:`
    template_paths = ""

    ; The path to your Tailwind configuration file.
    ; By default Shift assumes this file is at the
    ; the same level as this .shiftrc file.
    config_path = ""

    ; The name of your Tailwind configuration file.
    ; By default Shift uses `tailwind.config.js`
    config_file = ""
  3. laravel-shift revised this gist Apr 3, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -109,3 +109,4 @@ source_path = ""
    ; default Shift scans `resources/views`
    ; Separate multiple paths with `:`
    template_paths = ""

  4. laravel-shift revised this gist Apr 3, 2021. No changes.
  5. laravel-shift revised this gist Apr 3, 2021. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -62,7 +62,7 @@ form_request_array_syntax = true

    ; Report Models or Controllers which extend
    ; custom classes instead of the core classes
    ; as an opporuntity to use traits.
    ; as an opportunity to use traits.
    core_inheritance = true

    ; Register routes using static `::class`
    @@ -73,7 +73,7 @@ core_inheritance = true
    class_based_routes = true

    ; Report routes containing "api" within
    ; the routes/web.php file as an opporuntity
    ; the routes/web.php file as an opportunity
    ; to relocate them to the appropriate
    ; routes/api.php file
    api_routes = true
    @@ -109,4 +109,3 @@ source_path = ""
    ; default Shift scans `resources/views`
    ; Separate multiple paths with `:`
    template_paths = ""

  6. laravel-shift revised this gist Sep 28, 2020. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -83,6 +83,13 @@ api_routes = true
    ; instead of manually reviewing.
    force_upgrade_config = true

    ; All Shifts check that the default Laravel
    ; namespaces are autoloaded. However, if you
    ; you have chosen to customize your app
    ; namespace or follow an alternative app
    ; structure, you may disable these checks.
    check_namespaces = true


    ; Section to set options for Tailwind Shifts.
    [tailwind]
  7. laravel-shift revised this gist Sep 17, 2020. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -65,6 +65,13 @@ form_request_array_syntax = true
    ; as an opporuntity to use traits.
    core_inheritance = true

    ; Register routes using static `::class`
    ; references for better static analysis.
    ; This syntax has been supported since
    ; Laravel 6 and the default convention
    ; since Laravel 8.
    class_based_routes = true

    ; Report routes containing "api" within
    ; the routes/web.php file as an opporuntity
    ; to relocate them to the appropriate
  8. laravel-shift revised this gist May 11, 2020. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -55,6 +55,11 @@ leverage_request = true
    ; as opportunities to use Form Requests.
    controller_validation = true

    ; Use (or convert) the array syntax for the
    ; validation rules in Form Requests instead
    ; of pipe delimited strings.
    form_request_array_syntax = true

    ; Report Models or Controllers which extend
    ; custom classes instead of the core classes
    ; as an opporuntity to use traits.
  9. laravel-shift revised this gist Feb 5, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .shiftrc
    Original file line number Diff line number Diff line change
    @@ -89,5 +89,5 @@ source_path = ""
    ; scan for CSS class or style changes. By
    ; default Shift scans `resources/views`
    ; Separate multiple paths with `:`
    template_path = ""
    template_paths = ""

  10. laravel-shift revised this gist Feb 5, 2020. 1 changed file with 23 additions and 0 deletions.
    23 changes: 23 additions & 0 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -17,10 +17,12 @@ phpcs = ""

    ; Additional paths Shift should scan which are
    ; not included in a default project structure.
    ; Separate multiple paths with `:`
    additional_paths = ""

    ; Any paths Shift should not scan which are
    ; included in a default project structure.
    ; Separate multiple paths with `:`
    excluded_paths = ""


    @@ -68,3 +70,24 @@ api_routes = true
    ; for easier review within the Pull Request
    ; instead of manually reviewing.
    force_upgrade_config = true


    ; Section to set options for Tailwind Shifts.
    [tailwind]

    ; The location of your compiled CSS file
    ; to convert. By default Shift uses
    ; `public/css/app.css`
    compiled_css = ""

    ; The path to your CSS source files where
    ; Shift will save generated stylesheets.
    ; By default Shift uses `resources/css`
    source_path = ""

    ; The path to your HTML templates Shift should
    ; scan for CSS class or style changes. By
    ; default Shift scans `resources/views`
    ; Separate multiple paths with `:`
    template_path = ""

  11. laravel-shift revised this gist Sep 3, 2019. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -63,3 +63,8 @@ core_inheritance = true
    ; to relocate them to the appropriate
    ; routes/api.php file
    api_routes = true

    ; Force the upgrade for core config files
    ; for easier review within the Pull Request
    ; instead of manually reviewing.
    force_upgrade_config = true
  12. laravel-shift revised this gist Apr 25, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,10 @@
    ; These may be used to customize the behavior of the
    ; Shift bot by disabling or guiding the automation.


    ; Section to set options for PHP Shifts.
    [php]

    ; The path to the .php_cs config file included
    ; in your project for Shift to apply your
    ; custom code style instead of PSR-2.
  13. laravel-shift revised this gist Apr 25, 2019. 1 changed file with 17 additions and 9 deletions.
    26 changes: 17 additions & 9 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -2,27 +2,39 @@
    ; These may be used to customize the behavior of the
    ; Shift bot by disabling or guiding the automation.

    ; Section to set options for PHP Shifts.
    [php]
    ; The path to the .php_cs config file included
    ; in your project for Shift to apply your
    ; custom code style instead of PSR-2.
    phpcs = ""


    ; Section to set general options for all Shifts.
    [shift]

    ; Additional directories Shift should scan which are
    ; Additional paths Shift should scan which are
    ; not included in a default project structure.
    additional_directories = ""
    additional_paths = ""

    ; Directories Shift should not scan which are
    ; Any paths Shift should not scan which are
    ; included in a default project structure.
    excluded_directories = ""
    excluded_paths = ""


    ; Section to set options for Laravel Shifts.
    [laravel]

    ; The path to your Models. By default Shift
    ; will attempt to scan both the app/ and
    ; app/Models path.
    models_path = ""

    ; Report any Controllers containing actions
    ; outside the seven default resource methods:
    ; index, create, store, edit, update,
    ; show, destroy
    cruddy_controllers = true
    resourceful_controllers = true

    ; Fix Laravel Facade references to use an
    ; explicit import instead of their global
    @@ -49,7 +61,3 @@ core_inheritance = true
    ; to relocate them to the appropriate
    ; routes/api.php file
    api_routes = true


    ; Section to set options for PHP Shifts.
    [php]
  14. laravel-shift revised this gist Apr 19, 2019. 1 changed file with 23 additions and 8 deletions.
    31 changes: 23 additions & 8 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -18,23 +18,38 @@ excluded_directories = ""
    ; Section to set options for Laravel Shifts.
    [laravel]

    ; Scan for any Controllers containing actions
    ; Report any Controllers containing actions
    ; outside the seven default resource methods:
    ; index, create, store, edit, update,
    ; show, destroy
    cruddy_controllers = true

    ; Scan for Laravel Facade references using the
    ; global alias instead of explicit import.
    ; Fix Laravel Facade references to use an
    ; explicit import instead of their global
    ; alias.
    global_facades = true


    ; Scan for opportunities to use the auto-injected
    ; Request object within Controller and Middleware
    ; actions instead of the Request Facade or helper
    ; function.
    ; Fix Controllers and Middlewares to use the
    ; auto-injected Request object instead of
    ; the Request Facade or helper function.
    leverage_request = true

    ; Report validation in controllers using the
    ; Validate Facade or request->validate method
    ; as opportunities to use Form Requests.
    controller_validation = true

    ; Report Models or Controllers which extend
    ; custom classes instead of the core classes
    ; as an opporuntity to use traits.
    core_inheritance = true

    ; Report routes containing "api" within
    ; the routes/web.php file as an opporuntity
    ; to relocate them to the appropriate
    ; routes/api.php file
    api_routes = true


    ; Section to set options for PHP Shifts.
    [php]
  15. laravel-shift created this gist Mar 18, 2019.
    40 changes: 40 additions & 0 deletions .shiftrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    ; Within this file you may set preferences for Shift.
    ; These may be used to customize the behavior of the
    ; Shift bot by disabling or guiding the automation.


    ; Section to set general options for all Shifts.
    [shift]

    ; Additional directories Shift should scan which are
    ; not included in a default project structure.
    additional_directories = ""

    ; Directories Shift should not scan which are
    ; included in a default project structure.
    excluded_directories = ""


    ; Section to set options for Laravel Shifts.
    [laravel]

    ; Scan for any Controllers containing actions
    ; outside the seven default resource methods:
    ; index, create, store, edit, update,
    ; show, destroy
    cruddy_controllers = true

    ; Scan for Laravel Facade references using the
    ; global alias instead of explicit import.
    global_facades = true


    ; Scan for opportunities to use the auto-injected
    ; Request object within Controller and Middleware
    ; actions instead of the Request Facade or helper
    ; function.
    leverage_request = true


    ; Section to set options for PHP Shifts.
    [php]