brew install csvkit
❯ jq -r '["pt", "c"], (.[] | [.pt, .c]) | @csv' <<< '[
{
# install natively compiled scalafmt, https://scalameta.org/scalafmt/ | |
# .git/hooks/pre-push | |
scalafmt --check || (scalafmt && exit 1) |
This plugin lets you enforce strict linting rules and iterate quickly in IntelliJ at the same time.
Configure your build with sbt-tpolecat to prevent unused imports, unused parameters etc. to reach main
. Adding the plugin below causes the following behavior:
sbt
-Wunused:*
flags are not enforced in IntelliJScaladoc is the tool that enables developers to automatically generate documentation for their Scala (and Java) projects. It is Scala's equivalent of the widely-used Javadoc tool. This means that Javadoc (and even doxygen) users will be familiar with Scaladoc from day 1: for them, it is most beneficial to check out the Scaladoc/Javadoc comparison tables and if necessary, skim through this document to understand specific features.
The rest of this tutorial is aimed at developers new to Scaladoc and other similar tools. It assumes a basic understanding of the Scala language, which is necessary to follow the examples given throughout the tutorial. For the user perspective on the Scaladoc-generated documentation, such as finding a class, understanding the page layout, navigating through diagrams, please refer to the Scaladoc User Guide.
The tutorial will start by a short motivation and then will explain the main concept in Scaladoc: the doc comment.
airflow@airflow-scheduler-5469fb5f8f-rkz76:/$ which airflow | |
/usr/local/bin/airflow | |
airflow@airflow-scheduler-5469fb5f8f-rkz76:/$ cat $(!!) | |
cat $(which airflow) | |
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at |
root@b77bc7671df6:/# which airflow | |
/usr/local/bin/airflow | |
root@b77bc7671df6:/# cat $(!!) | |
cat $(which airflow) | |
#!/usr/local/bin/python | |
# EASY-INSTALL-DEV-SCRIPT: 'apache-airflow===1.9.0-composer','airflow' | |
__requires__ = 'apache-airflow===1.9.0-composer' | |
__import__('pkg_resources').require('apache-airflow===1.9.0-composer') | |
__file__ = '/usr/local/lib/airflow/airflow/bin/airflow' | |
exec(compile(open(__file__).read(), __file__, 'exec')) |
I hereby claim:
To claim this, I am signing this object:
import org.json4s._ | |
import org.json4s.JsonAST.{JArray, JNull, JObject, JNumber} | |
import net.jcazevedo.moultingyaml._ | |
import net.jcazevedo.moultingyaml.DefaultYamlProtocol._ | |
object YamlJsonProtocol extends CollectionFormats { | |
implicit object JValueYamlFormat extends YamlFormat[JValue] { | |
override def write(jv: JValue): YamlValue = jv match { |