Solvedale Disable linting for select files

I currently have some files that i don't want to lint within a project due to how massive they are. Is it possible to have linting disabled for filepaths that match a regex?

16 Answers

✔️Accepted Answer


@mark-westerhof You should now be able to disable linting for files like so.

let g:ale_pattern_options = {
\   '.*\.json$': {'ale_enabled': 0},
\   '.*some/folder/.*\.js$': {'ale_enabled': 0},

Other Answers:

I have now accomplished this through slightly different means, which will solve this problem, and some configuration issues. You can now use let b:ale_enabled = 0 to disable ALE for a particular buffer. This will be respected by the cursor echoing function and the function for running linters. For configuring files based on patterns, I have created g:ale_pattern_options, for automatically setting buffer variables based on filename patterns. See :help g:ale_pattern_options

These options should make it possible to not only disable ALE for particular files, but also to set different linter options for different files, etc.

Related Issues:

ale pylint import problem with modules in the same folder
To leave this here I found a workaround modifying the init-hook of.pylintrc: However some general so...
ale Disable linting for select files
@mark-westerhof You should now be able to disable linting for files like so. I currently have some f...
ale echo message hides cursor
Another solution for who usually run vim on terminal emulator and doesn't need gvim I don't know why...
ale Recommended documentation addition
Just to add if you want to avoid linking colors defined by your colorscheme (like Error or Warning) ...
ale TSLint is ignoring the .prettierrc file
I was running into the exact same issue. While this isn't the best solution explicitly setting the ....
ale tsserver running entire .vue files
For anyone trying to get this to work with Vue: I had to install ts-vue-plugin from npm which is thi...
zsh autosuggestions Maybe fix for slow pastes
Works for me Thanks again for your help For posterity: Howdy ...
zsh autosuggestions Doesn't seem to work in oh-my-zsh at all
Crazy idea I found your issue thinking I had the same problem using antigen Just pulled and added to...
ng select [(ngModel)] not works: Can't bind to 'ngModel' since it isn't a known property of 'ng-select'.
Resolved including modules: I'm trying to use the official example but I can not make it work The ex...
zsh autosuggestions Key for zsh-autosuggestions packages in OBS has expired
The key in the Ubuntu 18.04 repo expired as mentioned above Whereas the key in the 19.10 repo is sti...
ng select Placeholder not displayed when using ng-select with formGroupName (when the form is loaded)
Thanks now I clearly see the issue First param of FormControl is value so changing new FormControl(n...
ng select Feature Request: Allow ng-dropdown panel option to grow larger than parent
This works fine when virtual scroll is false but when setting [virtualScroll]=true then width: auto ...
ng select Ng-select inside dialog add extra hidden height (dropdown)
@rpascal yes the solution is to use [appendTo]='body' demo:
react autosuggest _this3.input.focus is not a function
@moroshko is there any way to do the same trick with material-ui/TextField? Thanks. ...
react autosuggest configure debounce delay
To answer my own question I was able to use lodash to debounce: Something like that should work for ...
spyder Spyder Won't Launch
Could you run in a terminal and try again? Description of your problem What steps will reproduce the...
pylance release Semantic highlighting colors every variable with same color
Oops I meant: Environment data Language Server version: 2020.9.0 OS and version: Arch linux Python v...
spyder [warn] kq_init: detected broken kqueue
Could you run in a terminal and try again? Description of your problem What steps will reproduce the...
spyder Mac OS spyder won't launch: directory mismatch
Please run to see if that helps. Problem Description Spyder won't launch ...
spyder Spyder crashes with segmentation fault on startup in Anaconda 4.5.0
Following a suggestion in #3326 I was able to work around the problem by doing This problem is also ...
spyder qtpy.PythonQtError: No Qt bindings could be found
You need to install PyQt4 or PyQt5 because that's not installed automatically by pip For PyQt5 just ...
spyder “RuntimeError: This event loop is already running”; debugging aiohttp, asyncio and IDE “spyder3” in python 3.6.5
I got the issue resolved by using the nest_async pip install nest_asyncio and adding below lines in ...
pylance release python.analysis.extraPaths setting supported?
Thanks for the feedback The setting is supported I'm not sure what is happening in @mikelnrd 's case...
ccls ccls c++ header completion on osx
@alxiong thanks for your comment it works I am using neovim with coc.nvim on macOS Catalina here is ...
pylance release Pylance cannot resolve the import of a local .py file
See the troubleshooting doc:
nvim lspconfig tsserver doesn't startup
omfg I just had to install typescript globally npm install -g typescript Not sure why the package do...
spyder Getting "Spyder already running" warning when it's not
You need to look for a directory called .spyder2 in your Users\<your account> directory the find a f...
spyder Autocomplete is not working
@hepinjing could you remove enum and try again? Description In the last version of Anaconda 3 ...
spyder Spyder doesn't start - no module named 'PyQt5.QtWebEngineWidgets'
Actually you need to uninstall it first: pip uninstall pyqtwebengine pip install pyqtwebengine This ...
spyder Segmentation fault (core dumped) when trying to start conda-installed spyder 3.2.8
@addyblue Try conda install pyopengl Developer Note: *This issue is now resolved in Spyder >=3.3.0 T...
rls Compiler panics on latest RLS when compiling crates that depend on bitflags 1.0.5
Nice one guys cargo update -p 'bitflags:1.0.5' --precise 1.0.4 is a effective workaround ...
vscode intelephense Laravel 6.6 - Unidentified symbol 'Route' in routes/web.php
You don't need to downgrade you can: Either disable undefined symbol diagnostics in the settings -- ...
pylance release Auto-import doesn't work
The code that fixed this issue was disabled for performance reasons while we could optimize it ...
rls RLS is not ready for 1.0
I read the whole articel and here are my 0.02$ What does 1.0 mean for the RLS? There is no backwards...
spyder spyder 3.2.8 crashes on launch with (clean conda install of) Python 3.6.5 on MacOS 10.12.6
The real solution is to run in Problem Description spyder on MacOS 10.12.6 with Python ...
rls toolchain 'nightly-x86_64-unknown-linux-gnu' does not contain component 'rls-preview' for target 'x86_64-unknown-linux-gnu'
@ivstas A sloppy script for this purpose: Output: After updating to 1.23.0-nightly (d9f124965 2017-1...
rls RLS seems missing on latest Linux stable
Good call on reinstalling stable: it installs and functions now with rustup component add rls ...
rls toolchain 'nightly-x86_64-unknown-linux-gnu' does not contain component 'rls'
Component rls was recently renamed to rls-preview Probably this is the reason for your problem ...
vscode intelephense PHPUnit MockObject not matching expected type
getMock returns MockObject so you need to annotate the variable assignment to override this. ...
LanguageClient neovim Snippets should be passed to snippet managers instead of completion plugins
I made an autocommand based on the CompleteDone event which some of you may find useful These are th...
jupyterlab lsp Slow completion for large Python packages when using the default pyls
python-lsp-server 1.2 is now available Description Autocompletion - especially of bigger packages li...
spyder PyQt 5 issue in spyder
@ciornav what happens if instead of sys.exit(app.exec_()) you only use app.exec_()? ...
spyder Can't open Spyder even after fresh Anaconda install/in new environment
@CAM-Gerlach Thank you very much it worked for me! To sum up Description of your problem What steps ...
haskell ide engine Build from source fails on Windows 10 with stack-2.1.3 due to network <
@jineira Thank you I tried compiling network- with @jneira 's pre-release stack but it doesn'...
nvim lspconfig [gopls] run editor.action.organizeImports on save.
This is correct I can reproduce it If you look at it I'm struggling to figure out how to make an aut...
lsp mode [Feature request] support org-mode source code blocks
I did some research as per @stardiviner comment at #409 Here it is how you can do it for java ...
spyder Run cell (ctrl+Enter) don't work in Spyder inatalled with the Anaconda
No individual lines are run with F9. Issue Report Checklist Searched the issues page for similar rep...
lsp mode Omnisharp connects but fails to work
I made a PR for omnisharp-roslyn that upgrades LSP component and doing that fixes some of the issues...
spyder Problems with running turtle programs in Spyder
@ccordoba12 testing a little bit with Turtle I came with some tips to run a script multiple times in...
spyder Spyder forces discrete graphics on OSX
Hello! I encountered the very same issue and have found what so far seems to be an effective resolut...