diff --git a/docs/rules/user_defined_rules/configuration_rules.md b/docs/rules/user_defined_rules/configuration_rules.md index d5a09062..6bc5555c 100644 --- a/docs/rules/user_defined_rules/configuration_rules.md +++ b/docs/rules/user_defined_rules/configuration_rules.md @@ -3,7 +3,7 @@ Configuration rules are special rules that are applied once per commit and **BEFORE** any other rules are run. Configuration rules are meant to dynamically change gitlint's configuration and/or the commit that is about to be linted. -A typically use-case for this is when you want to modifying gitlint's behavior for all rules against a commit matching +A typically use-case for this is when you want to modify gitlint's behavior for all rules against a commit matching specific circumstances. !!! warning diff --git a/gitlint-core/gitlint/cli.py b/gitlint-core/gitlint/cli.py index 52924a70..084c0e68 100644 --- a/gitlint-core/gitlint/cli.py +++ b/gitlint-core/gitlint/cli.py @@ -360,7 +360,7 @@ def lint(ctx): config_builder.set_config_from_commit(commit) # Create a deepcopy from the original config, so we have a unique config object per commit - # This is important for configuration rules to be able to modifying the config on a per commit basis + # This is important for configuration rules to be able to modify the config on a per commit basis commit_config = config_builder.build(copy.deepcopy(lint_config)) # Actually do the linting