# CodeCop Warning AA0244
Do not use identical names for parameters and global variables.
## Description
Do not use identical names for parameters and global variables.
## Remarks
This CodeCop rule is similar to codecop-aa0198, but it applies to method parameters. The rule warns when a method's parameters names collide with global variable names, but with the following specifics for Event declaration.
AA0244 doesn't warn on Events with the exception of Integration Events that have GlobalVarAccess set to true.
## No warning
```al
codeunit 50100 MyCodeunit
{
    // GlobalVarAccess = false hence we don't warn
    [IntegrationEvent(true, false)]
    local procedure MyNewEvent(EventParamA: Integer)
    begin
    end;
}
```
## Warning
```al
codeunit 50100 MyCodeunit
{
    // GlobalVarAccess = true hence we warn
    [IntegrationEvent(true, true)]
    local procedure MyNewEvent(EventParamA: Integer)
    begin
    end;
}
```
> NOTE
> Rule AA0244 warns on EventSubscribers and even if the subscribers don't have control over the names of the parameters, they have control over the global variables living in the Codeunit.
## Related information
CodeCop Analyzer<codecop>
Getting Started with AL<../devenv-get-started>
Developing Extensions<../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/codecop-aa0244, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/codecop-aa0244/
