Comments (9)
It's also a bit weird that RuboCop::Error
ended up in rubocop-ast
. Probably we should just use a different constant in rubocop
and rubocop-ast
, but that's definitely not a big deal.
from rubocop-ast.
I was about to file the same ticket myself. :D Eventually we should move everything that's under RuboCop
currently to RuboCop::AST
. We have to be smart about this, however, as it's going to cause breakages - one option would be to utilize some aliasing.
from rubocop-ast.
Looks like a good idea to move NodePattern
, ProcessedSource
and Token
into AST
.
Probably best to create the aliases in rubocop
gem itself... I'll take care of that.
We could do the same for RuboCop::Error
, but I feel it's less sensical. Would be strange that ConfigNotFoundError
would be a AST::Error
...
I think it's a principle to have a common base class for errors. I don't think we need a rubocop-core/tools/base
gem just for that and a few odds and ends, but I'm not against it either.
An alternative solution would be to have RuboCop::AST::Error
and have RuboCop::Error
be a module that we include (instead of derive from) in rubocop
; it would be included in AST::Error
from rubocop
gem. This way rescue RuboCop::Error
would still rescue both AST::Error
and ConfigNotFoundError
.
from rubocop-ast.
Forgot to mention, but ValidationError
doesn't belong in rubocop-ast
, my bad. I'll fix that too.
from rubocop-ast.
Nevermind, Error
& al. can be moved no problem, my bad.
from rubocop-ast.
👍
Okay, I guess once this is done we can bump rubocop-ast
to 1.0.
from rubocop-ast.
I'll release 0.0.3 for now... and we can release 1.0 at the same time as rubocop?
from rubocop-ast.
Sounds good. I guess I can now cut one extra RuboCop release to see if we didn't break anything with the extraction for some external gem.
from rubocop-ast.
That's something I want to add to the github actions... testing with earliest compatible rubocop release (not just master)
from rubocop-ast.
Related Issues (20)
- rubocop-ast-0.4.0 has broken Layout/LineLength HOT 4
- Fix `traversal`
- Changelog link is a 404 HOT 3
- CI: check JRuby and other platforms
- Broken links in "Using Node Matcher Macros" documentation HOT 1
- Request: allow method calls on constants HOT 5
- NodePattern for numblock "count" element HOT 6
- `global_const?` and some other matchers should be available to cops
- Documentation for named `_` and backreferences in node pattern HOT 3
- Undefined method emit_forward_arg= in AST::Builder:Class HOT 3
- `ProcessedSource#ast_with_comments` doesn't differentiate between identical nodes HOT 4
- Issues with `parent_module_name`
- Missing files when attempting to do a gem build HOT 3
- `send_node.block_node` does not handle `numblock`s
- Long-shot parser -> lib-ruby-parser transition for performance boost? HOT 1
- Basic documentation of Node Pattern HOT 1
- Why is the live debugger not online anymore ? https://nodepattern.herokuapp.com/ HOT 4
- Do we need an MasgnNode ? HOT 2
- Experimental Prism feature listed as runtime dependency HOT 11
- Changelog for v1.31.2 is missing HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubocop-ast.