updated for UK spelling (golangci-lint -E misspell)

exception for color, colors, and coloring in golangcg-lint config file
This commit is contained in:
JetSetIlly 2020-10-16 13:00:33 +01:00
parent f4b069e544
commit 7c1409d474
7 changed files with 17 additions and 10 deletions

View file

@ -24,6 +24,13 @@ linters-settings:
- singleCaseSwitch
- exitAfterDefer
misspell:
locale: UK
ignore-words:
- color
- colors
- coloring
issues:
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0

View file

@ -76,7 +76,7 @@ type glsl struct {
func newGlsl(io imgui.IO, img *SdlImgui) (*glsl, error) {
err := gl.Init()
if err != nil {
return nil, fmt.Errorf("failed to initialize OpenGL: %v", err)
return nil, fmt.Errorf("failed to initialise OpenGL: %v", err)
}
rnd := &glsl{
@ -123,7 +123,7 @@ func (rnd *glsl) render(displaySize [2]float32, framebufferSize [2]float32, draw
st := storeGLState()
defer st.restore()
// Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates)
// Avoid rendering when minimised, scale coordinates for retina displays (screen coordinates != framebuffer coordinates)
displayWidth, displayHeight := displaySize[0], displaySize[1]
fbWidth, fbHeight := framebufferSize[0], framebufferSize[1]
if (fbWidth <= 0) || (fbHeight <= 0) {

View file

@ -63,10 +63,10 @@ type winDbgScr struct {
// height of tool bar at bottom of window. valid after first frame.
toolBarHeight float32
// additional padding for the image so that it is centered in its content space
// additional padding for the image so that it is centred in its content space
imagePadding imgui.Vec2
// size of window and content area in which to center the image. we need
// size of window and content area in which to centre the image. we need
// both depending on how we set the scaling from the screen. when resizing
// the window, we use contentDim (the area inside the window) to figure out
// the scaling value. when resizing numerically (with the getScale()

View file

@ -275,7 +275,7 @@ func (win *winDisasm) drawBank(pcaddr uint16, b int, selected bool, cpuStep bool
addr = pcaddr
scrollMargin = 4
// we have centered on the PC. the alignOnPC will be unset next
// we have centred on the PC. the alignOnPC will be unset next
// frame (so long as the the CPU hasn't moved on)
win.hasAlignedOnPC = true
}
@ -398,7 +398,7 @@ func (win *winDisasm) drawEntry(e *disassembly.Entry, pcaddr uint16, selected bo
// on right mouse button, set interactive to false. if emulation is not
// running, it will be true for only one (imgui) frame but that is enough
// to cause the scroller to center on the current entry.
// to cause the scroller to centre on the current entry.
if imgui.IsItemHoveredV(imgui.HoveredFlagsAllowWhenDisabled) && imgui.IsMouseDown(1) {
win.alignOnPC = true
}

View file

@ -41,10 +41,10 @@ type winPlayScr struct {
// the tv screen has captured mouse input
isCaptured bool
// additional padding for the image so that it is centered in its content space
// additional padding for the image so that it is centred in its content space
imagePadding imgui.Vec2
// size of window and content area in which to center the image
// size of window and content area in which to centre the image
winDim imgui.Vec2
contentDim imgui.Vec2

View file

@ -104,7 +104,7 @@ func fingerprintSuperchargerFastLoad(cartload cartridgeloader.Loader) bool {
func fingerprintTigervision(b []byte) bool {
// tigervision cartridges change banks by writing to memory address 0x3f. we
// can hypothesize that these types of cartridges will have that instruction
// can hypothesise that these types of cartridges will have that instruction
// sequence "85 3f" many times in a ROM whereas other cartridge types will not
threshold := 5

View file

@ -53,7 +53,7 @@ type LastResult struct {
}
// Hmove groups the HMOVE reflection information. It's too complex a property
// to distill into a single variable.
// to distil into a single variable.
type Hmove struct {
Delay bool
DelayCt int