Skip to content

Extract shareable classes, improve interfaces#67

Merged
gdiggs merged 10 commits intomasterfrom
pb-refactor
Jul 24, 2015
Merged

Extract shareable classes, improve interfaces#67
gdiggs merged 10 commits intomasterfrom
pb-refactor

Conversation

@pbrisbin
Copy link
Copy Markdown
Contributor

  • Extract EnginesRunner
  • Remove unused EngineProcess autoload
  • Engine accepts non-string json configuration
  • Sharable PathPatterns class
  • Support dev_mode directly in EngineRegistry

/cc @codeclimate/review

@brynary
Copy link
Copy Markdown
Member

brynary commented Jul 23, 2015

@pbrisbin can we fixup the codeclimate issues detected (with the possible exception of the "long method" one... that's more subjective)?

@pbrisbin
Copy link
Copy Markdown
Contributor Author

Always.

Comment thread lib/cc/cli/analyze.rb
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the value of this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a drive-by fix: args is unused, if this were written today, it would be a rubocop issue.

pbrisbin added 7 commits July 23, 2015 15:58
Ensure consistent expansion of **/*-style globs
- Remove unused EngineProcess autoload
- Engine exception non-string json configuration
- Handling dev_mode is encapsulated in EngineRegistry
- Extracted PathPatterns for reusable globbing logic
- Extraced EnginesRunner for reusable engines running logic
Comment thread lib/cc/analyzer/engines_runner.rb Outdated
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be config.enabled?, it's a true CC::Yaml object now.

pbrisbin added 3 commits July 23, 2015 21:32
This is to ensure no regressions in this area. PathPatterns is coming to
become our defacto glob handler and it must be solid.
@gdiggs
Copy link
Copy Markdown
Contributor

gdiggs commented Jul 24, 2015

LGTM

gdiggs added a commit that referenced this pull request Jul 24, 2015
Extract shareable classes, improve interfaces
@gdiggs gdiggs merged commit a9408f2 into master Jul 24, 2015
@pbrisbin pbrisbin deleted the pb-refactor branch July 28, 2015 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants