The Wayback Machine - https://web.archive.org/web/20201206152228/https://github.com/topics/static-code-analysis
Skip to content
#

static-code-analysis

Here are 376 public repositories matching this topic...

marcandre
marcandre commented Sep 19, 2020

To load dependencies withing a gem/app, require_relative should always be preferred to require

We should check for any instance of (send nil? require `{:__dir__ :__FILE__}) and raise an offense.

I can't event think of a single instance where require should be called with an interpolated string tbh

semgrep
underyx
underyx commented Nov 23, 2020
$ semgrep -c p/python ../server/setup.py
semgrep: error: unrecognized arguments: -c

I get this almost every week 😅 Since nothing else uses -c we should be good to use it here, right? I assume it was originally -f cause it was used to pass a config file, but now most people pass shorthand or URLs instead of local files.

It's also probably a good idea to keep -f as a hidden al

larastan
tiagof
tiagof commented Nov 22, 2020
  • Larastan Version: 0.6.1
  • --level used: 5

Description

In a project that follows DDD, there are usually multiple directories where migration files exist:

database/migrations/*
domains/<domain>/Database/Migrations/*

In these cases it is not possible to configure larastan to scan all the migrations, since the databaseMigrationsPath only accepts a string.

Is there any way to

xsser
xsser commented Jun 11, 2020

How can i run findsecbugs rules in spotbugs?

Am i right?

./spotbugs -textui -pluginList /Users/xxx/Downloads/findsecbugs-plugin-1.11.0-SNAPSHOT.jar -home . -low -output ./aaa -progress -train ./bbb -sourcepath ~/Downloads/codez/test/My-Blog/ -debug -noClassOk -progress -auxclasspath ~/Downloads/codez/test/My-Blog/target/ -choosePlugins edu.umd.cs.findbugs.plugins.core

majkaz
majkaz commented Nov 23, 2020

Rubberduck version information
Version 2.5.1.5557
OS: Microsoft Windows NT 10.0.14393.0, x64
Host Product: Microsoft Outlook x86
Host Version: 16.0.4266.1001
Host Executable: OUTLOOK.EXE

Description
The event procedures _Itemadd on some collections are marked as "Procedure not used"

To Reproduce
declare

Private WithEvents colCeka As Items
Private WithEvents colDraft

Improve this page

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

Learn more

You can’t perform that action at this time.