Switch branches/tags
Commits on Sep 4, 2016
  1. ConsoleInteraction: Sort settings by name

    SanketDG committed Aug 25, 2016
    Fixes #2652
Commits on Aug 15, 2016
  1. setup: Package coalang files

    SanketDG committed Aug 15, 2016
    coalang files are needed for the new documentation extraction
    functions that will be used to create new routines in coala-bears.
Commits on Aug 14, 2016
  1. DocumentationComment: Add assemble()

    SanketDG committed Jul 30, 2016
    This function takes in a ``DocumentationComment`` instance and
    assembles it to a documentation comment as a string.
    To have tests on all corner cases, documentation styles in has changed.
    Also, a default.c is created to test corner cases, for a docstyle
    having a different marker. (i.e. marker[1] != "")
  2. DocumentationComment: Add from_metadata()

    SanketDG committed Jul 30, 2016
    This function acts as a constructor to assemble a list of parsed
    documentation comments. It sets up the assemble() function.
  3. DocumentationComment: Use DocstyleDefinition

    SanketDG committed Jul 12, 2016
    A docstyle_definition is now used to store the language, docstyle
    and the symbols.
  4. DocumentationExtraction: Conform to pep8

    SanketDG committed Jul 12, 2016
  5. DocstyleDefinition: Add metadata param

    SanketDG committed Jul 12, 2016
    This metadata param will contain all of the required
    documentation symbols that will be needed to parse the
    `param_start`, `param_end` and `return_sep` are the contents of
    the metadata.
  6. LineParser: Fix stripping for escaped whitespace

    SanketDG committed Jul 24, 2016
  7. TestUtils: Create load_testdata for loading docs

    SanketDG committed Jul 16, 2016
  8. DocumentationComment: Remove redundant code

    SanketDG committed Jul 3, 2016
    No need for try-except, since there will be a guaranteed newline.
  9. DocumentationComment: Fix python parsing

    SanketDG committed Jul 3, 2016
    For the format:
    :param param1:
        param description
        return description
    The current parsing fails because no space is expected after the
    second ':'. So no space is taken into account.
  10. DocumentationExtraction: Fix newline parsing

    SanketDG committed Jul 16, 2016
    For documentation comments where marker[1] = "", empty newlines
    are not considered since they do not have the indentation.
Commits on Jul 17, 2016
  1. ConsoleInteraction: Fix empty line tab display

    SanketDG committed Jul 14, 2016
    When there is just one tab in one line, it throws an error because
    it cant find the sourcerange end. This corrects it by decreasing
    the sourcerange column end by 1.
    Fixes #2180
Commits on Jun 26, 2016
  1. DocumentationComment: Add JavaDoc parsing

    SanketDG committed Jun 25, 2016
  2. DocumentationCommentTest: Refactor

    SanketDG committed Jun 25, 2016
Commits on Jun 18, 2016
  1. DocumentationComment: Parse python docstrings

    SanketDG committed May 29, 2016
    This commit introduces parsing of python docstrings.
  2. DocumentationComment: Add indent param

    SanketDG committed May 28, 2016
    To store the indentation level in spaces of a certain
    documentation comment.
  3. DocumentationComment: Add language, docstyle param

    SanketDG committed May 17, 2016
    The docstyle and language is needed for language independent
    documentation extraction.
Commits on May 16, 2016
  1. Rename DocumentationComment to DocstringMetadata

    SanketDG committed May 15, 2016
    There are two DocumentationComment classes in the code. One is
    very generic and is used to parse only python docstrings. It is
    renamed to DocstringMetadata to avoid confusion.
    Fixes #2118
Commits on May 14, 2016
  1. Linter: Log error when arguments are not iterable

    SanketDG committed May 13, 2016
    Fixes #2101
Commits on May 13, 2016
  1. Bear: Add supported_languages property

    SanketDG authored and abhsag24 committed May 13, 2016
    The LANGUAGES property can either be a string or a tuple of
    strings. The supported_languages property returns a tuple of
    the LANGUAGES whether its a string or a tuple.
    Fixes #2087
Commits on Apr 21, 2016
  1. Processing: Provide ignoring without stop comment

    SanketDG committed Apr 20, 2016
    If a stop comment is not provided, the rest of the file from the
    start comment will be ignored.
    Fixes #2003
Commits on Mar 10, 2016
  1. LintTest: Rename duplicate test names

    SanketDG committed Mar 6, 2016
    Two tests named test_config_file_generator().
    Rename relevant one to test_generate_config_file_generator()
  2. Lint: Refactor prerequisite checking

    SanketDG committed Mar 4, 2016
    Sometimes, linter bears need to check for a command as a
    prerequisite. This commit introduces two new variables:
    * prerequisite_command: the command to run as a list
    * prerequisite_fail_msg: the message to display if the command
    Two function now check for prerequisites:
    * _check_executable() -> checks if the executable presents
    * _check_command() -> check if the command prerequisite_command
    returns an exitcode 0, else return prerequisite_fail_msg
    Fixes #1803
Commits on Feb 24, 2016
  1. coala-format: Add severity_str option

    SanketDG committed Feb 24, 2016
    severity_str will output the corressponding severity message
    Fixes: #1313
Commits on Feb 22, 2016
  1. ContextManagers: Add retrieve_stderr()

    SanketDG committed Feb 22, 2016
    Like retrieve_stdout(), retrieve_stderr() is used for getting the
    stderr buffer.
    Fixes #1658
Commits on Feb 21, 2016
  1. ConsoleInteraction: Show whitespace in cyan

    SanketDG committed Feb 21, 2016
    This commit increases visibility of the tabs and spaces by
    changing the color from gray to cyan, when the
    SpaceConsistencyBear yields a Result.
    Fixes #1640
  2. ConsoleInteraction: Spaces -> Dots, Tabs -> Arrows

    SanketDG committed Feb 21, 2016
    When coala reports SpaceConsistency for trailing spaces, there is
    no way to understand where the trailing spaces are. This will
    show the spaces and tabs as unicode dots and arrows respectively.
    Spaces will be shown as •
    Tabs (of width 4) will be shown as --->
    Fixes #606
  3. SpacingHelper: Use enforce_signature for functions

    SanketDG committed Feb 21, 2016
  4. SpacingHelper: Split replace_tabs_with_spaces()

    SanketDG committed Feb 21, 2016
    This commit splits replace_tabs_with_spaces into another function
    that yields the index and the space count of the tabs in a
Commits on Feb 17, 2016
  1. LineLengthBear: Improve regex ignore

    SanketDG authored and AbdealiJK committed Feb 17, 2016
    Instead of re.match(), is now used, which does not
    look for a match at the start of the string.
    Fixes coala-analyzer#1554
  2. LineLengthBear: Ignore multiple regexes

    SanketDG authored and AbdealiJK committed Feb 17, 2016
    Multiple regex patterns can now be used to ignore lines.
    Fixes coala-analyzer#1554
Commits on Feb 1, 2016
  1. SourcePosition: Use absolute path for file

    SanketDG committed Jan 29, 2016
    If absolute path is not used, then comparison wouldn't work
    between two SourceRanges, because the paths may be different.
    Fixes #1132
Commits on Jan 29, 2016
  1. CodeStyle: filehandler -> file

    SanketDG committed Jan 29, 2016
    In many places, filehandler(r) is used when opening a file:
    with open(..) as filehandler:
    This is replaced with the word file, which is more semantic:
    with open(..) as file: