Skip to content

Commit 8d81be3

Browse files
committed
fix: 🩹 Semantics
1 parent 086b4ea commit 8d81be3

File tree

9 files changed

+33
-33
lines changed

9 files changed

+33
-33
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Code Limit Documentation
1+
# CodeLimit Documentation

‎docs/assets/scan.cast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
[5.763746, "o", "\u001b[?2004l\r\r\n"]
2727
[5.765945, "o", "\u001b]2;codelimit scan .\u0007\u001b]1;codelimit\u0007"]
2828
[5.766406, "o", "\u001b]0;fastapi: codelimit scan .\u0007"]
29-
[6.010441, "o", " \u001b[1mCode Limit\u001b[0m: \u001b[1;36m0.8\u001b[0m.\u001b[1;36m1\u001b[0m\r\n"]
29+
[6.010441, "o", " \u001b[1mCodeLimit\u001b[0m: \u001b[1;36m0.8\u001b[0m.\u001b[1;36m1\u001b[0m\r\n"]
3030
[6.010585, "o", " \u001b[1mScan date\u001b[0m: \u001b[1;36m2024\u001b[0m-\u001b[1;36m04\u001b[0m-\u001b[1;36m06\u001b[0m \u001b[1;92m18:06:10\u001b[0m\r\n"]
3131
[6.010803, "o", " \u001b[1mScan root\u001b[0m: \u001b[35m/Users/rob/projects/opensource/\u001b[0m\u001b[95mfastapi\u001b[0m\r\n\u001b[?25l"]
3232
[7.022598, "o", "\r\u001b[2K \r\n \u001b[1m \u001b[0m\u001b[1mLanguage \u001b[0m\u001b[1m \u001b[0m \u001b[1m \u001b[0m\u001b[1m Files\u001b[0m\u001b[1m \u001b[0m \u001b[1m \u001b[0m\u001b[1m Lines of Code\u001b[0m\u001b[1m \u001b[0m \u001b[1m \u001b[0m\u001b[1m Functions\u001b[0m\u001b[1m \u001b[0m \u001b[1m \u001b[0m\u001b[1m ⚠\u001b[0m\u001b[1m \u001b[0m \u001b[1m \u001b[0m\u001b[1m ✖\u001b[0m\u001b[1m \u001b[0m \r\n ────────────────────────────────────────────────────────────────────────────── \r\n JavaScript 2 341 21 0 \u001b[31m 1\u001b[0m \r\n "]

‎docs/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Development
22

3-
After installing dependencies with `poetry install`, Code Limit can be run from
3+
After installing dependencies with `poetry install`, CodeLimit can be run from
44
the repository root like this:
55

66
```shell

‎docs/faq.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# F.A.Q.
22

3-
### Q. What programming languages does Code Limit support?
3+
### Q. What programming languages does CodeLimit support?
44

5-
Currently Code Limit supports these programming languages:
5+
Currently CodeLimit supports these programming languages:
66

77
- C
88
- C++
@@ -11,16 +11,16 @@ Currently Code Limit supports these programming languages:
1111
- Python
1212
- TypeScript
1313

14-
### Q. How does Code Limit compare to ...
14+
### Q. How does CodeLimit compare to ...
1515

1616
**Black**
1717

18-
[Black](https://github.com/psf/black) is a code formatter and can run alongside Code Limit.
18+
[Black](https://github.com/psf/black) is a code formatter and can run alongside CodeLimit.
1919

2020
**Flake8**
2121

2222
[Flake8](https://github.com/PyCQA/flake8) is a linter and can run alongside
23-
Code Limit. Flake8 can be extended with third-party plugins.
23+
CodeLimit. Flake8 can be extended with third-party plugins.
2424

2525
**Lizard**
2626

@@ -38,4 +38,4 @@ development.
3838
**Ruff**
3939

4040
[Ruff](https://github.com/astral-sh/ruff) is a linter and can run alongside
41-
Code Limit. Ruff has no linting rule for function length.
41+
CodeLimit. Ruff has no linting rule for function length.

‎docs/getting-started/development-workflow.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## GitHub Action
44

5-
Code Limit is available as a [GitHub
5+
CodeLimit is available as a [GitHub
66
Action](https://github.com/getcodelimit/codelimit-action)
77

8-
When running as a GitHub Action, Code Limit only checks modified files and
8+
When running as a GitHub Action, CodeLimit only checks modified files and
99
*warns* about functions that *should* be refactored and *fails* for functions
1010
that *need* to be refactored.
1111

12-
To run Code Limit on every push and before every merge to `main`, append it to
12+
To run CodeLimit on every push and before every merge to `main`, append it to
1313
your GH Action workflow:
1414

1515
```yaml
@@ -30,13 +30,13 @@ jobs:
3030
- name: 'Checkout'
3131
uses: actions/checkout@v2
3232

33-
- name: 'Run Code Limit'
33+
- name: 'Run CodeLimit'
3434
uses: getcodelimit/codelimit-action@v1
3535
```
3636
3737
## Pre-commit hook
3838
39-
Code Limit can be installed as a [pre-commit](https://pre-commit.com/) hook so
39+
CodeLimit can be installed as a [pre-commit](https://pre-commit.com/) hook so
4040
it alarms you during development when it's time to refactor:
4141
4242
```yaml
@@ -46,14 +46,14 @@ it alarms you during development when it's time to refactor:
4646
- id: codelimit
4747
```
4848
49-
Code Limit is intended to be used alongside formatting, linters and other hooks
49+
CodeLimit is intended to be used alongside formatting, linters and other hooks
5050
that improve the consistency and quality of your code (such as
5151
[Black](https://github.com/psf/black),
5252
[Ruff](https://github.com/astral-sh/ruff) and
5353
[MyPy](https://github.com/python/mypy).) As an example pre-commit configuration
5454
see the
5555
[`pre-commit-config.yaml`](https://github.com/getcodelimit/codelimit/blob/main/.pre-commit-config.yaml)
56-
from Code Limit itself.
56+
from CodeLimit itself.
5757

58-
When running as a hook, Code Limit *warns* about functions that *should* be
58+
When running as a hook, CodeLimit *warns* about functions that *should* be
5959
refactored and *fails* for functions that *need* to be refactord.

‎docs/getting-started/standalone-usage.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Homebrew
66

7-
Code Limit is available on
7+
CodeLimit is available on
88
[Homebrew](https://formulae.brew.sh/formula/codelimit):
99

1010
```shell
@@ -13,7 +13,7 @@ brew install codelimit
1313

1414
### Pipx
1515

16-
To install the standalone version of Code Limit in an isolated Python
16+
To install the standalone version of CodeLimit in an isolated Python
1717
environment using [pipx](https://pypa.github.io/pipx) run:
1818

1919
```
@@ -22,7 +22,7 @@ pipx install codelimit
2222

2323
### PyPi
2424

25-
To install the standalone version of Code Limit for your default Python
25+
To install the standalone version of CodeLimit for your default Python
2626
installation run:
2727

2828
```shell
@@ -37,7 +37,7 @@ page](https://github.com/getcodelimit/codelimit/releases/latest).
3737

3838
## Usage
3939

40-
Run Code Limit without arguments to see the usage page:
40+
Run CodeLimit without arguments to see the usage page:
4141

4242
```shell
4343
$ codelimit
@@ -56,7 +56,7 @@ $ codelimit
5656
│ check Check file(s) │
5757
│ scan Scan a codebase │
5858
│ report Show report for codebase │
59-
│ app Code Limit GitHub App commands │
59+
│ app CodeLimit GitHub App commands │
6060
╰──────────────────────────────────────────────────────────────────────────────╯
6161
```
6262

‎docs/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ Developers can make simple things complex, like unmaintainable code, but they
3232
are much better at making complex things simple. Refactoring makes complex code
3333
simple again.
3434

35-
But when to refactor? How much to refactor? What to refactor? That's where Code Limit comes in.
35+
But when to refactor? How much to refactor? What to refactor? That's where CodeLimit comes in.
3636

37-
## Meet Code Limit
37+
## Meet CodeLimit
3838

39-
Code Limit is a tool for developers with one goal: _it tells the developer when
39+
CodeLimit is a tool for developers with one goal: _it tells the developer when
4040
it’s time to refactor_.
4141

4242
### Key features and design principles
@@ -52,13 +52,13 @@ hook](getting-started/development-workflow.md#pre-commit-hook), or
5252
* **Covers many languages**: A single tool for all your projects
5353
* **Sane defaults**: Zero configuration, but allows customization
5454
* **Low threshold to get started**: Can only check new or modified code, so
55-
even if you have a backlog of technical debt, you can start using Code Limit
55+
even if you have a backlog of technical debt, you can start using CodeLimit
5656
today
5757

5858
*[functions]: Also called methods or procedures, depending on your programming language
5959

6060
## Next steps
6161

6262
Go to the [Getting Started](getting-started/development-workflow.md) section to
63-
start using Code Limit, or read more about the [function length
63+
start using CodeLimit, or read more about the [function length
6464
metric](why-function-length.md).

‎docs/why-function-length.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ It's also a (fairly) non-controversial metric, most developers agree longer
1717
functions are harder to maintain. Also, there's always a refactoring possible
1818
to make functions smaller.
1919

20-
## Why Code Limit?
20+
## Why CodeLimit?
2121

2222
Because function length is such a simple code metric, many code quality tools
2323
measure it. But these tools measure a lot more metrics, sometimes so much
2424
metrics that developers are overwhemled and loose focus on the metrics that
2525
matter most.
2626

27-
Code Limit measures only function length but it tries to be the best developer
27+
CodeLimit measures only function length but it tries to be the best developer
2828
tool for measuring it. By notifying developers when it's time to refactor, Code
2929
Limit prevents unmaintainable code.
3030

31-
## How Code Limit measures function length
31+
## How CodeLimit measures function length
3232

33-
Code Limit measures the lines of code for each function in your codebase and
33+
CodeLimit measures the lines of code for each function in your codebase and
3434
assigns each function to a category:
3535

3636
| Easy | Verbose | Hard-to-maintain <span style="color: #e5832f;">&#x26A0;</span> | Unmaintainable <span style="color: #ff0000;">&#x2716;</span> |

‎mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
site_name: Code Limit Documentation
1+
site_name: CodeLimit Documentation
22
repo_url: https://github.com/getcodelimit/codelimit
33
theme:
44
name: material
@@ -37,7 +37,7 @@ markdown_extensions:
3737
- attr_list
3838
- pymdownx.snippets
3939
nav:
40-
- Code Limit: 'index.md'
40+
- CodeLimit: 'index.md'
4141
- 'why-function-length.md'
4242
- Getting Started:
4343
- 'getting-started/development-workflow.md'

0 commit comments

Comments
 (0)