Skip to content

Add UseConsistentCasing#1704

Merged
andyleejordan merged 2 commits intoPowerShell:mainfrom
Jaykul:jaykul/feature/keywordcase
Mar 13, 2025
Merged

Add UseConsistentCasing#1704
andyleejordan merged 2 commits intoPowerShell:mainfrom
Jaykul:jaykul/feature/keywordcase

Conversation

@Jaykul
Copy link
Contributor

@Jaykul Jaykul commented Aug 17, 2021

Add lowercase keyword (and operator) enforcement as a separate rule.

I was thinking about adding a check for the correct case of [Types] and [Attribute()]s, but I think that should probably be in the original rule (UseCorrectCasing), which begs the question of whether we should just add that (or all of this) to the existing rule...

Originally, I made a separate rule because I thought I might need to configure the type of case ("lowercase", "UPPERCASE", "CorrectCase") ... but I quickly decided all-caps is awful, and there is no "correct" case (the C# tokenizer code just capitalizes the first letter of each token, and the documentation is inconsistent about capitalization of keywords and operators).

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants