<commit_before>---
title: Redundant Modifier
toc: false
---

Checks for redundant modifiers.

Omitting the visibility modifier usually defaults the visibility to `private` in normal classes and `pulbic` in interfaces and externs.

### Configuration

```json
{
    "type": "RedundantModifier",
    "props": {
        "enforcePublicPrivate": false,
        "severity": "INFO"
    }
}
```

### Reference

[http://haxe.org/manual/class-field-visibility.html](http://haxe.org/manual/class-field-visibility.html)<commit_msg>Fixed `public` typo<commit_after>---
title: Redundant Modifier
toc: false
---

Checks for redundant modifiers.

Omitting the visibility modifier usually defaults the visibility to `private` in normal classes and `public` in interfaces and externs.

### Configuration

```json
{
    "type": "RedundantModifier",
    "props": {
        "enforcePublicPrivate": false,
        "severity": "INFO"
    }
}
```

### Reference

[http://haxe.org/manual/class-field-visibility.html](http://haxe.org/manual/class-field-visibility.html)

{'fraction_non_alphanumeric': 0.14189837008628955, 'fraction_numerical': 0.0, 'mean_word_length': 3.878504672897196, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5883067', 'n_tokens_mistral': 345, 'n_tokens_neox': 321, 'n_words': 81}