Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14155

Is there a way to get codeclimate to run on files without extensions?

$
0
0

I am looking a getting codeclimate utilised more widely in our repository (pycbc)

This is organised with modules named e.g. module.py in one folder and executables in the bin folder with names like pycbc_do_something (note no extension).

We use codeclimate to check code quality on each MR, set up as described in the documentation, but the executables do not get checked

I have tried using negated exclude-patterns to specifically whitelist the executables

However there is a rule on extensions separate to this, where codeclimate decides which engine to use based on the file extension:

Furthermore, engines only run their analysis on files with an appropriate file extension for the language being analyzed (.rb for a Ruby engine, .py for a Python engine, etc). Therefore, in most cases you should not need to specify excludes for files in languages other than your target languages.

https://docs.codeclimate.com/docs/excluding-files-and-folders#auto-generated-file-and-folder-exclusions

So if a file has no extension, it seems that nothing is done. Is that correct?

I can't see anything within the docs where we can specify the language in this case. Is there a way to do this?


Viewing all articles
Browse latest Browse all 14155

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>