Skip to content

Commit

Permalink
Configuration
Browse files Browse the repository at this point in the history
- `defaultConfig()` now adds an entry for `typecheck:warnUnusedVars` set to `true`
  • Loading branch information
deavmi committed Nov 4, 2023
1 parent aa1849e commit eee9735
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/tlang/compiler/configuration.d
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ public final class CompilerConfiguration
config.addConfig(ConfigEntry("types:max_width", 8));
}

/* Always warn about unused variables */
config.addConfig(ConfigEntry("typecheck:warnUnusedVars", true));

return config;
}
}

0 comments on commit eee9735

Please sign in to comment.