The Wayback Machine - https://web.archive.org/web/20200828061530/https://github.com/topics/conventions
Skip to content
#

conventions

Here are 164 public repositories matching this topic...

onrige
onrige commented Nov 21, 2019

Hey. Just a question. Can we add possibility to extend from single string not just from array? So it will work like other linting libraries (eslint, stylelint, etc.).

package.json

"babel":  {
  "extends": "shared-tools"
},
"commitlint": {
  "extends": [
    "shared-tools"
  ]
},
"eslintConfig": {
  "extends": "shared-tools"
}
nightlyone
nightlyone commented Feb 24, 2020

The Go team highly mandates to express a value range check as

 if '0' <= c && c <= '9' { 
	// character range ok
}

instead of

 if c >= '0'  && c <= '9' { 
	// character range ok
}

so the yodaStyleExpr should respect this and cease to warn about that.

NOTE: This like an regression that might have been introduced by PR #856 while trying to fix issue #355 before.

Improve this page

Add a description, image, and links to the conventions topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the conventions topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.