Skip to content

Commit 13210bb

Browse files
committed
feat(project): move working reefscape code to swerve template
Moved the (now) working code from the REEFSCAPE 2025 repository to the Swerve Drive Template repository
1 parent dbb2476 commit 13210bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+4691
-1415
lines changed

.cz-config.js

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
const subjectCharacterLimit = 100;
2+
13
module.exports = {
24
types: [
3-
{value: 'feat', name: 'feat: A new feature'},
4-
{value: 'fix', name: 'fix: A bug fix'},
5-
{value: 'docs', name: 'docs: Documentation only changes'},
6-
{value: 'tune', name: 'tune: Changes that affect the tuning of the robot'},
5+
{ value: 'feat', name: 'feat: A new feature' },
6+
{ value: 'fix', name: 'fix: A bug fix' },
7+
{ value: 'docs', name: 'docs: Documentation only changes' },
8+
{ value: 'tune', name: 'tune: Changes that affect the tuning of the robot' },
79
{
810
value: 'style',
911
name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
@@ -16,17 +18,19 @@ module.exports = {
1618
value: 'perf',
1719
name: 'perf: A code change that improves performance',
1820
},
19-
{value: 'test', name: 'test: Adding missing tests'},
21+
{ value: 'test', name: 'test: Adding missing tests' },
2022
{
2123
value: 'chore',
2224
name: 'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation',
2325
},
24-
{value: 'WIP', name: 'WIP: Work in progress'},
25-
{value: 'revert', name: 'revert: Revert to a prior commit'},
26-
{value: 'removal', name: 'removal: Remove a feature or code section'},
26+
{ value: 'wip', name: 'wip: Work in progress' },
27+
{ value: 'revert', name: 'revert: Revert to a prior commit' },
28+
{ value: 'removal', name: 'removal: Remove a feature or code section' },
29+
{ value: 'update', name: 'update: Update a dependency or vendor dep' },
30+
{ value: 'rename', name: 'rename: Rename a class or function (or something else)' },
2731
],
2832

29-
scopes: [{name: 'paddrive'}, {name: 'photonvision'}, {name: 'swerve'}, {name: 'robotparams'}, {name: 'utils'}],
33+
scopes: [{ name: 'robot' }, { name: 'swerve' }, { name: 'elevator' }, { name: 'pivot' }, { name: 'led' }, { name: 'photon' }, { name: 'robotparams' }, { name: 'command' }, { name: 'utils' }, { name: 'project' }],
3034

3135
usePreparedCommit: false, // to re-use commit from ./.git/COMMIT_EDITMSG
3236
allowTicketNumber: false,
@@ -37,24 +41,27 @@ module.exports = {
3741
// it needs to match the value for field type. Eg.: 'chore'
3842
scopeOverrides: {
3943
chore: [
40-
{name: 'github'},
41-
{name: 'gradle'},
42-
{name: 'dokka'},
43-
{name: 'cz'},
44+
{ name: 'github' },
45+
{ name: 'gradle' },
46+
{ name: 'dokka' },
47+
{ name: 'cz' },
48+
{ name: 'commitlint' },
49+
{ name: 'husky' }
4450
],
4551
tune: [
46-
{name: 'swerve'},
47-
{name: 'pivot'},
48-
{name: 'elevator'},
49-
]
52+
{ name: 'swerve' },
53+
{ name: 'pivot' },
54+
{ name: 'elevator' }
55+
],
56+
update: []
5057
},
5158
// override the messages, defaults are as follows
5259
messages: {
5360
type: "Select the type of change that you're committing:",
5461
scope: '\nDenote the SCOPE of this change (optional):',
5562
// used if allowCustomScopes is true
5663
customScope: 'Denote the SCOPE of this change:',
57-
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
64+
subject: `Write a SHORT, IMPERATIVE tense description of the change (less than ${subjectCharacterLimit} characters long):\n`,
5865
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
5966
breaking: 'List any BREAKING CHANGES (optional):\n',
6067
footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
@@ -67,7 +74,7 @@ module.exports = {
6774
// skipQuestions: ['scope', 'body'],
6875

6976
// limit subject length
70-
subjectLimit: 100,
77+
subjectLimit: subjectCharacterLimit,
7178
breaklineChar: '|', // It is supported for fields body and footer.
7279
// footerPrefix : 'ISSUES CLOSED:'
7380
// askForBreakingChangeFirst : true, // default is false

.gitignore

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Temporary Items
104104
.apdisk
105105

106106
### VisualStudioCode ###
107+
.vscode
107108
.vscode/*
108109
!.vscode/settings.json
109110
!.vscode/tasks.json
@@ -136,8 +137,9 @@ $RECYCLE.BIN/
136137
*.lnk
137138

138139
### Gradle ###
139-
.gradle
140140
/build/
141+
.gradle
142+
.gradle/
141143

142144
# Ignore Gradle GUI config
143145
gradle-app.setting
@@ -169,6 +171,8 @@ out/
169171
.fleet
170172

171173
# Simulation GUI and other tools window save file
174+
networktables.json
175+
simgui.json
172176
*-window.json
173177

174178
# Simulation data log directory
@@ -177,5 +181,25 @@ logs/
177181
# Folder that has CTRE Phoenix Sim device config storage
178182
ctre_sim/
179183

180-
# Commit File
181-
commit.txt
184+
# clangd
185+
/.cache
186+
compile_commands.json
187+
188+
# Eclipse generated file for annotation processors
189+
.factorypath
190+
191+
# ENV
192+
*.env
193+
*.env.local
194+
.env
195+
.env.local
196+
197+
.qodo
198+
199+
# Node
200+
node_modules/
201+
node_modules
202+
203+
# Kotlin
204+
.kotlin
205+
.kotlin/

.husky/commit-msg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ensure commitlint gets the message correctly
2+
npx commitlint --edit "$1"

.run/Build & Deploy Robot for Debugging.run.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.run/Build & Deploy Robot.run.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.run/Build Robot.run.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.run/Clean Build & Deploy Robot for Debugging.run.xml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.run/Clean Build & Deploy Robot.run.xml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.run/Clean Build Robot.run.xml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.run/Clean.run.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.run/Debug Robot via IP.run.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.run/Debug Robot via USB.run.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)