Code Monkey home page Code Monkey logo

cloc-plugin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cloc-plugin's Issues

comment the code better

some of the things I say live during the “Compiler Plugins 101” talk might as well become comments in the code

for example, advice about runsBefore and runsAfter

add testing or at least a demo to this repo

there is advice on this in the “Compiler Plugins 101” slides, but it might as well be in this repo directly, too

@hrhino has suggested using this to test:

scalacOptions in Test ++= Seq(
  s"-Xplugin:${(packageBin in Compile).value}",
  s"-Jdummy=${System.currentTimeMillis()}",
)

the -Jdummy thing is an attempt to fool sbt into rebuilding when necessary; it's copied (perhaps cargo-culted) from scala-continuations; I should see whether it is necessary on modern sbt, whether it actually works, and whether there's a better, less kludgey way

should demo cross-publishing using CrossVersion.patch

I didn't initially bother, since the initial purpose of this plugin was for use in the community build, where all dependencies are rewired by dbuild anyway

but now that I'm using this repo in my “Compiler Plugins 101” talk, I should give people a skeleton that handles this the right way

plugin chokes on virtual source files?

when I gave my “Compiler Plugins 101” talk at Scala Bay somebody asked whether the files are always java.io.Files

the plugin code currently assumes there's always an underlying java.io.File, and that's not a completely safe assumption, e.g. when you're using the REPL the source "file" is just virtual

it hasn't come up in the community build context, but since this plugin is also for teaching, it would be better to handle this properly

could it run before the "parser" phase instead of after?

at Scala Bay last night I asserted that I'd tried it and it didn't work, but afterwards I started wondering if that was a false memory. did I really try it?

I should try it (again?) and see what happens, and perhaps change or comment the code depending on result

does `-Xplugin-list` work or not?

well this isn't strictly related to this plugin in particular, but using this issue tracker anyway...

while delivering “Compiler Plugins 101” I got confused about whether -Xplugin-list works or not. I have a slide that seems to show that it does, but then didn't I also find something that didn't work? confused

should/must `super.run()` be called?

someone at Scala Bay last night asked about this. I call super.run() but @retronym's boxer plugin doesn't. does it actually do anything, is it necessary? or did I just cargo-cult it from somewhere?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.