I’d like to disable certain rules for Sonar C# for my Codacy project. According to the SonarQube docs, I have to create an .editorconfig file, so I did:
[*.cs]
dotnet_diagnostic.S121.severity = none
dotnet_diagnostic.S3216.severity = none
However,…
I have a lot of issues in my Codacy dashboard, but these don't show up in my github repository. I want to import them from Codacy to GitHub to use in repository management.
Is it possible? If so, how can I do it?
My linters always complain when I don't have a default case in pattern matching in Scala. However, often the default case is artificial and my programs can never actually reach that case.
As an example, consider the following program:
scala> val x =…
On codacy it detects an issue where I dont have enough arguments for format string. Help please.
code:
self.notify.error("An item we don't have: track %s level %s was selected." % [track, level])
When I run codacy-analysis-cli analyze command for the next line of script:
if [[ "$lexer_date" > "$lexer_ts_date" ]]; then
generate_grammar
fi
I got the next warning:
Found [Warning] `In POSIX sh, [[ ]] is undefined.` in scripts/grammar.sh:20…
I recently enabled GitHub Codacy scans on my repo. The Pylint* and Prospector modules (if that is the right terminology) report a lot of warnings:
I have to believe there's a way to configure what they flag, perhaps via an rc file or a .yml placed…
I am using eslint in my angularjs project. My project has a Github integration with Codacy (using config file). I have configured my global variables which need to be ignored from linting in the .eslintrc file as below:
{
"extends":…
I want to add custom rules in checkstyle.xml so that I can view them in codacy Dashboard. I am facing following issues while doing that.
I have written a custom class to check unused private methods in a
classes. It is showing instantiation error…
To detect all IP in the 127.0.0.1/8 network , I'm using this common regular expression:
/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
Job is done, but codacy via es-lint is detecting this regexp as unsafe.
I already read this blog, this…
I'd like to exclude the duplication check from my test files, but leave everything else the same.
This is my .codacy.yml file:
duplication:
enabled: true
exclude_paths:
- 'test/**'
- '**.test.js'
But I still get all duplications…
I have function, here is code
function remove_multi_leg(): void {
if (Number($("#search_no_legs").val()) < 2) {
return;
}
const removeId: number = Number($(this).attr("data-number"));
const highestId: number =…
I've put together a Maven-based project that uses Spek in the Junit 4 Runner for testing.
I configured the project in Codacy and got a useful suggestion to either document my public classes or reduce their visibility (great).
I've found that the…
I have a function and it works just fine, but codacy inspection says it is bad practice to do so. I understand that it even looks unsafe, but I cannot come up with how to do it another, better, way.
function getCount(i) {
var iCount =…