differential-shellcheck icon indicating copy to clipboard operation
differential-shellcheck copied to clipboard

Investigate how we are dealing with renaming of files :card_file_box:

Open jamacku opened this issue 3 years ago • 2 comments

Type of issue

Bug Report

Description

There might be issue with differential-shellcheck when shell script is renamed (and contain some changes)

Describe the solution you'd like

No response

jamacku avatar Aug 08 '22 14:08 jamacku

I renamed one of directories in my repository and differential shellcheck displayed all the defects from that directory in the log, but GitHub did not show any of those.

This is a bit unexpected because no warnings were shown but the action was red.

mpoberezhniy avatar May 17 '24 13:05 mpoberezhniy

GitHub is doing some pre/post-processing of SARIF files (but there is no documentation). It includes its own fingerprints if no fingerprints are available. This is why differential-shellcheck sometimes reports some defects, but the GitHub SARIF upload is green.

The latest version should improve this situation, as it has the latest version of csdiff, which now also generates fingerprints.

Renaming directories/files might still be an issue. But there are differential actions for Python that is able deal with renames and moves.

  • https://github.com/fedora-copr/vcs-diff-lint/blob/main/vcs-diff-lint#L173

This is definitely something that I would like to get fixed. It is long overdue.

jamacku avatar May 17 '24 14:05 jamacku