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

static-code-analysis

Here are 375 public repositories matching this topic...

joe-p
joe-p commented Nov 1, 2020

Expected Behavior

When Rubocop encounters '"' + "foo" + '"' it should be autocorrected to '"foo"'

Actual Behavior

When Rubocop 1.1.0 encounters '"' + "foo" + '"' it currently autocorrects to ""foo"" thus leading to a syntax error:

test.rb:3:3: C: [Corrected] Style/StringConcatenation: Prefer string interpolation to string concatenation.
p '"' + "foo" + '"'
  ^^^^^^^
semgrep
mjambon
mjambon commented Nov 13, 2020

Spacegrep, when scanning for files, tries to open regular files or directories even if it doesn't have the permission to to do. This results in the following exception:

$ spacegrep x -d /tmp
Fatal error: exception Sys_error("/tmp/not-your-business: Permission denied")
...

Instead, such files should be ignored with a warning, similarly to how binary files are ignored. The --force op

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.