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

w0rp
179

@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:

67
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...
46
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...
22
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...
16
ale Recommended documentation addition
Just to add if you want to avoid linking colors defined by your colorscheme (like Error or Warning) ...
13
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 ....
7
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...
393
zsh autosuggestions Maybe fix for slow pastes
Works for me Thanks again for your help For posterity: Howdy ...
153
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...
103
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...
37
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...
26
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...
16
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 ...
9
ng select Ng-select inside dialog add extra hidden height (dropdown)
@rpascal yes the solution is to use [appendTo]='body' demo: https://stackblitz.com/edit/angular-mate...
7
react autosuggest _this3.input.focus is not a function
@moroshko is there any way to do the same trick with material-ui/TextField? Thanks. ...
4
react autosuggest configure debounce delay
To answer my own question I was able to use lodash to debounce: Something like that should work for ...
69
spyder Spyder Won't Launch
Could you run in a terminal and try again? Description of your problem What steps will reproduce the...
54
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...
53
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...
52
spyder Mac OS spyder won't launch: python.app directory mismatch
Please run to see if that helps. Problem Description Spyder won't launch ...
49
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 ...
45
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 ...
44
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 ...
39
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...
37
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 ...
37
pylance release Pylance cannot resolve the import of a local .py file
See the troubleshooting doc: https://github.com/microsoft/pylance-release/blob/master/TROUBLESHOOTIN...
30
nvim lspconfig tsserver doesn't startup
omfg I just had to install typescript globally npm install -g typescript Not sure why the package do...
26
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...
25
spyder Autocomplete is not working
@hepinjing could you remove enum and try again? Description In the last version of Anaconda 3 ...
25
spyder Spyder doesn't start - no module named 'PyQt5.QtWebEngineWidgets'
Actually you need to uninstall it first: pip uninstall pyqtwebengine pip install pyqtwebengine This ...
23
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...
19
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 ...
17
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 -- ...
17
pylance release Auto-import doesn't work
The code that fixed this issue was disabled for performance reasons while we could optimize it ...
14
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...
14
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 Terminal.app Problem Description spyder on MacOS 10.12.6 with Python ...
13
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...
12
rls RLS seems missing on latest Linux stable
Good call on reinstalling stable: it installs and functions now with rustup component add rls ...
12
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 ...
11
vscode intelephense PHPUnit MockObject not matching expected type
getMock returns MockObject so you need to annotate the variable assignment to override this. ...
9
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...
9
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...
9
spyder PyQt 5 issue in spyder
@ciornav what happens if instead of sys.exit(app.exec_()) you only use app.exec_()? ...
9
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 ...
7
haskell ide engine Build from source fails on Windows 10 with stack-2.1.3 due to network < 3.1.0.1
@jineira Thank you I tried compiling network-2.8.0.1 with @jneira 's pre-release stack but it doesn'...
7
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...
5
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 ...
5
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...
4
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...
4
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...
4
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...