Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.56 KB

README.md

File metadata and controls

41 lines (33 loc) · 1.56 KB

Update .luacheckrc

FantasyGrounds .luacheckrc configuration

This config file is suitable for using luacheck to check lua code for FantasyGrounds.

Important

If you fork this repo to generate your own luacheck config file, you must add a secret to your repo settings named ACTIONS containing a GitHub Personal Access Token.

Note

When adding extensions to main.yml (the action that generates the luacheck config), be sure that the extension names don't start with a number.

Non-standard configurations:

  • Warns about line length > 150.
  • Warns about cyclomatic complexity > 36. This is very permissive; best practices are much lower.
  • Show warning codes.

Contains stds definitions for:

  • corerpg

  • dnd2e

  • dnd35e

  • dnd4e

  • dnd5e

  • pfrpg

  • pfrpg2

  • sfrpg

  • All of bmos' current extensions

  • Kelrugem's extended automation

  • ClockAdjuster

  • Ryan Hagelstrom's BetterCombatEffects, BetterCombatEfffectsGold, Turbo, PowerUp, Exhausted, Contaminated, Effective-NPC, HighVariance, EffectiveInitiative, ArcaneWard, ChatAestheticsConfigurator, and FranklyNot

  • MeAndUnique's SizeMatters and TemporalFixation

  • SirMotte's Hearth Theme

It ignores warnings for all global variables matching these patterns:

  • OOB_MSGTYPE_.+
  • register.+
  • unregister.+
  • handle.+

Common Modifications

allow_defined_top = true Allows top-level globals without warning. Useful for those who do not want to localize or whitelist all functions.