<commit_before>" Author: <NAME> <<EMAIL>>
" Description: flawfinder linter for c++ files

call ale#Set('cpp_flawfinder_executable', 'flawfinder')
call ale#Set('cpp_flawfinder_options', '')
call ale#Set('cpp_flawfinder_minlevel', 1)

function! ale_linters#cpp#flawfinder#GetExecutable(buffer) abort
   return ale#Var(a:buffer, 'cpp_flawfinder_executable')
endfunction

function! ale_linters#cpp#flawfinder#GetCommand(buffer) abort

   " Set the minimum vulnerability level for flawfinder to bother with
   let l:minlevel = ' --minlevel=' . ale#Var(a:buffer, 'cpp_flawfinder_minlevel')

   return ale#Escape(ale_linters#cpp#flawfinder#GetExecutable(a:buffer))
   \  . ' -CDQS'
   \  . ale#Var(a:buffer, 'cpp_flawfinder_options')
   \  . l:minlevel<commit_msg>Flawfinder for C++: Fix missing variable causing flawfinder to fail for c++<commit_after>" Author: <NAME> <<EMAIL>>
" Description: flawfinder linter for c++ files

call ale#Set('cpp_flawfinder_executable', 'flawfinder')
call ale#Set('cpp_flawfinder_options', '')
call ale#Set('cpp_flawfinder_minlevel', 1)
call ale#Set('c_flawfinder_error_severity', 6)

function! ale_linters#cpp#flawfinder#GetExecutable(buffer) abort
   return ale#Var(a:buffer, 'cpp_flawfinder_executable')
endfunction

function! ale_linters#cpp#flawfinder#GetCommand(buffer) abort

   " Set the minimum vulnerability level for flawfinder to bother with
   let l:minlevel = ' --minlevel=' . ale#Var(a:buffer, 'cpp_flawfinder_minlevel')

   return ale#Escape(ale_linters#cpp#flawfinder#GetExecutable(a:buffer))
   \  . ' -CDQS'
   \  . ale#Var(a:buffer, 'cpp_flawfinder_options')
   \  . l:minlevel
{'fraction_non_alphanumeric': 0.12754158964879853, 'fraction_numerical': 0.0018484288354898336, 'mean_word_length': 6.553488372093023, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7532432', 'n_tokens_mistral': 575, 'n_tokens_neox': 562, 'n_words': 111}