YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
11 stars 4 forks source link

// feather ignore GM2017 does not work with macros that contain inconsistent naming in the macro contents. #5753

Open gm-bug-reporter[bot] opened 2 weeks ago

gm-bug-reporter[bot] commented 2 weeks ago

Description

If you have a macro that has inconsistent naming in the contents of the macro, everywhere that macro is used, feather will always flag it. Using "// feather ignore GM2017" or '// feather ignore all" will continue to flag that macro everywhere it is used. It will work correctly if the macro is only used in the same event as the macro creation, but using it in any other event or object, it will flag it, despite being ignored.

Steps To Reproduce

  1. Set your instance variable naming rule to lowerCamelCase
  2. Create an object and in the create event, include a macro that includes an instance variable that does not match lowerCamelCase (such as "#macro BOB global.__MY_VAR = 5")
  3. Create a 2nd object and in the create event, enter the macro from step 2.
  4. Note Feather flags that macro for inconsistent naming.
  5. Put "// feather ignore all" and/or "//feather ignore GM2017" above the macro in both objects.
  6. Note the macro is still flagged for inconsistent naming in object 2.

Which version of GameMaker are you reporting this issue for?

IDE v2024.4.0.137 Runtime v2024.4.0.168

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

35b4cc47-9cb1-413e-a64f-c331316eeb7d