---
title: Parameter name should use camelCase
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > Code Security > Static Code Analysis (SAST) > SAST
  Rules > Parameter name should use camelCase
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Parameter name should use camelCase

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

## Metadata{% #metadata %}

**ID:** `typescript-code-style/parameter-name`

**Language:** TypeScript

**Severity:** Notice

**Category:** Code Style

## Description{% #description %}

Ensure that parameter names use `camelCase` and not `snake_case` or `PascalCase`.

## Non-Compliant Code Examples{% #non-compliant-code-examples %}

```typescript
const a = { setValue(NewValue, event_info?) {} }
class A { setValue(NewValue, event_info__) {} }
function setValue(NewValue, $_event_info_) {}
const a = function(NewValue, event_info) {}
function render(Widget: string) {}
function renderSomething(WrappedComponent) {}
```

## Compliant Code Examples{% #compliant-code-examples %}

```typescript
const a = { getValue() {} }
class A { setValue(newValue_) {} }
class B { setValue(md5, valid5String) {} }
class B { setValue(_, valid5String) {} }
class C { setValue(UID, valid5String) {} }
async.doSomething(nothing, (n, _cb) => {}
function withFeature(WrappedComponent) { return WrappedComponent; }

const MyComponent = () => {
  const renderItem = useCallback((Item: unknown) => <Item />, []);
  const renderHeader = useMemo(() => (Header: unknown) => <Header />, []);
  return <List renderItem={renderItem} />;
};
```
  Seamless integrations. Try Datadog Code SecurityDatadog Code Security 
{% icon name="icon-external-link" /%}
 