2
2
3
3
## Introduction
4
4
5
- :wave : Welcome to GoatStyles, a repository for professional code style guides, where we strive to
5
+ :wave : Welcome to GoatStyles, a repository for professional code style guides, where we strive to
6
6
uphold the highest standards of software engineering.
7
7
8
- In the realm of code style guides, we understand that opinions vary, and decisions often balance
9
- between necessity and subjectivity. However, amidst this diversity of perspectives, one principle
10
- remains paramount: __ consistency__ . By adhering to a consistent style, developers can enhance
8
+ In the realm of code style guides, we understand that opinions vary, and decisions often balance
9
+ between necessity and subjectivity. However, amidst this diversity of perspectives, one principle
10
+ remains paramount: __ consistency__ . By adhering to a consistent style, developers can enhance
11
11
readability, maintainability, and collaboration within their codebases.
12
12
13
13
## Styles
14
14
15
15
Click on the programming language logo to view the style guide for that language.
16
16
17
- | ▁▁▁▁▁▁▁ | ▁▁▁▁▁▁▁ | ▁▁▁▁▁▁▁ | ▁▁▁▁▁▁▁ | ▁▁▁▁▁▁▁ | ▁▁▁▁▁▁▁ |
18
- | :-----------------------------------------------:| :------------------------------------------------------------------:| :----------------------------------------------:| :--------------------------------------:| :------------------------------------------:| :--------------------------------------------------------------:|
19
- | [ ![ C++] [ CPP_Logo ]] [ CPP ] <br >** C** ++ | [ ![ C#] [ CSharp_Logo ]] [ CSharp ] <br >** C** # | [ ![ Dart] [ Dart_Logo ]] [ Dart ] <br >** Dart** | [ ![ Go] [ Go_Logo ]] [ Go ] <br >** Go** | [ ![ Java] [ Java_Logo ]] [ Java ] <br >** Java** | [ ![ JavaScript] [ JavaScript_Logo ]] [ JavaScript ] <br >** JavaScript** |
20
- | [ ![ Kotlin] [ Kotlin_Logo ]] [ Kotlin ] <br >** Kotlin** | [ ![ Objective-C] [ Objective-C_Logo ]] [ Objective-C ] <br >** Objective-C** | [ ![ Python] [ Python_Logo ]] [ Python ] <br >** Python** | [ ![ Rust] [ Rust_Logo ]] [ Rust ] <br >** Rust** | [ ![ Swift] [ Swift_Logo ]] [ Swift ] <br >** Swift** | [ ![ TypeScript] [ TypeScript_Logo ]] [ TypeScript ] <br >** TypeScript** |
17
+ | ▁▁▁▁▁▁▁ | ▁▁▁▁▁▁▁ | ▁▁▁▁▁▁▁ | ▁▁▁▁▁▁▁ | ▁▁▁▁▁▁▁ | ▁▁▁▁▁▁▁ |
18
+ | :----------------------------------------------:| :------------------------------------------------------------------:| :----------------------------------------------:| :--------------------------------------:| :------------------------------------------:| :--------------------------------------------------------------:|
19
+ | [ ![ C++] [ CPP_Logo ]] [ CPP ] <br >** C** ++ | [ ![ C#] [ CSharp_Logo ]] [ CSharp ] <br >** C** # | [ ![ Dart] [ Dart_Logo ]] [ Dart ] <br >** Dart** | [ ![ Go] [ Go_Logo ]] [ Go ] <br >** Go** | [ ![ Java] [ Java_Logo ]] [ Java ] <br >** Java** | [ ![ JavaScript] [ JavaScript_Logo ]] [ JavaScript ] <br >** JavaScript** |
20
+ | [ ![ Kotlin] [ Kotlin_Logo ]] [ Kotlin ] <br >** Kotlin** | [ ![ Objective-C] [ Objective-C_Logo ]] [ Objective-C ] <br >** Objective-C** | [ ![ Python] [ Python_Logo ]] [ Python ] <br >** Python** | [ ![ Rust] [ Rust_Logo ]] [ Rust ] <br >** Rust** | [ ![ Swift] [ Swift_Logo ]] [ Swift ] <br >** Swift** | [ ![ TypeScript] [ TypeScript_Logo ]] [ TypeScript ] <br >** TypeScript** |
21
+
22
+ ## Badges
23
+
24
+ Enhance your project's documentation by adding our style guide badges, signaling to fellow
25
+ developers the coding standards and conventions your project adheres to. Each badge links directly
26
+ to a comprehensive style guide for its respective programming language.
27
+
28
+ [ ![ Style Guide-C++] ( https://img.shields.io/badge/Style%20Guide-C++-00599C.svg?style=flat&labelColor=black&color=00599C&logo=cplusplus )] ( https://styles.goatbytes.io/lang/cpp )
29
+ [ ![ Style Guide-C#] ( https://img.shields.io/badge/Style%20Guide-C%23-178600.svg?style=flat&labelColor=black&color=178600&logo=csharp )] ( https://styles.goatbytes.io/lang/csharp )
30
+ [ ![ Style Guide-Dart] ( https://img.shields.io/badge/Style%20Guide-Dart-00B4AB.svg?style=flat&labelColor=black&color=00B4AB&logo=dart )] ( https://styles.goatbytes.io/lang/dart )
31
+ [ ![ Style Guide-Go] ( https://img.shields.io/badge/Style%20Guide-Go-00ADD8.svg?style=flat&labelColor=black&color=00ADD8&logo=go )] ( https://styles.goatbytes.io/lang/go )
32
+ [ ![ Style Guide-Java] ( https://img.shields.io/badge/Style%20Guide-Java-ED8B00.svg?style=flat&labelColor=black&color=ED8B00&logo=java )] ( https://styles.goatbytes.io/lang/java )
33
+ [ ![ Style Guide-JavaScript] ( https://img.shields.io/badge/Style%20Guide-JavaScript-F0DB4F.svg?style=flat&labelColor=black&color=F0DB4F&logo=javascript )] ( https://styles.goatbytes.io/lang/javascript )
34
+ [ ![ Style Guide-Kotlin] ( https://img.shields.io/badge/Style%20Guide-Kotlin-7F52FF.svg?style=flat&labelColor=black&color=7F52FF&logo=kotlin )] ( https://styles.goatbytes.io/lang/kotlin )
35
+ [ ![ Style Guide-Objective-C] ( https://img.shields.io/badge/Style%20Guide-Objective--C-438EFF.svg?style=flat&labelColor=black&color=438EFF )] ( https://styles.goatbytes.io/lang/objective-c )
36
+ [ ![ Style Guide-Python] ( https://img.shields.io/badge/Style%20Guide-Python-3776AB.svg?style=flat&labelColor=black&color=3776AB&logo=python )] ( https://styles.goatbytes.io/lang/python )
37
+ [ ![ Style Guide-Rust] ( https://img.shields.io/badge/Style%20Guide-Rust-DEA584.svg?style=flat&labelColor=black&color=DEA584&logo=rust )] ( https://styles.goatbytes.io/lang/rust )
38
+ [ ![ Style Guide-Shell] ( https://img.shields.io/badge/Style%20Guide-Shell-4EAA25.svg?style=flat&labelColor=black&color=4EAA25&logo=gnu-bash )] ( https://styles.goatbytes.io/lang/shell )
39
+ [ ![ Style Guide-Swift] ( https://img.shields.io/badge/Style%20Guide-Swift-FA7343.svg?style=flat&labelColor=black&color=FA7343&logo=swift )] ( https://styles.goatbytes.io/lang/swift )
40
+ [ ![ Style Guide-TypeScript] ( https://img.shields.io/badge/Style%20Guide-TypeScript-3178C6.svg?style=flat&labelColor=black&color=3178C6&logo=typescript )] ( https://styles.goatbytes.io/lang/typescript )
21
41
22
42
## Project Overview
23
43
24
44
### Programming Languages
25
45
26
- GoatStyles provides comprehensive style guides for C++, C#, Dart, Go, Java, JavaScript, Kotlin,
27
- Objective-C, Python, Rust, Shell, Swift, and TypeScript. Our aim is to support a wide range of
46
+ GoatStyles provides comprehensive style guides for C++, C#, Dart, Go, Java, JavaScript, Kotlin,
47
+ Objective-C, Python, Rust, Shell, Swift, and TypeScript. Our aim is to support a wide range of
28
48
development environments, catering to the diverse needs of the software development community.
29
49
30
50
### Technology Stack and Tools
@@ -35,17 +55,17 @@ development environments, catering to the diverse needs of the software developm
35
55
36
56
### Repository Structure
37
57
38
- The GoatStyles style guides are meticulously documented in Markdown and located within the
39
- [ ` docs/styles ` ] ( docs/lang ) directory of the repository.
58
+ The GoatStyles style guides are meticulously documented in Markdown and located within the
59
+ [ ` docs/lang ` ] ( docs/lang ) directory of the repository.
40
60
41
61
## How to Contribute
42
62
43
- We encourage contributions to GoatStyles! Before making a contribution, please review our
44
- [ contributing] ( docs/contributing.md ) guidelines. All contributors must complete our
63
+ We encourage contributions to GoatStyles! Before making a contribution, please review our
64
+ [ contributing] ( docs/contributing.md ) guidelines. All contributors must complete our
45
65
[ Individual Contributor License Agreement (CLA)] [ CLA ] before their code can be accepted.
46
66
47
- Forking the repository and proposing changes through pull requests are great ways to contribute.
48
- Though not all suggestions may be accepted, your contributions are highly appreciated and crucial
67
+ Forking the repository and proposing changes through pull requests are great ways to contribute.
68
+ Though not all suggestions may be accepted, your contributions are highly appreciated and crucial
49
69
to the project's growth and diversity.
50
70
51
71
## Build Instructions
@@ -54,8 +74,8 @@ To build and serve the GoatStyles site locally, follow these instructions:
54
74
55
75
### Prerequisites
56
76
57
- - ** Python 3.x** : Ensure you have Python 3.x installed on your machine. You can check your
58
- Python version by running ` python --version ` in your terminal.
77
+ - ** Python 3.x** : Ensure you have Python 3.x installed on your machine. You can check your
78
+ Python version by running ` python --version ` in your terminal.
59
79
- ** Git** : Make sure Git is installed for cloning the repository.
60
80
61
81
### Steps
@@ -68,7 +88,7 @@ Python version by running `python --version` in your terminal.
68
88
```
69
89
70
90
2. ** Set Up Python Environment (Optional)**
71
- - It' s recommended to create a virtual environment to keep dependencies required by the project
91
+ - It' s recommended to create a virtual environment to keep dependencies required by the project
72
92
separate from your global Python environment:
73
93
```shell
74
94
python -m venv venv
@@ -93,11 +113,11 @@ Python version by running `python --version` in your terminal.
93
113
```shell
94
114
mkdocs serve
95
115
```
96
- - This command starts a local web server that serves the GoatStyles site. You can view the site
116
+ - This command starts a local web server that serves the GoatStyles site. You can view the site
97
117
by navigating to `http://127.0.0.1:8000` in your web browser.
98
118
99
119
6. **Making Changes**
100
- - You can now make changes to the Markdown files. The site will automatically rebuild and
120
+ - You can now make changes to the Markdown files. The site will automatically rebuild and
101
121
refresh the browser page when you save changes.
102
122
103
123
## License
@@ -106,6 +126,8 @@ Python version by running `python --version` in your terminal.
106
126
107
127
# `};`
108
128
129
+ [//]: # (@formatter:off)
130
+
109
131
[GS]: https://styles.goatbytes.io
110
132
[GB]: https://goatbytes.io
111
133
[GH]: https://github.com/goatbytes/GoatStyles
@@ -127,15 +149,15 @@ Python version by running `python --version` in your terminal.
127
149
[TypeScript_Logo]: ./docs/assets/img/typescript.svg
128
150
129
151
<!-- Page URLs -->
130
- [CPP]: https://goatbytes.github. io/GoatStyles/styles /cpp/
131
- [CSharp]: https://goatbytes.github. io/GoatStyles/styles /csharp/
132
- [Dart]: https://goatbytes.github. io/GoatStyles/styles /dart/
133
- [Go]: https://goatbytes.github. io/GoatStyles/styles /go/
134
- [Java]: https://goatbytes.github. io/GoatStyles/styles /java/
135
- [JavaScript]: https://goatbytes.github. io/GoatStyles/styles /javascript/
136
- [Kotlin]: https://goatbytes.github. io/GoatStyles/styles /kotlin/
137
- [Objective-C]: https://goatbytes.github. io/GoatStyles/styles /objc/
138
- [Python]: https://goatbytes.github. io/GoatStyles/styles /python/
139
- [Rust]: https://goatbytes.github. io/GoatStyles/styles /rust/
140
- [Swift]: https://goatbytes.github. io/GoatStyles/styles /swift/
141
- [TypeScript]: https://goatbytes.github. io/GoatStyles/styles /typescript/
152
+ [CPP]: https://styles. goatbytes.io/lang /cpp/
153
+ [CSharp]: https://styles. goatbytes.io/lang /csharp/
154
+ [Dart]: https://styles. goatbytes.io/lang /dart/
155
+ [Go]: https://styles. goatbytes.io/lang /go/
156
+ [Java]: https://styles. goatbytes.io/lang /java/
157
+ [JavaScript]: https://styles. goatbytes.io/lang /javascript/
158
+ [Kotlin]: https://styles. goatbytes.io/lang /kotlin/
159
+ [Objective-C]: https://styles. goatbytes.io/lang /objc/
160
+ [Python]: https://styles. goatbytes.io/lang /python/
161
+ [Rust]: https://styles. goatbytes.io/lang /rust/
162
+ [Swift]: https://styles. goatbytes.io/lang /swift/
163
+ [TypeScript]: https://styles. goatbytes.io/lang /typescript/
0 commit comments