Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linter for Ship-class capitalization #4233

Merged
merged 2 commits into from
Feb 23, 2025

Conversation

Ical92
Copy link
Contributor

@Ical92 Ical92 commented Feb 20, 2025

About The Pull Request

Adds a check for ships to be styled as "Name-class" rather than some cases of "Name-Class". Only checks lines within the _maps/ directory, to avoid other legitimate cases of "-Class" within code.

Why It's Good For The Game

Consistent capitlization for ship classes, hopefully removes the need to be repeated in PRs like #2304, #3815, and #4231.

Changelog

🆑
code: added a linter for ship class capitilzation
/:cl:

@Ossa88
Copy link

Ossa88 commented Feb 20, 2025

Just FYI

Run Grep Checks:
11: rg: error parsing flag -C: value is not a valid number: invalid digit found in string

@Ical92
Copy link
Contributor Author

Ical92 commented Feb 20, 2025

error parsing flag -C:

@Ossa88 Fixed with latest

@Ossa88
Copy link

Ossa88 commented Feb 21, 2025

error parsing flag -C:

@Ossa88 Fixed with latest

o7

@FalloutFalcon FalloutFalcon added this pull request to the merge queue Feb 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 22, 2025
@FalloutFalcon FalloutFalcon added this pull request to the merge queue Feb 23, 2025
Merged via the queue into shiptest-ss13:master with commit 7e8c057 Feb 23, 2025
16 checks passed
MrCat15352 pushed a commit to MrCat15352/MrCat that referenced this pull request Feb 25, 2025
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request
Adds a check for ships to be styled as "Name-class" rather than some
cases of "Name-Class". Only checks lines within the _maps/ directory, to
avoid other legitimate cases of "-Class" within code.
<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

## Why It's Good For The Game
Consistent capitlization for ship classes, hopefully removes the need to
be repeated in PRs like shiptest-ss13#2304, shiptest-ss13#3815, and shiptest-ss13#4231.
<!-- Please add a short description of why you think these changes would
benefit the game. If you can't justify it in words, it might not be
worth adding. -->

## Changelog

:cl:
code: added a linter for ship class capitilzation
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
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.

3 participants