SpacemanDMM icon indicating copy to clipboard operation
SpacemanDMM copied to clipboard

A BYOND language smartness provider, map renderer, and more.

Results 94 SpacemanDMM issues
Sort by recently updated
recently updated
newest added

It is perhaps unwise to include `operator` in a path, but BYOND accepts it. ``` /datum/operator /datum/operator/proc/test() ``` This emits a warning that the proc is relatively-pathed, and confuses the...

parsing

For 515 forward compatibility, I have had these five consts declared in a block of `#if DM_VERSION < 515` in [_version.dm#L66](https://github.com/Baystation12/Baystation12/blob/6389aada31c6f666f45c5a390f4ba47b02079932/code/_version.dm#L66). I also added these to suite's builtins.rs in https://github.com/SpaceManiac/SpacemanDMM/pull/354....

Basically, it would be cool to have a way to flag certain procs / variables so that you indicate that they must be overridden in derivate paths, eg: ``` /datum/food...

enhancement

`transform.Translate(1, 1).Scale(3, 3)` lints as needing a static type

bug
good first issue

Throw a warning for the following: ```dm my_var = my_var ``` ```dm my_var.field = my_var.field ``` Ie when both sides of the assign are variable accesses or field accesses and...

enhancement
diagnostics

## Details First noticed this while making our codebase compatible with OpenDream. https://github.com/Citadel-Station-13/Citadel-Station-13-RP/blob/6085261718f4e0c5cdc33fa93d641ed080484d09/code/game/objects/items/stacks/sandbag.dm#L52 From what I've tested, this only happens to types, procs will error for other reasons to prevent...

Fixes #355 Also splits SHOULD_NOT_SLEEP and SHOULD_BE_PURE tests and adds a minor improvement to the test helpers in that it shows more info where it wouldn't when `panic`ing

``` /datum/braced{ var/a; /proc/foo() return ``` 0 errors in langserver on a test project

![image](https://github.com/SpaceManiac/SpacemanDMM/assets/8171642/aa54a6ba-63c8-4c9b-9115-df201a4c471a) ![image](https://github.com/SpaceManiac/SpacemanDMM/assets/8171642/5c1daf17-2433-4133-a3b8-497884c46656)

This errors in dreamchecker as expected ```dm /datum/proc/is_valid(value) SHOULD_NOT_SLEEP(TRUE) /datum/choiced/is_valid(value) get_choices() /datum/choiced/proc/get_choices() init_possible_values() /datum/choiced/proc/init_possible_values() /datum/choiced/ai_core_display/init_possible_values() sleep(1) ``` This doesn't ```dm /datum/proc/is_valid(value) SHOULD_NOT_SLEEP(TRUE) /datum/choiced/is_valid(value) get_choices() /datum/choiced/proc/get_choices() init_possible_values() /datum/choiced/proc/init_possible_values() /datum/choiced/ai_core_display/init_possible_values() stoplag() /proc/stoplag()...