forked from qltysh-archive/SublimeLinter-contrib-codeclimate
-
Notifications
You must be signed in to change notification settings - Fork 1
Updated Linter #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
meengit
wants to merge
23
commits into
schuylr:master
Choose a base branch
from
meengit:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
33d2c30
Updated cmd
meengit a17fd42
Set folder or file_path as working dir
meengit 41fcee0
Updated docs
meengit 42c2145
Fixed file path, must be relative to working dir
meengit 4cb246c
Added example for global args
meengit 7314e2d
Updated settings and examples
meengit 84d5732
Fixed typo in source.haskell
meengit fabc1f8
Removed initialization of root and path
meengit 7961905
Cleaned up of linter command and working directory
meengit 354aea6
Updated docs
meengit e44f271
Merge pull request #1 from meengit/review-fixes
meengit b000bc8
Updated command & error handling
meengit b781a48
Cleaned up command handling
meengit 0c7d527
Merge pull request #2 from meengit/review-fixes
meengit 159dd24
Updated exception handling
meengit e19c458
Updated linter regex (now multiline)
meengit 987473f
Added exclusion if file is not in working dir
meengit 8ec7aa6
Updated docs
meengit 29e9483
Merge pull request #3 from meengit/review-fixes
meengit c44c78a
Removed/Reverted folder exclusion
meengit b7fa651
Reverted regex pattern
meengit 281e165
Updated logging and error messages
meengit 05597a8
Merge pull request #4 from meengit/review-fixes
meengit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My fork is purpose-built to only run the
structureandduplicationengines.Maybe it would be beneficial to accept some user settings that can set these flags instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why the flags are defined here is because CodeClimate will run extra engines if they're defined in
.codeclimate.yml- which I don't need them to in my local environment because I have other linters for them (e.g. Rubocop)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @schuylr
Thank you very much for your response.
As far as I can see in my tests, and I experienced the behavior of SublimeLinter, arguments take place in the SublimeLinter settings. They will be applied either of global settings or project-specific settings. I've tested both. If you set for instance
in the global settings, codeclimate will ignore the
.codeclimate.ymlin the project root because it will be executed with arguments ($ codeclimate analyze path/to/file.ext -e structure -e duplication)I suggest, to take this way of using the SublimeLinter settings as it is designed, instead of "hard coding" the arguments.