Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71462

Add .phpstorm.* files to gitignore

    XMLWordPrintable

    Details

      Description

      In PHPStorm IDE there is files .phpstorm.meta.php that help the IDE to figure out some project contexts for example moodle table prefix when there is in the code {table_name} it's automaticaly interpter it's as mdl_table_name and if you connect your database to the IDE it will verifiy your queries and autocompletes it if needed.

      may be we can add this file as development file or at least put it in git ignore for the PHPStorm developer users to not commit it by mistake

      .phpstorm.meta.php

      <?php
      namespace PHPSTORM_META {
          override(
          // Virtual function to indicate that all SQL
          // injections will have the following replacement rules.
          sql_injection_subst(),
          map([
              '{' => "mdl_", // all `{` in injected SQL strings will be replaced with a prefix 
              '}' => '', // all `}` will be replaced with an empty string
          ]));
      }
      

       

       

       

        Attachments

          Activity

            People

            Assignee:
            avimoto Avi Levy
            Reporter:
            avimoto Avi Levy
            Peer reviewer:
            Ferran Recio Ferran Recio
            Integrator:
            Andrew Lyons Andrew Lyons
            Tester:
            Simey Lameze Simey Lameze
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Jul/21

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 8 minutes
                1h 8m