Skip to content
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

Enforce kind projection style #1092

Closed
peterneyens opened this issue Jun 5, 2016 · 1 comment
Closed

Enforce kind projection style #1092

peterneyens opened this issue Jun 5, 2016 · 1 comment

Comments

@peterneyens
Copy link
Collaborator

peterneyens commented Jun 5, 2016

Now we have settled on using Greek characters in our kind projections in #1079, we should try to keep it consistent.

I was thinking about a scalastyle rule to check that files don't contain Lambda[.

This could look like the following (but I have been unable to test it, since running scalastyle gives me [info] Processed 0 file(s)) :

 <check level="error" class="org.scalastyle.file.RegexChecker" enabled="true">
  <parameters>
   <parameter name="regex">Lambda\[</parameter>
  </parameters>
  <customMessage>Use Greek characters in a kind projection : λ[α => ...].</customMessage>
 </check>
@fthomas
Copy link
Member

fthomas commented Jun 5, 2016

@peterneyens I think we need to update our scalastyle configuration, see: scalastyle/scalastyle-sbt-plugin#47

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

No branches or pull requests

2 participants