---
title: Class name should be `PascalCase`
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > Code Security > Static Code Analysis (SAST) > SAST
  Rules > Class name should be `PascalCase`
---

# Class name should be `PascalCase`

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

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

{% /callout %}

## Metadata{% #metadata %}

**ID:** `javascript-code-style/class-name`

**Language:** JavaScript

**Severity:** Warning

**Category:** Code Style

## Description{% #description %}

Class names should be `PascalCase` and not `camelCase` or `snake_case`.

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

```javascript
class _runtimeMetricsStatus {}
class runtimeMetricsStatus {}
```

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

```javascript
class MyClass {}

class LongNameThatHa5SomeNumbers999 {}
```
  Seamless integrations. Try Datadog Code SecurityDatadog Code Security 
{% icon name="icon-external-link" /%}
 