Opened 8 years ago
Last modified 20 months ago
#4098 new defect
[PATCH] UnitAI tests
Reported by: | elexis | Owned by: | |
---|---|---|---|
Priority: | Nice to Have | Milestone: | Backlog |
Component: | Simulation | Keywords: | rfc patch |
Cc: | Patch: |
Description
UnitAI has many code style issues, for example bad linebreaks, uses deprecated for each, variables out of scope, redeclared variables and the like that ought to be fixed. Most of them can be found using jshint. We must be very careful to not introduce oversights as UnitAI is a weird monster with 6000 lines of code and many edge cases.
Attachments (4)
Change History (12)
comment:1 by , 8 years ago
Keywords: | review patch added |
---|---|
Milestone: | Backlog → Alpha 21 |
Owner: | set to |
Status: | new → assigned |
Summary: | UnitAI code style fixes → [PATCH] UnitAI code style fixes |
by , 8 years ago
by , 8 years ago
Attachment: | 4098.1.diff added |
---|
Some more fat arrow functions, further simplification
comment:2 by , 8 years ago
Some review is given in IRC: http://irclogs.wildfiregames.com/2016-07-18-QuakeNet-%230ad-dev.log from 22:59.
comment:3 by , 8 years ago
Keywords: | rfc added; review removed |
---|
Most changes seem good, however, per the new guidelines, you should also write tests for modified code in the simulation, see SubmittingPatches
Also, those if-lines shouldn't be made longer, though the && can be moved to the end of the lines instead of the beginning.
comment:4 by , 8 years ago
Keywords: | rfc removed |
---|
Any news? Moving out of the queue since comments have been made by Sander.
comment:5 by , 8 years ago
Milestone: | Alpha 21 → Backlog |
---|---|
Summary: | [PATCH] UnitAI code style fixes → [PATCH] UnitAI tests |
by , 7 years ago
Attachment: | 4098.3.diff added |
---|
I fixed the above. About the tests I really don't know what to do for that.
comment:6 by , 7 years ago
Keywords: | rfc added |
---|---|
Milestone: | Backlog → Work In Progress |
comment:7 by , 5 years ago
Component: | UI & Simulation → Simulation |
---|
Move tickets to Simulation
as UI & Simulation
got some sub components.
comment:8 by , 20 months ago
Milestone: | Work In Progress → Backlog |
---|---|
Owner: | removed |
Status: | assigned → new |
No progress in a while
Modest proposal