Skip to content

bmos/FG-luacheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update .luacheckrc

FantasyGrounds .luacheckrc configuration

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

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.

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

About

A config file for using luacheck for code analysis of lua code for FantasyGrounds.

Topics

Resources

License

Stars

Watchers

Forks

Languages