Skip to content
#

linting

Here are 394 public repositories matching this topic...

Zamiell
Zamiell commented Apr 7, 2020
  1. The users of this style guide will probably expect that all of the rules that it prescribes will be enforced by eslint. However, this is not the case - there is a secret, non-documented segmentation where some rules are enforced and others are not, because they would be "too noisy on a legacy codebase". An example of a problematic rule like this is covered in issue #2020. I propose that all of
maharvey
maharvey commented Mar 6, 2020

Expected behavior

Disable an annoying clang-tidy warning on linux

Steps to reproduce

  1. Create a source file containing strncpy()
  2. Observe that neomake complains
  3. There is no way to disable this warning globally

In this case I would need to pass --checks=-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling to clang-tidy

Adding this as args for the c ma

spectral
astavria4
astavria4 commented Apr 22, 2020

"Require calls will work only in Node.js, and will cause errors for anyone trying to use the ruleset in the browser. If your ruleset is definitely going to only be used in the context of NodeJS then using them is ok, but if you are distributing your rulesets to the public we recommend avoiding the use of require() to increase portability."

I have a extensions.js file that has functions I reuse

mikepjb
mikepjb commented Jan 30, 2020

This snippet allows you to swap between languages servers:

function! SwapLanguageServer(config)
  LSClientDisable
  for [filetype, config] in items(a:config)
    call RegisterLanguageServer(filetype, config)
  endfor
  LSClientEnable
endfunction
command! Tailwind :call SwapLanguageServer(g:tailwind_server_config)
command! JS :call SwapLanguageServer(g:javascript_server_config)
MikeRalphson
MikeRalphson commented Jan 19, 2019
  • Guidance on adding a linter new rule-action (if none of the existing ones can perform the action, or be extended)
  • Expand on guidelines re: keeping commits to logical areas of the code / individual packages where possible
  • Use of conventional-commit standard going forward
  • Advice not to include any package-lock.json changes PRs, for security reasons. File will be regene
gitlint
tommyip
tommyip commented Dec 20, 2017

We just re-enabled gitlint at Zulip and a lot of our new students (we are participating in Google Code-in) who aren't comfortable with regex are confused by our ^(.+:\ )?[A-Z].+\.$ rule.

I was thinking if gitlint could show a user-defined note explaining their project's commit title style? I guess we only want to show it once if title-match-regex failed >= 1 time.

I could implement this if

flakehell
sobolevn
sobolevn commented Feb 7, 2020

Currently flakehell does not allow to show current version:

» flakehell --version
baseline  | Run patched flake8 against the code.
code      | Show plugin name and message for given code.
codes     | Show available codes and messages for given plugin.
lint      | Run patched flake8 against the code.
missed    | Show patterns from the config that has no matched plugin installed.
plu

Improve this page

Add a description, image, and links to the linting 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 linting topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.