#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by ckaznocha
# Copyright (c) 2014 ckaznocha
#
# License: MIT
#

"""This module exports the CFLint plugin class."""
from SublimeLinter.lint import Linter, util


class CFLint(Linter):

    """Provides an interface to CFLint."""

    syntax = ('coldfusioncfc', 'html+cfml')
    cmd = 'cflint -q -text -file'
    version_args = '-version'
    version_re = r'\b(?P<version>\d+\.\d+\.\d+)'
    version_requirement = '>= 0.1.8'
    regex = r'''(?xi)
        # The severity
        ^\s*Severity:(?:(?P<warning>(INFO|WARNING))|(?P<error>ERROR))\s*$\r?\n

        # The file name
        ^.*$\r?\n

        # The Message Code
        ^.*$\r?\n

        # The Column number
        ^\s*Column:(?P<col>\d+)\s*$\r?\n

        # The Line number
        ^\s*Line:(?P<line>\d+)\s*$\r?\n

        # The Error Message
        ^\s*Message:(?P<message>.+)$\r?\n
    '''
    multiline = True
    error_stream = util.STREAM_STDOUT
    word_re = r'^<?(#?[-\w]+)'
    tempfile_suffix = '-'

#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by ckaznocha
# Copyright (c) 2014 ckaznocha
#
# License: MIT
#

"""This module exports the CFLint plugin class."""
from SublimeLinter.lint import Linter, util


class CFLint(Linter):

    """Provides an interface to CFLint."""

    syntax = ('coldfusioncfc', 'html+cfml')
    cmd = 'cflint -file @ -q -text'
    version_args = '-version'
    version_re = r'\b(?P<version>\d+\.\d+\.\d+)'
    version_requirement = '>= 0.1.8'
    regex = r'''(?xi)
        # The severity
        ^\s*Severity:(?:(?P<warning>(INFO|WARNING))|(?P<error>ERROR))\s*$\r?\n

        # The file name
        ^.*$\r?\n

        # The Message Code
        ^.*$\r?\n

        # The Column number
        ^\s*Column:(?P<col>\d+)\s*$\r?\n

        # The Line number
        ^\s*Line:(?P<line>\d+)\s*$\r?\n

        # The Error Message
        ^\s*Message:(?P<message>.+)$\r?\n
    '''
    multiline = True
    error_stream = util.STREAM_STDOUT
    word_re = r'^<?(#?[-\w]+)'
    tempfile_suffix = '-'

Update cmd to allow args
Update cmd to allow args

Change the cmd string so that the "args" argument can be used in linter settings.  The way it was any args would be inserted between the '-file' and the filename which broke the '-file' argument. 

For this config,
"cflint": {
   "@disable": false,
   "args": ['-configfile c:\cflintrc.xml'],
   "excludes": []
}

The results are:
old: cflint -q -text -file -configfile c:\cflintrc.xml index.cfm
new: cflint -file index.cfm -q -text -configfile c:\cflintrc.xml